Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ZA] migrate to v2 of the PMG API #2457

Open
mhl opened this issue Aug 13, 2018 · 1 comment
Open

[ZA] migrate to v2 of the PMG API #2457

mhl opened this issue Aug 13, 2018 · 1 comment

Comments

@mhl
Copy link
Contributor

mhl commented Aug 13, 2018

There's a new version of the PMG API available - @longhotsummer pointed out that an advantage of this is that we could selectively only return the fields we're using:

In addition, you may want to migrate to the V2 API, which allows you to specify field names to reduce response sizes:

https://api.pmg.org.za/v2/minister-questions/7411

eg: https://api.pmg.org.za/v2/minister-questions/7411?fields=year,date,intro

@longhotsummer
Copy link
Contributor

Here are all the urls (take from https://github.com/OpenUpSA/pmg-cms-2/blob/master/pmg/api/v2.py):

/v2/committees/
/v2/committees/int:id
/v2/committees/int:id/meetings
/v2/committees/int:id/bills
/v2/committees/int:id/calls-for-comment
/v2/committees/int:id/tabled-reports
/v2/committees/int:id/members
/v2/committee-meetings/
/v2/committee-meetings/int:id
/v2/committee-meetings/int:id/attendance
/v2/minister-questions/
/v2/minister-questions/int:id
/v2/minister-questions/legacy/
/v2/minister-questions/legacy/int:id
/v2/ministers/
/v2/ministers/int:id
/v2/members/
/v2/members/int:id
/v2/calls-for-comments/
/v2/calls-for-comments/int:id
/v2/bills/
/v2/bills/int:id
/v2/daily-schedules/
/v2/daily-schedules/int:id

@mhl mhl changed the title migrate to v2 of the PMG API [ZA] migrate to v2 of the PMG API Sep 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants