Implement basic CRUD for /acquisitions-unit-storage/units

Description

Overview:
Define and implement the acquisitions-units API

  • new interfrace: acquisitions-unit-storage

  • See API Listing for endpoint details.

  • Schema:
    || property || type || default || required || description ||
    | id | String | | | UUID |
    | name | String | | required | a name for this acquisitions unit |
    | protectCreate | Boolean | true | | if true, only members can create records associated with this acq unit. |
    | protectRead | Boolean | false | | if true, only members can read/view records associated with this acq unit. |
    | protectUpdate | Boolean | true | | if true, only members can update records associated with this acq unit. |
    | protectDelete | Boolean | true | | if true, only members can delete records associated with this acq unit. |

  • should include metadata

Additional background can be found on the wiki

Acceptance Criteria:

  • ModuleDescriptor, RAML are updated

  • Schema and examples are created

  • Unit tests are updated

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Craig McNallyJune 20, 2019 at 6:02 PM

Verified on folio-testing:

POST

GET by id

PUT

GET by query

DELETE

Craig McNallyJune 20, 2019 at 5:32 PM

Thank you for the very thorough review

Raman AsadchyJune 20, 2019 at 11:49 AM

Verified on folio-testing

1) Set up environment variables

2) (POST) create an acquisitions-unit

Request :

Response:

3) (POST) Try to create acquisitions-unit with invalid field

Request:

Response:

4) (PUT) Update "name" field

Request

Response

5) (PUT) Try to update acquisitions-unit with invalid field

Request

Response

6) (PUT) Try to update acquisitions-unit by bad-id

Request

Response

7)(PUT) Try to update acquisitions-unit by non existing id

Request

Response

8) (GET) receive acquisitions-unit by id

Request

Response

9) (GET) receive acquisitions-unit by non existing id

Request

Response

10) (GET) receive acquisitions-unit by "bad-id"

Request

Response

11) (GET) receive acquisitions-unit by query.

Request

Response

12)(DELETE) Delete by "bad-id"

Request

Response

13)(DELETE) Delete by non existing id.

Request

Response

14)(DELETE) Delete by id

Request

Response

15) Verified delete

Request

Response

Done

Details

Assignee

Reporter

Tester Assignee

Priority

Story Points

Sprint

Development Team

Thunderjet

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created May 22, 2019 at 2:23 AM
Updated June 20, 2019 at 8:16 PM
Resolved June 20, 2019 at 6:02 PM
TestRail: Cases
TestRail: Runs