Implement Platform controller and URLMappings in mod-agreements

Description

  1. Need to support GET and PUT for Platforms. POST nice to have not required.
    The PCI controller + URL Mappings is probably a reasonable example of this working

URL Mappings for PCI: https://github.com/folio-org/mod-agreements/blob/98c40d29bf9e5926e241963eb00b215b2434a8fc/service/grails-app/controllers/org/olf/UrlMappings.groovy#L94

PCI Controller: https://github.com/folio-org/mod-agreements/blob/master/service/grails-app/controllers/org/olf/PackageContentItemController.groovy

has to be done before

Checklist

hide

TestRail: Results

Activity

Show:

Peter Böhm October 22, 2020 at 4:10 PM

Preliminary PR created to hopefully allow progress on the frontend
https://github.com/folio-org/mod-agreements/pull/378

Working:

  • GET /erm/platforms/{$id}

  • PUT /erm/platforms/{$id} - with postman, not successfully tested with curl yet

Partly working:

  • GET /erm/platforms/ - works, but excludes any platform items that have been changed via database or endpoint

To be done:

  • locators should not expand to second level (owner)

Current sample output for GET /erm/platforms:

Ethan Freestone October 14, 2020 at 2:41 PM
Edited

view file also probably needed in `mod-agreements/service/grails-app/views`
Try something like

if that doesn't work there are a lot of examples of how to do specific things in other views, or reach out to me

The Module Descriptor will also need changing, `mod-agreements/service/src/main/okapi/ModuleDescriptor-template.json` to expose the endpoint and add permissions etc

Done

Details

Assignee

Reporter

Priority

Sprint

Development Team

None

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created October 5, 2020 at 11:20 AM
Updated November 16, 2020 at 7:07 AM
Resolved November 16, 2020 at 7:07 AM
TestRail: Cases
TestRail: Runs