Skip to content

Commit

Permalink
add postman collection
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianNorbertoEscobar committed Jun 26, 2023
1 parent 06f249c commit f40434a
Showing 1 changed file with 193 additions and 0 deletions.
193 changes: 193 additions & 0 deletions ADOPTAME-API.postman_collection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
{
"info": {
"_postman_id": "bfe10559-b1d9-4fba-ad11-0a5c1f78c6f8",
"name": "ADOPTAME-API",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "6962286"
},
"item": [
{
"name": "productos",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "localhost:5000/productos",
"host": [
"localhost"
],
"port": "5000",
"path": [
"productos"
]
}
},
"response": []
},
{
"name": "producto",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "localhost:5000/productos/1",
"host": [
"localhost"
],
"port": "5000",
"path": [
"productos",
"1"
]
}
},
"response": []
},
{
"name": "productos",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"cantidad\": 15,\r\n \"codigo\": 7,\r\n \"descripcion\": \"Ratitas de goma\",\r\n \"precio\": 1500.0\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "localhost:5000/productos",
"host": [
"localhost"
],
"port": "5000",
"path": [
"productos"
]
}
},
"response": []
},
{
"name": "productos",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"cantidad\": 25,\r\n \"descripcion\": \"Ratitas de goma\",\r\n \"precio\": 1000.0\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "localhost:5000/productos/6",
"host": [
"localhost"
],
"port": "5000",
"path": [
"productos",
"6"
]
}
},
"response": []
},
{
"name": "productos",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "localhost:5000/productos/1",
"host": [
"localhost"
],
"port": "5000",
"path": [
"productos",
"1"
]
}
},
"response": []
},
{
"name": "carrito",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "localhost:5000/carrito",
"host": [
"localhost"
],
"port": "5000",
"path": [
"carrito"
]
}
},
"response": []
},
{
"name": "carrito",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"cantidad\": 10,\r\n \"codigo\": 2\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "localhost:5000/carrito",
"host": [
"localhost"
],
"port": "5000",
"path": [
"carrito"
]
}
},
"response": []
},
{
"name": "carrito",
"request": {
"method": "DELETE",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"cantidad\": 4,\r\n \"codigo\": 2\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "localhost:5000/carrito",
"host": [
"localhost"
],
"port": "5000",
"path": [
"carrito"
]
}
},
"response": []
}
]
}

0 comments on commit f40434a

Please sign in to comment.