Skip to content

GET annotationset {id}

Paolo Ciccarese edited this page Feb 12, 2014 · 1 revision

GET /annotationset/{id}

Returns the requested Annotation Set.

Parameter Description Default Impl
apiKey The application assigned apikey. The API calls are available only for registered and authorized applications. REQUIRED YES
flavor If specified, this will influence the returned format. OA no

Where OA is Open Annotation Model.

Results format

Note: the result below is displaying a very minimum amount of Annotation info for brevity.

Success (200)

{
    "@graph" : [ {
        "@id" : "http://www.example.org/ann1",
        "@type" : "http://www.w3.org/ns/oa#Annotation",
        "http://www.w3.org/ns/oa#hasBody" : {
            "@id" : "http://www.example.org/body1"
        },
        "http://www.w3.org/ns/oa#hasTarget" : {
            "@id" : "http://www.example.org/target1"
        }
    } ],
    "@id" : "http://annotopiaserver.org/annotationset/85"
}

Not found (404)

{
    "status":"notfound",
    "message":"The requested resource http://localhost:8080/AtSmartStorage/annotationset/86 has not been found",
    "duration":"31ms"
}