I am getting error after generating apis using the open api json #884
Answered
by
fuma-nama
RajuGangitla
asked this question in
Q&A
-
screen-capture.24.webmcommand used to generate the apis node ./scripts/generate-docs.mjs {
"openapi": "3.0.0",
"paths": {
"/project-mgt/create": {
"post": {
"operationId": "ProjectMgtController_addProject",
"summary": "Create a new project",
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/AddProjectDTO" }
}
}
},
"responses": {
"201": {
"description": "The project has been successfully created."
},
"400": { "description": "Bad Request" }
},
"tags": ["projects"]
}
},
},
"info": {
"title": "Zedblock Apis",
"description": "API documentation for the Zedblock",
"version": "1.0",
"contact": {}
},
} |
Beta Was this translation helpful? Give feedback.
Answered by
fuma-nama
Sep 21, 2024
Replies: 1 comment 1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need a server url for API examples, see https://learn.openapis.org/specification/servers