Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

made endpoints singular #49

Merged
merged 1 commit into from
Nov 21, 2023
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
10 changes: 5 additions & 5 deletions http/addresses.http
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ GET http://localhost:8080

### GET address

GET http://localhost:8080/api/addresses
GET http://localhost:8080/api/address


### Update existing address

PUT http://localhost:8080/api/addresses/27
PUT http://localhost:8080/api/address/27
Content-Type:application/json

{
Expand All @@ -22,10 +22,10 @@ Content-Type:application/json

### DELETE address by ID

DELETE http://localhost:8080/api/addresses/27
DELETE http://localhost:8080/api/address/27

### Create New Address
POST http://localhost:8080/api/addresses
POST http://localhost:8080/api/address
Content-Type: application/json

{
Expand All @@ -38,4 +38,4 @@ Content-Type: application/json

### GET address by id

GET http://localhost:8080/api/addresses/1
GET http://localhost:8080/api/address/44
20 changes: 10 additions & 10 deletions http/customers.http
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
### get all customers
GET http://localhost:8080/api/customers
GET http://localhost:8080/api/customer

### create a new customer
POST http://localhost:8080/api/customers
POST http://localhost:8080/api/customer
Content-Type: application/json

{
Expand All @@ -16,30 +16,30 @@ Content-Type: application/json
}

### get by id
GET http://localhost:8080/api/customers/55
GET http://localhost:8080/api/customer/55

### get with pagination - count and page number
GET http://localhost:8080/api/customers?count=4&page=2
GET http://localhost:8080/api/customer?count=4&page=2

### get with pagination and search - count and page number
GET http://localhost:8080/api/customers?count=4&page=2&[email protected]
GET http://localhost:8080/api/customer?count=4&page=2&[email protected]

### get with pagination - count and order by
GET http://localhost:8080/api/customers?count=200&order=updatedAt
GET http://localhost:8080/api/customer?count=200&order=updatedAt

### get with pagination and search - count and order by
GET http://localhost:8080/api/customers?count=200&order=updatedAt&[email protected]
GET http://localhost:8080/api/customer?count=200&order=updatedAt&[email protected]


### GET customer by ID
GET http://localhost:8080/api/customers/102
GET http://localhost:8080/api/customer/10

### search by email
GET http://localhost:8080/api/customers[email protected]"
GET http://localhost:8080/api/customer[email protected]"


### delete by id
DELETE http://localhost:8080/api/customers/2
DELETE http://localhost:8080/api/customer/2

### get with pagination
GET http://localhost:8080/api/customers?count=5
Expand Down
2 changes: 1 addition & 1 deletion http/orders.http
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### GET orders

GET http://localhost:8080/api/orders
GET http://localhost:8080/api/order


### GET orders by ID
Expand Down
2 changes: 1 addition & 1 deletion http/products.http
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

###

GET http://localhost:8080/api/products
GET http://localhost:8080/api/product

###Update product by ID
PUT http://localhost:8080/api/products/1?quantity=170
Expand Down
Loading
Loading