LakhanRathi92 / TaskForJob

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Task

This repository contains a basic task.

Build and run

$ mvn spring-boot:run

CRUD - examples

Create

$ curl -i -X POST -H "Content-Type:application/json" -d '{ "id": 10001, "firstName" : "lakhan", "lastName" : "Kumar" }' localhost:8080/user

Delete

$ curl -X DELETE http://localhost:8080/user/{id}

Read

curl http://localhost:8080/users/{id}

PUT

curl -i PUT -H "Content-Type:application/json" -d '{ "id": 10001, "firstName" : "lakhan", "lastName" : "Kumar" }' localhost:8080/user/

##Suggestion Builder I haven't modified the signature as asked, so I guess standard tests that you have designed should work. However to use Collection benefits, I have overrided hashCode() and equals() method of Suggestion class.

About


Languages

Language:Java 100.0%