Sinar / popit_ng

Database and API implementation of Popolo standard
GNU Affero General Public License v3.0
22 stars 4 forks source link

Update URL schema for Software update #251

Open sweemeng opened 7 years ago

sweemeng commented 7 years ago

The js client seems to use core api, which is currently being push as standard http://www.django-rest-framework.org/topics/api-clients/#javascript-client-library

I don't think our URL schema is compatible with core api. With the new version of django rest framework is using it as default, we should adopt it and drop our URL schema

related to #250

sweemeng commented 7 years ago

The reason we do the language in URL thing is because in the mysociety popit implementation, both frontend and backend is implemented in the same url and uses accepted-language. This is not true for us anymore.

So we won't be implementing html renderer in this case. or we can just use requests_param(which is just http get parameter) for language if we were to implement this