SWEZenith / Fall2017Swe574-Zenith

A repository that will be used for SWE 574 Fall'17 Project.
MIT License
0 stars 6 forks source link

Creation of an Endpoint to Get Annotations of Given Content #48

Closed pinarersoy closed 7 years ago

pinarersoy commented 7 years ago

An endpoint will be added under AnnotationController, which will provide all annotations made over given content.

gokceyucel commented 7 years ago
pinarersoy commented 7 years ago

Content structure is changed as the following sample content:

{
     "story_items": [
     {
     "type": "text",
     "content": "Bebek was a popular residential district under Ottoman rule, and continues to be so today. Its population reflected the diverse society of the time, which is still visible in Bebek's historic architecture and contemporary constituencies."
     },
     {
     "type": "image" ,
     "content": "https://tr.pinterest.com/pin/375909900139360239/"
     }
     ],
     "title" : "Once upon a time... Bebek",
     "tags" : ["Bebek", "seaview", "historic"],
     "day" : 10,
     "month" : 10,
     "year" : 1960,
     "location": {
     "longitude": 29.0422726,
     "latitude": 41.0763304,
     "name" : "Bebek in 1950s"
     },
     "creator": "http://living-history.gkc.host/api/v1/users/pinar"
}