Skip to content

Commit ef78a3b

Browse files
authored
Merge pull request #5 from Postman-Devrel/feat/branch
new featre branch
2 parents 99100f9 + 397dea3 commit ef78a3b

12 files changed

Lines changed: 93 additions & 0 deletions

File tree

.postman/resources.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Use this workspace to collaborate
2+
workspace:
3+
id: 050a85d2-54eb-4a2e-995c-b1729109abcb
4+
5+
# All resources in the `postman/` folder are automatically registered in Local View.
6+
# Point to additional files outside the `postman/` folder to register them individually. Example:
7+
#localResources:
8+
# collections:
9+
# - ../tests/E2E Test Collection/
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
$kind: collection
2+
name: Book API
3+
description: REST API for managing books - CRUD operations
4+
variables:
5+
- key: baseUrl
6+
value: 'http://localhost:3000'
7+
- key: bookId
8+
value: ''
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
$kind: collection
2+
name: Books
3+
description: CRUD operations for managing books
4+
order: 2000
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
$kind: http-request
2+
name: Create Book
3+
description: Create a new book
4+
method: POST
5+
url: '{{baseUrl}}/api/v1/books'
6+
order: 3000
7+
headers:
8+
- key: Content-Type
9+
value: application/json
10+
body:
11+
type: json
12+
content: |-
13+
{
14+
"title": "The Great Gatsby",
15+
"author": "F. Scott Fitzgerald",
16+
"year": 1925,
17+
"publisher": "Scribner"
18+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
$kind: http-request
2+
name: Delete Book
3+
description: Delete a book by ID
4+
method: DELETE
5+
url: '{{baseUrl}}/api/v1/books/{{bookId}}'
6+
order: 5000
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
$kind: http-request
2+
name: Get Book
3+
description: Get a single book by ID
4+
method: GET
5+
url: '{{baseUrl}}/api/v1/books/{{bookId}}'
6+
order: 2000
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
$kind: http-request
2+
name: List Books
3+
description: Get all books
4+
method: GET
5+
url: '{{baseUrl}}/api/v1/books'
6+
order: 1000
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
$kind: http-request
2+
name: Update Book
3+
description: Update an existing book
4+
method: PUT
5+
url: '{{baseUrl}}/api/v1/books/{{bookId}}'
6+
order: 4000
7+
headers:
8+
- key: Content-Type
9+
value: application/json
10+
body:
11+
type: json
12+
content: |-
13+
{
14+
"title": "Updated Title",
15+
"author": "Updated Author",
16+
"year": 2024,
17+
"publisher": "Updated Publisher"
18+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
$kind: collection
2+
name: System
3+
description: System endpoints for health checks and API information
4+
order: 1000
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
$kind: http-request
2+
name: API Info
3+
description: Get API information
4+
method: GET
5+
url: '{{baseUrl}}/'
6+
order: 2000

0 commit comments

Comments
 (0)