xigt / sleipnir

RESTful API for interfacing the ODIN database
MIT License
0 stars 0 forks source link

ACCEPT=application/xml on /igts endpoint #9

Closed goodmami closed 7 years ago

goodmami commented 7 years ago

the .../corpora/<corpus_id>/igts endpoint is being used for constructing queries, but it doesn't allow an ACCEPT header to specify XML return values, which is unfortunate.

goodmami commented 7 years ago

It's easier to specify the IDs when requesting a corpus (e.g. .../corpora/<corpus_id>?id=...), since the /igts endpoint returns a list of IGTs and not a corpus entity. Although this also makes it harder to put the QueryResult entities on the matched IGTs, if there are any.