bounswe / bounswe2022group4

6 stars 3 forks source link

Backend: Text Annotation Get Endpoint #547

Closed MercerFrey closed 1 year ago

MercerFrey commented 1 year ago

Description: GET endpoint for the text annotations are requiered. It should return the text annotation JSON for the given annotation id. Format should be compatible with the Web Annotation Data Model. This is an example response.


{
  "@context": "http://www.w3.org/ns/anno.jsonld",
  "id": "http://example.org/anno20",
  "type": "Annotation",
  "body": {
    "type" : "TextualBody",
    "value" : "<p>example!</p>",
    "format" : "text/html",
    "language" : "en"

  },
    "target": {
        "source": "http://example.org/post-slug",
        "selector": {
          "type": "TextPositionSelector",
          "start": 412,
          "end": 795
    }
}

Steps:

1) Model for the text annotation should be created. 1) View for the simple get annotation should be created.

Deadline: 25.12.2022 17.00

MercerFrey commented 1 year ago

Endpoint is implemented. Closing.