Sinar / popit_ng

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

Consider API endpoint to list membership linked to an object #278

Open sweemeng opened 6 years ago

sweemeng commented 6 years ago

Instead of having to search for membership for search the id of the object on membership. Have a url that return membership related to the object

sweemeng commented 6 years ago

The payload for membership can be big, so having a database query and return a list is easier and can be smaller compared to listing membership nested in an object. The result can be paginated too.

sweemeng commented 6 years ago

Make this read write