File: /home/f/d/g/fdguitar/www/swvrnco/v1/.scribe/endpoints.cache/00.yaml
## Autogenerated by Scribe. DO NOT MODIFY.
name: Endpoints
description: ''
endpoints:
-
httpMethods:
- POST
uri: api/login
metadata:
groupName: Endpoints
groupDescription: ''
subgroup: ''
subgroupDescription: ''
title: ''
description: ''
authenticated: true
custom: []
headers:
Authorization: 'Bearer {YOUR_AUTH_KEY}'
Content-Type: application/json
Accept: application/json
urlParameters: []
cleanUrlParameters: []
queryParameters: []
cleanQueryParameters: []
bodyParameters:
email:
name: email
description: 'Must be a valid email address.'
required: true
example: sawayn.gunnar@example.org
type: string
custom: []
password:
name: password
description: ''
required: true
example: G5sB6xb
type: string
custom: []
cleanBodyParameters:
email: sawayn.gunnar@example.org
password: G5sB6xb
fileParameters: []
responses: []
responseFields: []
auth:
- headers
- Authorization
- 'Bearer E6vVd5ha1kgfbc3De8P64Za'
controller: null
method: null
route: null
custom: []
-
httpMethods:
- POST
uri: api/loyalty
metadata:
groupName: Endpoints
groupDescription: ''
subgroup: ''
subgroupDescription: ''
title: 'Set loyaly points to a user'
description: ''
authenticated: true
custom: []
headers:
Authorization: 'Bearer {YOUR_AUTH_KEY}'
Content-Type: application/json
Accept: application/json
urlParameters: []
cleanUrlParameters: []
queryParameters: []
cleanQueryParameters: []
bodyParameters:
card_number:
name: card_number
description: 'The card number of user .'
required: true
example: 1198090092
type: integer
custom: []
amount:
name: amount
description: "the amount billed (float numer isn't authorized.)."
required: true
example: 2000
type: integer
custom: []
cleanBodyParameters:
card_number: 1198090092
amount: 2000
fileParameters: []
responses:
-
status: 200
content: |-
{
"success": true,
"message": "Transaction successfully done",
}
headers: []
description: ''
custom: []
responseFields: []
auth:
- headers
- Authorization
- 'Bearer gb66Vk4Zdh5PfDE1eaa38cv'
controller: null
method: null
route: null
custom: []