cicd-github-actions/docs/BookAPI.postman_collection.json
2023-07-11 11:34:11 +01:00

148 lines
No EOL
2.5 KiB
JSON

{
"info": {
"_postman_id": "22113d52-a04e-4256-b66d-941c4ed8ae15",
"name": "BookAPI",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "2815397"
},
"item": [
{
"name": "Get Books",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:5275/books/",
"protocol": "http",
"host": [
"localhost"
],
"port": "5275",
"path": [
"books",
""
]
}
},
"response": []
},
{
"name": "Get Book By ID",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:5275/books/1",
"protocol": "http",
"host": [
"localhost"
],
"port": "5275",
"path": [
"books",
"1"
]
}
},
"response": []
},
{
"name": "Add Author",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"firstName\": \"Eric\",\n \"lastName\": \"Jorgenson\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:5275/authors/",
"protocol": "http",
"host": [
"localhost"
],
"port": "5275",
"path": [
"authors",
""
]
}
},
"response": []
},
{
"name": "Get Authors",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:5275/authors/",
"protocol": "http",
"host": [
"localhost"
],
"port": "5275",
"path": [
"authors",
""
]
}
},
"response": []
},
{
"name": "Get Author By ID",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:5275/authors/",
"protocol": "http",
"host": [
"localhost"
],
"port": "5275",
"path": [
"authors",
""
]
}
},
"response": []
},
{
"name": "Add Book",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"title\": \"The Almanack of Naval Ravikant\",\n \"authorId\": 1,\n \"isbn\": \"9789354893896\",\n \"datePublished\": \"2020-08-15\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:5275/books/",
"protocol": "http",
"host": [
"localhost"
],
"port": "5275",
"path": [
"books",
""
]
}
},
"response": []
}
]
}