Skip to content

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.

Exposed APIs

  1. 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"
	}
}
  1. Get Student By first name. HTTP Method: GET
http://localhost:8080/sarojtutorial/student?firstName=sk1
  1. Get Student By Id. HTTP Method: GET
http://localhost:8080/sarojtutorial/student/0001
  1. 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"
	}
}

Clone this wiki locally