Created
August 9, 2017 14:45
-
-
Save aagalic/8db6db01b2c2b1488f990126fae0a47a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"swagger": "2.0", | |
"info": { | |
"description": "Hubtel Vend is a platform for retailing consumer | |
utilities like airtime topup, internet data, ECG, DSTV, Mobile Money | |
and other services directly to your customers. | |
You can sign up as a Business, a Financial Institution or a Reseller | |
and earn commissions on your transactions.", | |
"version": "1.0.0", | |
"title": "Vend API", | |
"license": { | |
"name": "MIT" | |
} | |
}, | |
"host": "api.hubtel.com ", | |
"schemes": [ | |
"https" | |
], | |
"consumes": [ | |
"application/json" | |
], | |
"produces": [ | |
"application/json" | |
], | |
"paths": { | |
"/vend/airtime": { | |
"get": { | |
"summary": "For vending airtime on all networks", | |
"parameters": [ | |
{ | |
"name": "account", | |
"description": "Your DSTV number.", | |
"required": false, | |
"type": "string", | |
}, | |
{ | |
"name": "amount", | |
"description": "The amount of credit you are buying.", | |
"required": false, | |
"type": "string", | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "An paged array of pets", | |
"headers": { | |
"x-next": { | |
"type": "string", | |
"description": "A link to the next page of responses" | |
} | |
}, | |
"schema": { | |
"$ref": "#/definitions/Pets" | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"schema": { | |
"$ref": "#/definitions/Error" | |
} | |
} | |
} | |
}, | |
"post": { | |
"summary": "Create a pet", | |
"operationId": "createPets", | |
"tags": [ | |
"pets" | |
], | |
"responses": { | |
"201": { | |
"description": "Null response" | |
}, | |
"default": { | |
"description": "unexpected error", | |
"schema": { | |
"$ref": "#/definitions/Error" | |
} | |
} | |
} | |
} | |
}, | |
"/pets/{petId}": { | |
"get": { | |
"summary": "Info for a specific pet", | |
"operationId": "showPetById", | |
"tags": [ | |
"pets" | |
], | |
"parameters": [ | |
{ | |
"name": "petId", | |
"in": "path", | |
"required": true, | |
"description": "The id of the pet to retrieve", | |
"type": "string" | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "Expected response to a valid request", | |
"schema": { | |
"$ref": "#/definitions/Pets" | |
} | |
}, | |
"default": { | |
"description": "unexpected error", | |
"schema": { | |
"$ref": "#/definitions/Error" | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment