forked from TDTP/admin_transporte_backend
32 lines
660 B
ReStructuredText
32 lines
660 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}}/upload/zip
|
|
Authorization: Bearer {{token}}
|
|
|
|
###
|
|
POST {{server}}/upload/zip/
|
|
Authorization: Bearer {{token}}
|
|
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
|
|
|
|
------WebKitFormBoundary7MA4YWxkTrZu0gW
|
|
Content-Disposition: form-data; name="filezip"; filename="Gran Concepción20230727.zip"
|
|
Content-Type: application/zip
|
|
|
|
< ./Gran Concepción20230727.zip
|
|
------WebKitFormBoundary7MA4YWxkTrZu0gW--
|
|
###
|