Closed sg3847 closed 1 year ago
Implement the following API endpoints for people:
JSON payload for POST and PUT: { "data": { "type": "", "id": null, "attributes": { "first_name": "", "last_name": "", "orcid": "", "emails": "", "private_emails": "", "keywords": "" }, "relationships": { "affiliations": { "data": [ { "type": "Organization", "id": null } ] } } } } E.g. { "data": { "type": "Person", "id": 3, "attributes": { "first_name": "Betty", "last_name": "Bunn", "orcid": "0000-0002-1825-0190", "emails": "BettyGBunn@jourrapide.com", "private_emails": "RichardEHall@jourrapide.com,MaryLJoiner@armyspy.com", "keywords": "['cors', 'world']" }, "relationships": { "affiliations": { "data": [ { "type": "Organization", "id": "1" } ] } } } }
{ "data": { "type": "", "id": null, "attributes": { "first_name": "", "last_name": "", "orcid": "", "emails": "", "private_emails": "", "keywords": "" }, "relationships": { "affiliations": { "data": [ { "type": "Organization", "id": null } ] } } } }
{ "data": { "type": "Person", "id": 3, "attributes": { "first_name": "Betty", "last_name": "Bunn", "orcid": "0000-0002-1825-0190", "emails": "BettyGBunn@jourrapide.com", "private_emails": "RichardEHall@jourrapide.com,MaryLJoiner@armyspy.com", "keywords": "['cors', 'world']" }, "relationships": { "affiliations": { "data": [ { "type": "Organization", "id": "1" } ] } } } }
Implement the following API endpoints for people:
JSON payload for POST and PUT:
{ "data": { "type": "", "id": null, "attributes": { "first_name": "", "last_name": "", "orcid": "", "emails": "", "private_emails": "", "keywords": "" }, "relationships": { "affiliations": { "data": [ { "type": "Organization", "id": null } ] } } } }
E.g.{ "data": { "type": "Person", "id": 3, "attributes": { "first_name": "Betty", "last_name": "Bunn", "orcid": "0000-0002-1825-0190", "emails": "BettyGBunn@jourrapide.com", "private_emails": "RichardEHall@jourrapide.com,MaryLJoiner@armyspy.com", "keywords": "['cors', 'world']" }, "relationships": { "affiliations": { "data": [ { "type": "Organization", "id": "1" } ] } } } }