Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.56 KB

README.md

File metadata and controls

40 lines (30 loc) · 1.56 KB

Description

This application handles the CRUD functionalities of meetings. The Spring project Contains a rest server configured with mongoDB.

Getting Started

Create meeting

curl -i -X POST -H "Content-Type:application/json" -d "{\"title\":\"1on1\",\"participants\":[{\"username\":\"user1\",\"name\":\"people\"},{\"username\":\"user2\",\"name\":\"people2\"}],\"plannedDate\":1630945253743,\"description\":\"meeting\",\"location\":\"zoom\"}" http://localhost:8080/meetings

Read meetings

Get all meeting

curl -i  -H "X-AUTHENTICATED-USER:user1" -H "Content-Type:application/json" http://localhost:8080/meetings

Get meeting with specific title

curl -i -H "Content-Type:application/json" -H "X-AUTHENTICATED-USER:user1" http://localhost:8080/meetings/{meetingId}

Get meeting with specific state

Gets all meetings with the selected state. The state is boolean true means closed.

curl -i -H "X-AUTHENTICATED-USER:user1" -H "Content-Type:application/json" http://localhost:8080/meetings/state/{closed}

Update existing meeting

curl -i -X PUT -H "X-AUTHENTICATED-USER:user1" -H "Content-Type:application/json" -d  "{\"title\":\"1on1\",\"participants\":[{\"username\":\"user1\",\"name\":\"people\"},{\"username\":\"user2\",\"name\":\"people3\"}],\"plannedDate\":1630945253843,\"description\":\"meeting\",\"location\":\"teams\"}" http://localhost:8080/meetings

Delete meeting

curl -i -X DELETE -H "X-AUTHENTICATED-USER:user1" -H "Content-Type:application/json" http://localhost:8080/meetings/{meetingId}