bounswe / bounswe2022group4

6 stars 3 forks source link

Backend: Get and Post endpoints text annotation by post-slug #550

Closed MercerFrey closed 1 year ago

MercerFrey commented 1 year ago

Description:

We need to provide endpoints for the given post because when frontend needs a list of annotations for the given post. Get endpoints returns a list of annotations. Post endpoint creates an annotation for the given post. The body requiered to create is as follows:

{
    "position": {
        "start": 31,
        "end": 57
        },
      "data": {
        "text": "jjjjjjj",
        "source": "http://example.org/post-slug1313"
      }
}

Deadline: 25.12.2022 18.00

MercerFrey commented 1 year ago

Necessary endpoints are implemented. Closing.