Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Use of the api #2

Open
hokodaime opened this issue Jun 18, 2016 · 2 comments
Open

Use of the api #2

hokodaime opened this issue Jun 18, 2016 · 2 comments

Comments

@hokodaime
Copy link

I didn't know if that it's the right place for this help request, i hope so. I have to use the api from the openpolis repository on github. These repository had a djiango rest framework api,
https://github.com/openpolis/op_api3/blob/master/api_project/parlamento/urls.py
I've tryed to change the endpoint from urls.py to groups/
https://github.com/openpolis/op_api3/blob/master/api_project/parlamento/groups/
but as result I've received a bad request response. Someone can make me a use exemple of a right request on these API?

@guglielmo
Copy link
Member

guglielmo commented Jun 20, 2016

Hi @hokodaime, this is definitely the right place to ask for support.

As for your request, the http://api3.openpolis.it/parlamento/ endpoint shows all possible Legislatures of the italian parliament. There you can ask for the groups in a particular legislature. For example, for the current one (XVII): http://api3.openpolis.it/parlamento/17/groups/, or the previous one: http://api3.openpolis.it/parlamento/16/groups/.

Hope this helps you.

@hokodaime
Copy link
Author

Thank you! Very helpfull

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants