IPIF / prosopogrAPhI

Tentative way towards a shared API for prosopographical data based on the factoid model (Bradley/Short 2005)
24 stars 6 forks source link

Unified properties in response schemas + minor fixes #9

Closed gvasold closed 5 years ago

gvasold commented 5 years ago

Responses to the listing endpoints (/factoids, /statements etc.) looked like this:

{
   'protocol': {..},
   'factoids': []
}
{
   'protocol': {..},
   'statements': []
}

When writing tests I got repeatedly confused with the different names. So I unified them for all listing endpoints to

{
   'protocol': {..},
   'data': []
}

Also made some minor changes: