ITU-BDSA2024-GROUP24 / Chirp

MIT License
1 stars 0 forks source link

4) 1.a) Refactor the CSV Database to a Web Service #21

Closed Xamyg closed 1 month ago

Xamyg commented 1 month ago

Implement two endpoints in your CSV database web service: /cheep and /cheeps.

Sending a JSON object, e.g., of the form {"Author":"ropf","Message":"Hello, World!", "Timestamp": 1684229348} as the body of an HTTP POST request to the /cheep endpoint shall store the cheep in the remote database.

An HTTP GET request to the /cheeps endpoint shall return all cheeps that are stored in the CSV database as a list of JSON objects.