usnistgov / oar-pdr

The NIST Open Access to Research (OAR) Public Data Repository (PDR) system software
11 stars 10 forks source link

Feature/odd 741 customization api #143

Closed deoyani closed 4 years ago

deoyani commented 4 years ago

Addresses issues ODD-856 This branch contains new java source code for customization REST api. The branch has been in test phase on datapubtest.

There are two main sets of endpoints in this service, one is accessed at service level using service level authorization called draft endpoint and other are editor endpoints, which need authorized user token to access/update data.

Draft Endpoints, used for service level interface for metadata service and customization service. It supports Get, Delete and Put methods with authorization header "Authorization: Bearer service token" https:///customization/pdr/lp/draft/

  1. Editor endpoint, used for interface between client app and customization service. It supports Get, Delete and Patch methods with "Authorization: Bearer user token"

https:///customization/pdr/lp/edior/

3.User Authentication and Authorization

https:///customization/pdr/auth/_logininfo

https:///customization/pdr/auth/_perm/

  1. API documentation (auto generated)

https:///customization/swagger-ui.html