
@server = http://localhost:4000/api
# @server = https://transporte.hz.kursor.cl/api
@token = {{login.response.body.$.token}}

###
# @name login
POST {{server}}/auth/
Content-Type: application/json

{
    "username": "usuario1",
    "password": "usuario1"
}


###
# @name list
GET {{server}}/dispositivos?id_paradero=39530
Authorization: Bearer {{token}}


###
# @name url_public_paradero
GET {{server}}/paraderos/info-public/39530
Authorization: Bearer {{token}}


###
# @name whoami_existente
POST {{server}}/dispositivos/whoami/
Authorization: Bearer {{token}}
Content-Type: application/json

{
    "whoami": {
        "idDispositivo": "TTM543870hyt",
        "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": "TTM543870hyt",
        "KeyAutorizacion":"token"
    }
}




###
GET {{server}}/lineas/proto?id_paradero=45086
Authorization: Bearer {{token}}




###
GET {{server}}/lineas/buses_proto/?id_linea=730-0
Authorization: Bearer {{token}}




###
GET {{server}}/lineas/730-0
Authorization: Bearer {{token}}




###
GET {{server}}/lineas/paraderos/?id_linea=730-0
Authorization: Bearer {{token}}