64 lines
974 B
ReStructuredText
64 lines
974 B
ReStructuredText
|
|
@server = http://localhost:4000/api
|
|
@token = {{login.response.body.$.token}}
|
|
|
|
###
|
|
# @name login
|
|
POST {{server}}/auth/
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"username": "0",
|
|
"password": "0"
|
|
}
|
|
|
|
|
|
###
|
|
# @name list
|
|
GET {{server}}/dispositivos
|
|
Authorization: Bearer {{token}}
|
|
|
|
###
|
|
# @name whoami_existente
|
|
POST {{server}}/dispositivos/whoami/
|
|
Authorization: Bearer {{token}}
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"whoami": {
|
|
"idDispositivo": "existe",
|
|
"KeyAutorizacion": "token"
|
|
}
|
|
}
|
|
|
|
|
|
###
|
|
# @name whoami_no_existe
|
|
POST {{server}}/dispositivos/whoami/
|
|
Authorization: Bearer {{token}}
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"whoami": {
|
|
"idDispositivo": "otro",
|
|
"KeyAutorizacion": "token"
|
|
}
|
|
}
|
|
|
|
|
|
###
|
|
# @name get_info_device
|
|
POST {{server}}/dispositivos/getInfoDevice/
|
|
Authorization: Bearer {{token}}
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"GetInfoDevice": {
|
|
"idDispositivo": "existe",
|
|
"KeyAutorizacion":"token"
|
|
}
|
|
}
|
|
|
|
|
|
###
|