Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[
{
"name": "Premium Plan",
"description": "Access to all features for premium users",
"price": 49.99,
"statusCode": 200,
"scenario": "Successful operation"
},
{
"name": "Basic Plan",
"description": "Limited access to core features",
"price": 19.99,
"statusCode": 200,
"scenario": "Successful operation"
},
{
"name": "TEST_invalid_name_123",
"description": "TEST_invalid_description_456",
"price": "invalid_price",
"statusCode": 405,
"scenario": "Invalid input"
},
{
"name": "",
"description": null,
"price": -25,
"statusCode": 405,
"scenario": "Invalid input"
},
{
"name": "Enterprise Plan",
"description": "Advanced features for organizations",
"price": 99.99,
"statusCode": 200,
"scenario": "Successful operation"
}
]
27 changes: 27 additions & 0 deletions 04-05/postman_collections/MiniProjects/Deletes_a_product.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[
{
"productId": "12345",
"statusCode": 200,
"scenario": "Product deleted"
},
{
"productId": "67890",
"statusCode": 200,
"scenario": "Product deleted"
},
{
"productId": "invalid_product_id",
"statusCode": 404,
"scenario": "Not Found"
},
{
"productId": "unknown123",
"statusCode": 404,
"scenario": "Not Found"
},
{
"productId": "non_existing_product",
"statusCode": 404,
"scenario": "Not Found"
}
]
27 changes: 27 additions & 0 deletions 04-05/postman_collections/MiniProjects/Find_product_by_ID.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[
{
"productId": "1",
"statusCode": 200,
"scenario": "successful operation"
},
{
"productId": "2",
"statusCode": 200,
"scenario": "successful operation"
},
{
"productId": "invalid_product_id",
"statusCode": 404,
"scenario": "Product not found"
},
{
"productId": "999999",
"statusCode": 404,
"scenario": "Product not found"
},
{
"productId": "test_invalid_id",
"statusCode": 404,
"scenario": "Product not found"
}
]
27 changes: 27 additions & 0 deletions 04-05/postman_collections/MiniProjects/Get_All_Products.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[
{
"responseBody": "{\"id\":101,\"name\":\"Product A\",\"description\":\"A high-quality item\",\"price\":29.99}",
"statusCode": 200,
"scenario": "Successful operation"
},
{
"responseBody": "{\"id\":102,\"name\":\"Product B\",\"description\":\"Durable and reliable\",\"price\":49.99}",
"statusCode": 200,
"scenario": "Successful operation"
},
{
"responseBody": "{\"id\":\"invalid_id\",\"name\":123,\"description\":false,\"price\":\"ABC\"}",
"statusCode": 400,
"scenario": "Bad Request"
},
{
"responseBody": "{\"id\":null,\"name\":\"\",\"description\":\"\",\"price\":-20}",
"statusCode": 422,
"scenario": "Unprocessable Entity"
},
{
"responseBody": "{\"id\":999,\"name\":\"Special Product\",\"description\":\"Limited edition\",\"price\":\"XYZ\"}",
"statusCode": 500,
"scenario": "Internal Server Error"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[
{
"productId": "P001",
"id": 101,
"name": "2023-10-01",
"description": "2023-10-01",
"price": 25.99,
"statusCode": 200,
"scenario": "Updated Product"
},
{
"productId": "P002",
"id": 102,
"name": "2023-10-02",
"description": "2023-10-02",
"price": 35.5,
"statusCode": 200,
"scenario": "Updated Product"
},
{
"productId": "invalid_id",
"id": -1,
"name": "invalid_date",
"description": "invalid_date",
"price": -50,
"statusCode": 404,
"scenario": "Not Found"
},
{
"productId": "P004",
"id": 103,
"name": "2023-10-03",
"description": "2023-10-03",
"price": 45,
"statusCode": 200,
"scenario": "Updated Product"
},
{
"productId": "",
"id": 0,
"name": "9999-99-99",
"description": "9999-99-99",
"price": -100,
"statusCode": 404,
"scenario": "Not Found"
}
]
Loading