Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .postman/resources.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Use this workspace to collaborate
workspace:
id: 050a85d2-54eb-4a2e-995c-b1729109abcb

# All resources in the `postman/` folder are automatically registered in Local View.
# Point to additional files outside the `postman/` folder to register them individually. Example:
#localResources:
# collections:
# - ../tests/E2E Test Collection/
8 changes: 8 additions & 0 deletions postman/collections/Book-API/.resources/definition.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
$kind: collection
name: Book API
description: REST API for managing books - CRUD operations
variables:
- key: baseUrl
value: 'http://localhost:3000'
- key: bookId
value: ''
4 changes: 4 additions & 0 deletions postman/collections/Book-API/Books/.resources/definition.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$kind: collection
name: Books
description: CRUD operations for managing books
order: 2000
18 changes: 18 additions & 0 deletions postman/collections/Book-API/Books/Create Book.request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
$kind: http-request
name: Create Book
description: Create a new book
method: POST
url: '{{baseUrl}}/api/v1/books'
order: 3000
headers:
- key: Content-Type
value: application/json
body:
type: json
content: |-
{
"title": "The Great Gatsby",
"author": "F. Scott Fitzgerald",
"year": 1925,
"publisher": "Scribner"
}
6 changes: 6 additions & 0 deletions postman/collections/Book-API/Books/Delete Book.request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
$kind: http-request
name: Delete Book
description: Delete a book by ID
method: DELETE
url: '{{baseUrl}}/api/v1/books/{{bookId}}'
order: 5000
6 changes: 6 additions & 0 deletions postman/collections/Book-API/Books/Get Book.request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
$kind: http-request
name: Get Book
description: Get a single book by ID
method: GET
url: '{{baseUrl}}/api/v1/books/{{bookId}}'
order: 2000
6 changes: 6 additions & 0 deletions postman/collections/Book-API/Books/List Books.request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
$kind: http-request
name: List Books
description: Get all books
method: GET
url: '{{baseUrl}}/api/v1/books'
order: 1000
18 changes: 18 additions & 0 deletions postman/collections/Book-API/Books/Update Book.request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
$kind: http-request
name: Update Book
description: Update an existing book
method: PUT
url: '{{baseUrl}}/api/v1/books/{{bookId}}'
order: 4000
headers:
- key: Content-Type
value: application/json
body:
type: json
content: |-
{
"title": "Updated Title",
"author": "Updated Author",
"year": 2024,
"publisher": "Updated Publisher"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$kind: collection
name: System
description: System endpoints for health checks and API information
order: 1000
6 changes: 6 additions & 0 deletions postman/collections/Book-API/System/API Info.request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
$kind: http-request
name: API Info
description: Get API information
method: GET
url: '{{baseUrl}}/'
order: 2000
6 changes: 6 additions & 0 deletions postman/collections/Book-API/System/Health Check.request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
$kind: http-request
name: Health Check
description: Check API health status
method: GET
url: '{{baseUrl}}/health'
order: 1000
2 changes: 2 additions & 0 deletions postman/globals/workspace.globals.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: Globals
values: []
Loading