Skip to content

GREG-318: Fix endpoints

Marte Fossum requested to merge GREG-318-improve-endpoint-SponsorOrgUnit into master

Changed the endpoint POST /api/v1/sponsors/{sponsor_id}/orgunit/{orgunit_id}. It should now create or update a SponsorOrganizationalUnit and not an OrganizationalUnit.
Made the endpoints
GET /api/v1/sponsors/{sponsor_id}/orgunit/{orgunit_id} which gets a SponsorOrganizationalUnit
and
GET /api/v1/sponsors/{sponsor_id}/orgunits which lists all SponsorOrganizationalUnit connected to the sponsor

Edited by Marte Fossum

Merge request reports

Loading