CDLUC3 / dmsp_aws_prototype

Sceptre CloudFormation templates for DMPHub v2
MIT License
1 stars 0 forks source link

Swagger UI is not able to process the API response #36

Closed briri closed 1 year ago

briri commented 1 year ago

The Swagger UI site https://dmphub-dev.cdlib.org/api-docs is not able to load the response.

The API is working and the CloudWatch log shows the call made by Swagger and does not report any errors. I suspect that there is something amiss with the definition of the StandardResponse and/or the Dmp definitions in the openapi spec file. For example, if you go to the site and test the Get /dmps/{dmpId} endpoint (leave the default DMP ID in the field) it responds with 'TypeError: Load failed'. If you copy the 'curl' statement it shows though into a terminal window, it successfully returns the sample DMP.

briri commented 1 year ago

Also, investigate if we can just use our JSON schema instead of maintaining redundant information in the openapi spec

briri commented 1 year ago

finally got this all working