- Newest
- Most votes
- Most comments
Hello,
From the query, I understand that you are importing documentation parts from openAPI.json
using "import-documentation-parts" command which returns (1) but when you publish the documentation and export it as an OpenAPI 3 JSON file, you observe (2).
-
I tried to use the same
openAPI.json
file you shared and imported using the same command. Here I received (3). Now I tried to publish the documentation and export it as an OpenAPI 3 JSON file and observed (4). -
Further, I exported it as OpenAPI 3 + API Gateway Extensions and observed (5). Even with Export as OpenAPI 3 + Postman Extensions, I was able to observe (4)
-
From [4], the title is the name of the API Gateway API and the version is the created date/time of the API.
-
Similarly in (2) , the title is the name of API "uat-PdfGeneration" and version is the creation date/time of it "2023-06-23T15:25:54Z"
In this scenario, I would like to share with you that when we export using OpenAPI 3 & OpenAPI 3 + Postman Extensions, we will not be able to see the documentationParts for the "type": "API". When we use OpenAPI 3 + API Gateway Extensions, we can see documentationParts for the "type": "API" because we are using API Extensions for the specified location.
You can refer https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-documenting-api.html and go through the all 7 Topics mentioned for better understanding.
(1):
{
"title": "PDF Generation",
"description": "TP Comparison API 0.0.23",
"version": "1.1.0"
}
(2):
{
"openapi" : "3.0.1",
"info" : {
"title" : "uat-PdfGeneration",
"description" : "TP Comparison API 0.0.23",
"version" : "2023-06-23T15:25:54Z"
},
(3):
{
"info": {
"title": "PDF Generation",
"description": "TP Comparison API 0.0.23",
"version": "1.1.1"
}
}
(4):
{
"openapi" : "3.0.1",
"info" : {
"title" : "xyz",
"description" : "TP Comparison API 0.0.23",
"version" : "2023-07-06T09:16:09Z"
},
(5):
"x-amazon-apigateway-documentation" : {
"version" : "12",
"createdDate" : "2023-07-14T09:53:39Z",
"documentationParts" : [ {
"location" : {
"type" : "API"
},
"properties" : {
"info" : {
"title" : "PDF Generation",
"description" : "TP Comparison API 0.0.23",
"version" : "1.1.1"
}
}
} ]
}
Relevant content
- Accepted Answerasked 5 months ago
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago