-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #140 from ahmetDev7/INFSCP01-123-feature-delete-cl…
…ient Infscp01 123 feature delete client
- Loading branch information
Showing
3 changed files
with
64 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,3 @@ | ||
# Create Client with Contact Body and Address Body | ||
POST http://localhost:5000/api/clients | ||
Content-Type: application/json | ||
|
||
{ | ||
"name": "Client A", | ||
"contact": { | ||
"name": "John Doe", | ||
"phone": "+1234567890", | ||
"email": "[email protected]" | ||
}, | ||
"address": { | ||
"street": "Main Street", | ||
"house_number": "10", | ||
"zipcode": "12345", | ||
"city": "Metropolis", | ||
"province": "Central", | ||
"country_code": "US" | ||
} | ||
} | ||
### | ||
|
||
# Create Client with Contact Body and Address Body | ||
POST http://localhost:5000/api/clients | ||
Content-Type: application/json | ||
|
||
{ | ||
"name": "Client A", | ||
"contact": { | ||
"name": "John Doe", | ||
"phone": "+1234567890", | ||
"email": "[email protected]" | ||
}, | ||
"address": { | ||
"street": "Main Street", | ||
"house_number": "10", | ||
"zipcode": "12345", | ||
"city": "Metropolis", | ||
"province": "Central", | ||
"country_code": "US" | ||
} | ||
} | ||
### | ||
|
||
# Create Client with Address ID and Contact Body | ||
POST http://localhost:5000/api/clients | ||
Content-Type: application/json | ||
|
||
{ | ||
"name": "Client B", | ||
"contact": { | ||
"name": "Jane Doe", | ||
"phone": "+9876543210", | ||
"email": "[email protected]" | ||
}, | ||
"address_id": "b20a737d-b577-4dc9-a7ea-b0bf93d45eda" | ||
} | ||
### | ||
|
||
# Create Client with Contact ID and Address Body | ||
POST http://localhost:5000/api/clients | ||
Content-Type: application/json | ||
|
||
{ | ||
"name": "Client C", | ||
"contact_id": "a2a2bb62-0398-4b76-a80e-0f509154906f", | ||
"address": { | ||
"street": "Second Street", | ||
"house_number": "42", | ||
"zipcode": "54321", | ||
"city": "Smallville", | ||
"province": "East", | ||
"country_code": "US" | ||
} | ||
} | ||
### | ||
|
||
# Create Client with Contact ID and Address ID | ||
POST http://localhost:5000/api/clients | ||
Content-Type: application/json | ||
|
@@ -85,14 +8,6 @@ Content-Type: application/json | |
"address_id": "21903d3a-3d0f-4949-bf0d-e2a84cd1a450" | ||
} | ||
### | ||
|
||
### GetById Clients | ||
GET http://localhost:5000/api/clients/17187ac9-34b3-4a94-b4c9-922c06606117 | ||
### | ||
|
||
### GetAll Clients | ||
GET http://localhost:5000/api/clients | ||
### | ||
# Update Client with Contact ID and Address ID | ||
PUT http://localhost:5000/api/clients/fa5946ab-2ab8-4274-a2eb-b717855f8dca | ||
Content-Type: application/json | ||
|
@@ -103,3 +18,12 @@ Content-Type: application/json | |
"address_id": "0ba16ba7-0c7a-45de-9fe6-9054fb6df6a8" | ||
} | ||
### | ||
# Delete Clients | ||
DELETE http://localhost:5000/api/clients/4a07f327-2ce1-499a-b2ab-692ce2a471be | ||
### | ||
### GetById Clients | ||
GET http://localhost:5000/api/clients/17187ac9-34b3-4a94-b4c9-922c06606117 | ||
### | ||
### GetAll Clients | ||
GET http://localhost:5000/api/clients | ||
### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters