Sistema_Gestion_Transporte/rest/login.rest

22 lines
358 B
ReStructuredText

@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/
Authorization: Bearer {{token}}
###
GET {{server}}/aplicaciones/?ordering=-id_aplicacion
Authorization: Bearer {{token}}