Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akarazhev/metacfg4j-sample
metacfg4j Sample
https://github.com/akarazhev/metacfg4j-sample
Last synced: about 1 month ago
JSON representation
metacfg4j Sample
- Host: GitHub
- URL: https://github.com/akarazhev/metacfg4j-sample
- Owner: akarazhev
- License: unlicense
- Created: 2023-08-18T13:57:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-28T13:39:50.000Z (over 1 year ago)
- Last Synced: 2024-04-16T18:16:03.723Z (9 months ago)
- Language: Java
- Size: 68.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# metacfg4j-sample
The `metacfg4j-sample` project is a demo how to use the `metacfg4j` project.
The `metacfg4j` project (that stands for the `meta configuration for java`) is a library that can be used as the solution
by creating a business abstraction or may extend an existed implementation to provide such software solutions as:
various configuration (application, user's and etc.), CRUD services, DSL, MVP.## Use case
Create a new config:
```shell
curl --insecure -H "Content-Type: application/json" -XPUT "https://localhost:8000/api/metacfg/config" -d '[{"name":"New Config","description":"Description","attributes":{"key_1":"value-1","key_4":"value_4"},"properties":[{"name":"Value","caption":"Caption","description":"Description","attributes":{"key_1":"value-1","key_4":"value_4"},"type":"LONG","value":"1000","updated":100,"properties":[]}]}]'
```Get a list of config names:
```shell
curl --insecure -H "Content-Type: application/json" -XGET "https://localhost:8000/api/metacfg/config_names"
```Get configs by names:
```shell
curl --insecure -H "Content-Type: application/json" -XGET "https://localhost:8000/api/metacfg/config?names=WyJOZXcgQ29uZmlnIl0="
```Delete configs by names:
```shell
curl --insecure -H "Content-Type: application/json" -XDELETE "https://localhost:8000/api/metacfg/config?names=WyJOZXcgQ29uZmlnIl0="
```## Build Requirements
⇒ Docker
⇒ Java 17+
⇒ Gradle