annotate docs/howToTest.txt @ 28:185db3cac82c

working on new schema.
author casties
date Wed, 02 May 2012 19:31:53 +0200
parents 77530be3c747
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
dwinter
parents:
diff changeset
1 Test POST:
dwinter
parents:
diff changeset
2
dwinter
parents:
diff changeset
3 curl -i -X POST -d "username=james&xpointer=xx" http://127.0.01:8280/AnnotationManager/annotations
dwinter
parents:
diff changeset
4
dwinter
parents:
diff changeset
5 curl -i -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d '{"username":"testname","xpointer":"xx","text":"mytext"}' http://127.0.0.1:8280/AnnotationManager/annotator/annotations
dwinter
parents:
diff changeset
6
dwinter
parents:
diff changeset
7 curl -i -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d '{"username":"testname","xpointer":"xx","text":"mytext"}' http://euler.mpiwg-berlin.mpg.de:58080/AnnotationManager/annotator/annotations
dwinter
parents:
diff changeset
8
dwinter
parents:
diff changeset
9
dwinter
parents:
diff changeset
10 curl -i -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d ' {"id": "39fc339cf058bd22176771b3e3187329","created": "2011-05-24T18:52:08.036814","uri": "http://some.uri","text": "A note I wrote", "quote": "The lady said this.","ranges": [{"start": "/p[69]/font/font", "end": "/p[70]/font/font", "startOffset": "0", "endOffset": "120"}], "annotator_schema_version": "v1.0"}' http://127.0.0.1:8280/AnnotationManager/annotator/annotations
dwinter
parents:
diff changeset
11
dwinter
parents:
diff changeset
12
dwinter
parents:
diff changeset
13 Test: get:
dwinter
parents:
diff changeset
14
dwinter
parents:
diff changeset
15 curl -i -H "Accept: application/json" -X GET http://127.0.0.1:8280/AnnotationManager/annotator/annotations?uri=http://www.mpiwg-berlin.mpg.de
dwinter
parents:
diff changeset
16
dwinter
parents:
diff changeset
17 curl -i -H "Accept: application/json" -X GET http://127.0.0.1:8280/AnnotationManager/annotator/annotations?uri=http://some.uri