-
Notifications
You must be signed in to change notification settings - Fork 20
spring couchbase
saroj rout edited this page Nov 14, 2017
·
6 revisions
This wiki contains the list of Apis which we have developed as part of this project.
- Add Student. HTTP Method: POST
http://localhost:8080/sarojtutorial/student
{
"studentId": "0001",
"firstName": "sk1",
"lastName": "rt",
"address": {
"city": "SFO",
"state": "CA",
"zipCode": "94567",
"country": "UK"
}
}
- Get Student By first name. HTTP Method: GET
http://localhost:8080/sarojtutorial/student?firstName=sk1
- Get Student By Id. HTTP Method: GET
http://localhost:8080/sarojtutorial/student/0001
- Delete Student. HTTP Method: DELETE
http://localhost:8080/studenttutorial/student
{
"studentId": "0001",
"firstName": "sk1",
"lastName": "rt",
"address": {
"city": "SFO",
"state": "CA",
"zipCode": "94567",
"country": "UK"
}
}