remiges-tech / rigel

Apache License 2.0
0 stars 5 forks source link

WSC: configlist #6

Open remiges-sachin opened 10 months ago

remiges-aniket commented 9 months ago

WSC: configlist

This web service provides a list of all configurations for a schema (app, module and version combination).

Request

GET /configlist

This web service will expect appName, moduleName and versionNumber in the query string. All the fields are mandatory.

Example:

GET /configlist?app=FinanceApp&module=PaymentGateway&ver=2

Processing

Upon receiving a GET request to this endpoint, the Rigel service performs the following steps:

Response

{
    "configurations": [
        {
            "app": "FinanceApp",
            "module": "PaymentGateway",
            "ver": 2,
            "config": "ProdConfig",
            "description": "Configuration for production environment of the PaymentGateway module in FinanceApp.",
        },
        {
            "app": "FinanceApp",
            "module": "PaymentGateway",
            "ver": 2,
            "config": "TestConfig",
            "description": "Configuration for test environment of the FinanceApp module in TestConfig.",
        },
    ]
}

Errors