Closed victormemborg closed 1 month ago
We must implement two endpoints - /cheep and /cheeps in order to prepare our application to web instead of CLI.
Acceptance criteria:
Example payload of requests to create a new cheep (POST /cheep):
{ "Author":"ropf", "Message":"Hello, World!", "Timestamp": 1684229348 }
Example payload of response when listing all cheeps (GET /cheeps):
[ { "Author":"ropf", "Message":"Hello, World!", "Timestamp": 1684229348 }, { "Author":"fpor", "Message":"Hello, Back!", "Timestamp": 1684229348 } ]
We must implement two endpoints - /cheep and /cheeps in order to prepare our application to web instead of CLI.
Acceptance criteria:
Example payload of requests to create a new cheep (POST /cheep):
Example payload of response when listing all cheeps (GET /cheeps):