maestro icon indicating copy to clipboard operation
maestro copied to clipboard

web-api content type is text. Should be json.

Open CThuleHansen opened this issue 3 years ago • 0 comments

Ensure proper content-types. This makes it possible to link swagger docs to the actual java object representing the json. i.e. with just text, the automated swagger docs cannot say anything about the data: image

But with json, swagger can: image

I think it is possible to have multiple content-types, as it works for simulate (https://github.com/INTO-CPS-Association/maestro/blob/development/maestro-webapi/src/main/java/org/intocps/maestro/webapi/maestro2/Maestro2SimulationController.java#L217)

But it requires some plumbing (https://github.com/INTO-CPS-Association/maestro/blob/development/maestro-webapi/src/main/java/org/intocps/maestro/webapi/SimulateRequestBodyConverter.java)

CThuleHansen avatar May 07 '21 07:05 CThuleHansen