A sImple CRUD application using dropwizard. Using GET,POST,PUT & DELETE we implement CRUD applications on the database
- Dropwizard
- Hibernate
- Postman (to send requests to server)
- PgAdmin (For postgresql)
- Intellij IDEA (For initializing dropwizard projects using maven archetype)
table name - book_review
- id - (pk) - character varying (40)
- bookid - character varying (40)
- rating - integer
- review - text
Port to send requests - 8080
Request | Url | parameters | body |
---|---|---|---|
GET | localhost:8080/book/review?bookid={id} | id | |
POST | localhost:8080/book/review | { "bookid": "612" , "rating":5,"review":"Awesome"} | |
PUT | localhost:8080/book/review?id={id}&rating={rating} | id,bookid,rating,review | |
DELETE | localhost:8080/book/review?id={id} | id |