Skip to content

Instantly share code, notes, and snippets.

@aagalic
Created August 9, 2017 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aagalic/8db6db01b2c2b1488f990126fae0a47a to your computer and use it in GitHub Desktop.
Save aagalic/8db6db01b2c2b1488f990126fae0a47a to your computer and use it in GitHub Desktop.
{
"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