maykinmedia / objects-api

API and admin interface to manage Objects of certain Objecttypes. An object can be anything whether its a monument, report, tree or a permit.
https://opengem.nl/producten/overige-registraties/
Other
7 stars 10 forks source link

As developer, I want endpoints ending in slashes to just work #120

Open annashamray opened 3 years ago

annashamray commented 3 years ago

@joeribekker Let's discuss it.

  1. Currently Openzaak APIs don't support trailing slashes. Objects API and Objecttypes API are consistent with them (and use the same routers)
  2. Trailing slashes are conventional in Django and are a default option for routers.

The easiest solution is to turn back trailing slashes in the routers. With the default setting APPEND_SLASH=true the endpoints with and without trailing slashes will be supported. The only change would be adding slashes in the API spec.

joeribekker commented 3 years ago

I think this is no longer a big issue. Can close it.