Untitled
unknown
plain_text
2 years ago
5.0 kB
3
Indexable
{ "openapi": "3.0.1", "info": { "title": "HOBS Analytics API's", "description": "Analytics API Operations ", "termsOfService": "", "contact": { "name": "TCS HOBS Analytics", "url": "https://www.tcs.com/hobs", "email": "abc@abc.com" }, "license": { "name": "TCS HOBS License", "url": "https://www.tcs.com/hobs" }, "version": "8.1.6" }, "servers": [ { "url": "172.16.177.58" }, { "url": "10.16.16.89" } ], "paths": { "/loyaltyManagement/loyaltyProgramProductSpec": { "get": { "description": "This operation is used to retrieve the loyalty program product specifications. A loyalty program product specification contains loyalty rules.", "tags": [ "Loyalty Program Product Spec" ], "operationId": "List Product Specs", "produces": [ "application/json" ], "parameters": [], "responses": { "200": { "description": "Success", "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ProgramProductSpec" } } } }, "security": [], "x-unitTests": [ { "request": { "method": "GET", "uri": "/loyaltyProgramProductSpec" }, "expectedResponse": { "x-allowExtraHeaders": true, "x-bodyMatchMode": "NONE", "x-arrayOrderedMatching": false, "x-arrayCheckCount": false, "x-matchResponseSchema": true, "headers": {} }, "x-testShouldPass": true, "x-testEnabled": true, "x-testName": "List Product Specs", "x-testDescription": "" } ], "x-operation-settings": { "CollectParameters": false, "AllowDynamicQueryParameters": false, "AllowDynamicFormParameters": false, "IsMultiContentStreaming": false } }, "post": { "description": "This operation is used to create a new loyalty program product specification.", "tags": [ "Loyalty Program Product Spec" ], "operationId": "Create Product Spec", "produces": [ "application/json" ], "requestBody": { "description": "This operation is used to create a new program product spec.", "required": true, "content": { "application/json": {"schema": {"$ref": "#/components/schemas/ProgramProductSpec"} }} }, "responses": { "201": { "description": "Created", "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ProgramProductSpec" } } }, "409": { "description": "Conflict - Resource already exists.", "schema": { "$ref": "#/components/schemas/Error" } }, "422": { "description": "Unprocessable Entity - Field rule violation or missing required attribute.", "schema": { "$ref": "#/components/schemas/Error" } } }, "security": [], "x-unitTests": [ { "request": { "method": "POST", "uri": "/loyaltyProgramProductSpec", "headers": { "Content-Type": "application/json" }, "body": "{\r\n \"id\" : \"121\",\r\n \"name\":\"UpComingProfessionalsProgram\",\r\n \"productNumber\":\"121\",\r\n \"description\": \"Loyalty Program to ensure that prepaid youth market is retained\",\r\n \"needsLoyaltyAccount\": true,\r\n \"lifeCycleStatus\": \"active\",\r\n \"brand\" : \"Globetom\",\r\n \"validFor\" : {\r\n \"startDateTime\" : \"2016-01-01T00:00:00Z\",\r\n \"endDateTime\" : \"2016-12-31T23:59:59Z\"\r\n }\r\n}" }, "expectedResponse": { "x-allowExtraHeaders": true, "x-bodyMatchMode": "NONE", "x-arrayOrderedMatching": false, "x-arrayCheckCount": false, "x-matchResponseSchema": true, "headers": {} }, "x-testShouldPass": true, "x-testEnabled": true, "x-testName": "Create Product Spec", "x-testDescription": "" } ], "x-operation-settings": { "CollectParameters": false, "AllowDynamicQueryParameters": false, "AllowDynamicFormParameters": false, "IsMultiContentStreaming": false } } },
Editor is loading...