Steps to ingest schema
Last updated
Last updated
To see the API documentation please go to this link https://editor.swagger.io/ and paste the contents of the github links provided below. The example data provided in the request body is for understanding purposes and it is not the actual data.
The API endpoint specified in the below document is for public mode of installation.
Create a postman request and add details
API Endpoint: <domain_name> /api/spec/event
HTTP Method: POST
Build the request body with reference to YAML file. The request body for the above API is attached here for yaml: https://github.com/Sunbird-cQube/spec-ms/blob/dev/spec.yaml Provide valid input details for the parameters shown below.
Click on the send button for request and if the request is successful the user should see a response message. Please refer to the below screenshot.
Once the API response is successful then the schema is stored in the spec.”EventGrammar” table.
Create a postman request and add details
API Endpoint: <domain_name> /api/spec/dimension
HTTP Method: POST
Step 2:
Build the request body with reference to YAML file. The request body for the above API is attached here for yaml: https://github.com/Sunbird-cQube/spec-ms/blob/dev/spec.yaml Provide valid input details for the parameters shown below.
Click on the send button for request and if the request is successful the user should see a response message. Please refer to the below screenshot. Once the API response is successful then the schema is stored in the spec.”DimensionGrammar” table.