-
-
Notifications
You must be signed in to change notification settings - Fork 233
URL's Person
Anantha Raju C edited this page Sep 28, 2020
·
1 revision
URL | Method | Remarks | Sample Valid Request Body |
---|---|---|---|
http://localhost:8080/api/v1/person |
GET | Header Accept:application/json or Accept:application/xml for content negotiation |
|
http://localhost:8080/api/v1/person |
POST | Add a person | JSON |
http://localhost:8080/api/v1/person/{id} |
GET | Header Accept:application/json or Accept:application/xml for content negotiation |
|
http://localhost:8080/management/api/v1/person/pageable |
GET | Header Accept:application/json or Accept:application/xml for content negotiation |
Pageable API Endpoint |
http://localhost:8080/api/v1/person/{id} |
PUT | Update a person | JSON |
http://localhost:8080/api/v1/person/{id} |
DELETE | Delete a person |
URL | Method | Remarks | Sample Valid Request Body |
---|---|---|---|
http://localhost:8080/management/api/v1/person |
GET | Header Accept:application/json or Accept:application/xml for content negotiation |
|
http://localhost:8080/management/api/v1/person |
POST | Add a person | JSON |
http://localhost:8080/management/api/v1/person/{id} |
GET | Header Accept:application/json or Accept:application/xml for content negotiation |
|
http://localhost:8080/management/api/v1/person/pageable |
GET | Header Accept:application/json or Accept:application/xml for content negotiation |
Pageable API Endpoint |
http://localhost:8080/management/api/v1/person/{id} |
PUT | Update a person | JSON |
http://localhost:8080/management/api/v1/person/{id} |
DELETE | Delete a person |
{
"name": "Jane",
"username": "janejane",
"emailPrimary": "[email protected]",
"emailSecondary": "[email protected]",
"phone":9191919191,
"gender": "FEMALE",
"age": 25,
"password": "password",
"dob":"25-12-2005",
"isAdult":true,
"address": {
"street": "Jane Plains",
"suite": "Suite 779",
"city": "Wisokyburghh",
"zipcode": "90565-7771",
"geo": {
"lat": "-43.9589",
"lng": "-34.4628"
}
}
}