ITU-BDSA2024-GROUP23 / Chirp

🐥 Chirp platform
https://bdsagroup23chirprazor.azurewebsites.net
Apache License 2.0
0 stars 0 forks source link

Refactor the CSV Database to a Web Service #20

Closed victormemborg closed 1 month ago

victormemborg commented 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
  }
]