How to run:
- Run couchbase
- Run application with command
mvn spring-boot
:
Rest End-Points:
-
Add blog
POST URL:localhost:8080/blogs
Request Body:
{ "id": "98d09485-f75b-4c74-ac73-5d9fb7bffcd3", "topic": "spring-couch", "author": "shivangi", "tags": ["springboot", "couchbase"] } -
Get Blog By Id
GET URL:localhost:8080/blogs/98d09485-f75b-4c74-ac73-5d9fb7bffcd3
-
Update Blog
POST URL:localhost:8080/blogs
PUT Body:
{ "id": "98d09485-f75b-4c74-ac73-5d9fb7bffcd3", "topic": "spring-couch", "author": "nancy", "tags": ["springboot", "couchbase"] } -
Delete By Id
DELETE URL:localhost:8080/blogs/id/98d09485-f75b-4c74-ac73-5d9fb7bffcd3