{ "swagger": "2.0", "tags": [ { "name": "v1", "description": "" } ], "host": "api.ote-godaddy.com", "paths": { "/v1/agreements": { "get": { "tags": [ "v1" ], "consumes": [ "application/json", "application/xml", "text/xml" ], "produces": [ "application/json", "application/javascript", "application/xml", "text/javascript", "text/xml" ], "parameters": [ { "description": "PrivateLabelId to operate as, if different from JWT", "in": "header", "name": "X-Private-Label-Id", "required": false, "type": "integer" }, { "default": "en-US", "description": "Unique identifier of the Market used to retrieve/translate Legal Agreements", "format": "bcp-47", "in": "header", "name": "X-Market-Id", "required": false, "type": "string" }, { "description": "Keys for Agreements whose details are to be retrieved", "in": "query", "items": { "type": "string" }, "name": "keys", "required": true, "type": "array" } ], "responses": { "200": { "description": "Request was successful", "schema": { "items": { "$ref": "#/definitions/LegalAgreement" }, "type": "array" } }, "400": { "description": "Request was malformed", "schema": { "$ref": "#/definitions/Error" } }, "401": { "description": "Authentication info not sent or invalid", "schema": { "$ref": "#/definitions/Error" } }, "403": { "description": "Authenticated user is not allowed access", "schema": { "$ref": "#/definitions/Error" } }, "429": { "description": "Too many requests received within interval", "schema": { "$ref": "#/definitions/ErrorLimit" } }, "500": { "description": "Internal server error", "schema": { "$ref": "#/definitions/Error" } } }, "operationId": "get", "summary": "Retrieve Legal Agreements for provided agreements keys" } } }, "definitions": { "Error": { "properties": { "code": { "description": "Short identifier for the error, suitable for indicating the specific error within client code", "format": "constant", "type": "string" }, "fields": { "description": "List of the specific fields, and the errors found with their contents", "items": { "$ref": "#/definitions/ErrorField" }, "type": "array" }, "message": { "description": "Human-readable, English description of the error", "type": "string" } }, "required": [ "code" ] }, "ErrorField": { "properties": { "code": { "description": "Short identifier for the error, suitable for indicating the specific error within client code", "format": "constant", "type": "string" }, "message": { "description": "Human-readable, English description of the problem with the contents of the field", "type": "string" }, "path": { "description": "