InfoCommons / cic

Apache License 2.0
0 stars 0 forks source link

REST API for Organizations #92

Closed sg3847 closed 1 year ago

sg3847 commented 2 years ago

Implement the following API endpoints for organizations:

  1. GET /organizations - Get list of all organizations
  2. POST /organizations - Create a new organization
  3. GET /organizations/{id} - Get an organization
  4. PUT, /organizations/{id} - Update organization metadata for a given id
  5. DELETE /organizations/{id} - Remove an organization

JSON payload for POST and PUT: { "data": { "type": "Organization", "id": null, "attributes": { "ror": "", "name": "", "address": "", "city": "", "state": "", "zip": "", "country": "" } } } E.g. { "data": { "type": "Organization", "id": 5, "attributes": { "ror": "00ghtc022", "name": "National Physical Laboratory", "address": "4222 Armbrester Drive", "city": "Los Angeles", "state": "CA", "zip": "90067", "country": "USA" } } }