Skip to main content
Version: v5.0

API config API

The API config API call allows you to:

Add API Config#

Endpoint#

POST /objectmodelsvc/api/v1/apiconfigdefs

Parameters#

Query#

ParameterTypeDescriptionRequired
nsfilterStringEnter a namespace or multiple namespaces in comma separated string.Required

Body#

ParameterTypeDescriptionRequired
_configItemIdStringConfig Item Id for the config stored in the Item Service.Optional
{  "_configItemId": "60af0d1872470f44d27c6cc3"}

Response#

Codes#

CodeDescription
200OK
400Bad Request
401Unauthorized
403Forbidden
404Not Found
409Conflict

Body#

{   "_timetaken": 0.169,   "_result": "API config added successfully & reloaded all the available api gateway instances!!"}

Delete API Config#

Endpoint#

DELETE /objectmodelsvc/api/v1/apiconfigdefs

Parameters#

Query#

ParameterTypeDescriptionRequired
nsfilterStringEnter a namespace or multiple namespaces in comma separated string.Required

Response#

Codes#

CodeDescription
200OK
400Bad Request
401Unauthorized
403Forbidden
404Not Found

Body#

{    "_timetaken": 0.021,    "_result": "API config deleted successfully & reloaded all the available api gateway instances!!"}

List all Pending Add or Delete Configs#

Endpoint#

GET /objectmodelsvc/api/v1/apiconfigdefs

Parameters#

Query#

ParameterTypeDescriptionRequired
nsfilterStringEnter a namespace or multiple namespaces in comma separated string.Required
_isconfigaddedBooleanTo list all pending add configs, set this to true and set _tobedeleted to false.Optional
_tobedeletedBooleanTo list all pending delete configs, set this to true and set _isconfigadded to false.Optional

Response#

Codes#

CodeDescription
200OK
400Bad Request
401Unauthorized
403Forbidden
404Not Found

Body#

{    "_timetaken": 0.046,    "_result": [        {            "id": "7d9aba9d-5d56-48eb-9be0-e4ba98f8586f",            "_name": "DatasourceTest1_m63N2yoR",            "_description": null,            "_namespace": "DatasourceTest1_m63N2yoR",            "_inputconfig": {...},            "_data": {...},            "_createdby": "cea475f0-7a61-4e06-8ab0-90777bcba2bf",            "_createdat": "1630298766047",            "_updatedby": "cea475f0-7a61-4e06-8ab0-90777bcba2bf",            "_updatedat": "1630298766047",            "_isconfigadded": false,            "_tobedeleted": false        }    ]}