/var/www/html/back/.scribe/endpoints.cache/02.yaml
## Autogenerated by Scribe. DO NOT MODIFY.
name: auth
description: ''
endpoints:
-
httpMethods:
- POST
uri: api/v1/login
metadata:
groupName: auth
groupDescription: ''
subgroup: ''
subgroupDescription: ''
title: Логин
description: ''
authenticated: false
custom: []
headers:
Content-Type: multipart/form-data
Accept: application/json
urlParameters: []
cleanUrlParameters: []
queryParameters: []
cleanQueryParameters: []
bodyParameters:
email:
name: email
description: 'email. Поле value должно быть корректным адресом электронной почты. The <code>email</code> of an existing record in the users table. Длина поля value не должна превышать 255 символов.'
required: true
example: laury.osinski@example.com
type: string
enumValues: []
exampleWasSpecified: false
nullable: false
custom: []
password:
name: password
description: password.
required: true
example: 'Htwx"3i?<h6?k)3NY'
type: string
enumValues: []
exampleWasSpecified: false
nullable: false
custom: []
cleanBodyParameters:
email: laury.osinski@example.com
password: 'Htwx"3i?<h6?k)3NY'
fileParameters: []
responses:
-
status: 200
content: '{"message":null,"errors":null,"data":{"message":"Token generated successfully","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpvaG4iOiIxMjM0NTQ4ODM3ODA2IiwidmFsdWUifQ...","userId":123},"status":true}'
headers: []
description: Ok
custom: []
responseFields: []
auth: []
controller: null
method: null
route: null
custom: []
-
httpMethods:
- POST
uri: api/v1/logout
metadata:
groupName: auth
groupDescription: ''
subgroup: ''
subgroupDescription: ''
title: Логаут
description: ''
authenticated: true
custom: []
headers:
Authorization: 'Bearer Bearer {YOUR_AUTH_KEY}'
Content-Type: multipart/form-data
Accept: application/json
urlParameters: []
cleanUrlParameters: []
queryParameters: []
cleanQueryParameters: []
bodyParameters: []
cleanBodyParameters: []
fileParameters: []
responses:
-
status: 200
content: '{"message":null,"errors":null,"data":{"message":"ok"},"status":true}'
headers: []
description: Ok
custom: []
responseFields: []
auth:
- headers
- Authorization
- 'Bearer dk3gbD8a5e6aEvhV1fc64PZ'
controller: null
method: null
route: null
custom: []
-
httpMethods:
- GET
uri: api/v1/profile
metadata:
groupName: auth
groupDescription: ''
subgroup: ''
subgroupDescription: ''
title: 'Профайл пользователя'
description: ''
authenticated: true
custom: []
headers:
Authorization: 'Bearer Bearer {YOUR_AUTH_KEY}'
Content-Type: multipart/form-data
Accept: application/json
urlParameters: []
cleanUrlParameters: []
queryParameters: []
cleanQueryParameters: []
bodyParameters: []
cleanBodyParameters: []
fileParameters: []
responses:
-
status: 200
content: '{"message":null,"errors":null,"data":{"status":true,"message":null,"errors":null,"data":[],"pagination":null},"status":true}'
headers: []
description: Ok
custom: []
responseFields: []
auth:
- headers
- Authorization
- 'Bearer ag51PeV634haZ8cEbDfkvd6'
controller: null
method: null
route: null
custom: []