metadatacenter / cedar-project

Build project for all CEDAR Java repositories
https://github.com/metadatacenter/cedar-docs/wiki
Other
12 stars 1 forks source link

REST instance submission framework #354

Closed martinjoconnor closed 7 years ago

martinjoconnor commented 7 years ago

Allow template designer to specify URI of REST API to submit instance. Presence of submission URI will indicate that front end should present a submission button. Pressing this button invokes the specified URI with the associated template instance as payload. Based on submission response, front end will indicate successful submission or list of errors and warnings.

Response could look something like:

{
  "validates": true,
  "info": [ "message1", "message2" ],
  "errors": [ "message1", "message2" ],
  "warnings":  [ "message1", "message2" ]
}
willrett commented 7 years ago

LINCS wants to demo feature on May 12th

martinjoconnor commented 7 years ago

LINCS feature hard coded for the moment. Generic implementation still pending.

martinjoconnor commented 7 years ago

This is rendered moot by new submission approach (https://github.com/metadatacenter/cedar-template-editor/issues/668).