-
Notifications
You must be signed in to change notification settings - Fork 3
REST format
Vít Mazín edited this page Jan 18, 2020
·
1 revision
REST requests are handled by classes from module modules/crce-rest-v2 in package ws.jersey (for all possible commands please see ws.jersey package). These classes can consume and provide requests and responses in XML or JSON format. To specify what format you want to use you have to add one of these headers into request:
-
Content-Type: application/xml;
- for request (and response) in XML -
Content-Type: application/json;
- for request (and response) in JSON
Data from DB (or from checking compatibility process) are mapped to value object from module modules/crce-vo. Classes for storing value objects are stored in package model. Mapping data into these value objects is done by MappingServiceDozer (in package internal.service). This mapper implements interface MappingService (in service package).
-
http://localhost:8080/rest/v2/metadata
- list all resources, copy resource's uuid -
http://localhost:8080/rest/v2/metadata/<uuid>
- get list of all metadata for given resource
[ CRCE wiki ]