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.

147 lines
2.5 KiB

{
"info": {
"_postman_id": "d1afb123-abf6-4a75-866f-42b67f76ac48",
"name": "webApp230415_library",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "26683763"
},
"item": [
{
"name": "get active books",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{base}}v1/library/books",
"host": [
"{{base}}v1"
],
"path": [
"library",
"books"
]
}
},
"response": []
},
{
"name": "add book (запрос)",
"request": {
"method": "POST",
"header": [],
"url": {
"raw": "{{base}}v1/library/books?name=Книга {{$randomInt}}&author=Автор {{$randomWords}}",
"host": [
"{{base}}v1"
],
"path": [
"library",
"books"
],
"query": [
{
"key": "name",
"value": "Книга {{$randomInt}}"
},
{
"key": "author",
"value": "Автор {{$randomWords}}"
}
]
}
},
"response": []
},
{
"name": "delete book (запрос)",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "{{base}}v1/library/books/6dcb9a45f59246749c4be563349dcb62",
"host": [
"{{base}}v1"
],
"path": [
"library",
"books",
"6dcb9a45f59246749c4be563349dcb62"
]
}
},
"response": []
},
{
"name": "add book (тело)",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "name",
"value": "Книга {{$randomWords}}",
"type": "text"
},
{
"key": "author",
"value": "Автор {{$randomWords}}",
"type": "text"
}
]
},
"url": {
"raw": "{{base}}v1/library/books",
"host": [
"{{base}}v1"
],
"path": [
"library",
"books"
],
"query": [
{
"key": "name",
"value": "Книга {{$randomInt}}",
"disabled": true
},
{
"key": "author",
"value": "Автор {{$randomWords}}",
"disabled": true
}
]
}
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
}
],
"variable": [
{
"key": "base",
"value": "http://localhost:5106/",
"type": "string"
}
]
}