Upload OpenAPI Spec & Get Report
Upload an API spec (OpenAPI v3.x only). A report will be generated synchronously and return the simplified report generated for the spec.
Example request:
curl --request POST -H 'Authorization: Bearer YOUR_KEY_HERE' -F 'apiFile=@/path/to/my-openapi.json' --url https://api.ratemyopenapi.com/sync-report
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Responses
Full Open API report
resultsobject
Get your report by ID
Access your report using the ID given by the /rate endpoint. Note, the report may take a few seconds to generate, during which time you might receive a 404.
path Parameters
reportIdstring · requiredThe ID of your report (a uuid)
Example: 7cf20e71-f5df-487b-a145-0825b91db7cd
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Responses
Success
Get Simple Report
Fetches the simplified report generated by the Upload OpenAPI Spec endpoint. You may have to wait 10-20 seconds after upload for the report to be generated before fetching it.
path Parameters
reportIdstring · requiredThe ID of your report (a uuid)
Example: 7cf20e71-f5df-487b-a145-0825b91db7cd
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Responses
The simplified API report
versionstringVersion of the OAS file.
titlestringTitle of the OAS file.
fileExtensionstringFile extension of the uploaded spec, either json or yaml.
docsScorenumberThe documentation score. Can high quality docs be generated from this API Spec?
completenessScorenumberThe completeness score. Does the API spec include many useful, but not required properties?
scorenumberThe overall score. A combination of the other scores.
securityScorenumberThe security score. How secure is the API based on OWASP standards?
sdkGenerationScorenumberThe SDK Generation score. How easily can SDK's be generated from this API Spec?
shortSummarystringA short summary of the issues with the API Spec.
longSummarystringA longer summary of the issues with the API Spec.
