The TODO List API
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

110 lines
2.2 KiB

{
"info": {
"_postman_id": "246c2680-daa5-4493-a768-0fc3e22f3d48",
"name": "TODO List API",
"description": "version=1.0 - Manage TODO's",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
{
"name": "todo",
"item": [
{
"name": "Get TODO",
"event": [
{
"listen": "test",
"script": {
"id": "cde0e5c6-4d4e-4b3d-8b4d-ee19315d93fb",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": "http:///todo",
"description": "Get all TODOs"
},
"response": [
{
"name": "Get TODO",
"originalRequest": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": "http:///todo"
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "Text",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "{\n\t\"id\": 123,\n\t\"message\": \"A sample TODO\"\n}"
}
]
}
],
"description": "Folder for todo"
}
],
"event": [
{
"listen": "prerequest",
"script": {
"id": "b174aaa7-95d8-42dc-b50e-c733a862800b",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "0aabe6f0-a96a-4d81-8b88-e79a35e51706",
"type": "text/javascript",
"exec": [
""
]
}
}
]
}