Sistema_Gestion_Transporte/rest/login.rest

22 lines
358 B
ReStructuredText
Raw Normal View History

2023-06-25 22:41:07 -04:00
@server = http://localhost:4000/api
@token = {{login.response.body.$.token}}
###
# @name login
POST {{server}}/auth/
Content-Type: application/json
{
"username": "usuario1",
"password": "usuario1"
}
###
GET {{server}}/auth/
2023-06-26 16:52:08 -04:00
Authorization: Bearer {{token}}
###
GET {{server}}/aplicaciones/?ordering=-id_aplicacion
Authorization: Bearer {{token}}