diff --git a/bin/asciidoc-documentation-petstore.sh b/bin/asciidoc-documentation-petstore.sh
old mode 100644
new mode 100755
diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AsciidocDocumentationCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AsciidocDocumentationCodegen.java
index 0f4dad2818b..5e8e788209a 100644
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AsciidocDocumentationCodegen.java
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AsciidocDocumentationCodegen.java
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2018 OpenAPI-Generator Contributors (https://openapi-generator.tech)
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package org.openapitools.codegen.languages;
import org.openapitools.codegen.*;
@@ -21,7 +37,7 @@ import io.swagger.v3.oas.models.OpenAPI;
/**
* basic asciidoc markup generator.
- *
+ *
* @see asciidoctor
*/
public class AsciidocDocumentationCodegen extends DefaultCodegen implements CodegenConfig {
@@ -34,7 +50,7 @@ public class AsciidocDocumentationCodegen extends DefaultCodegen implements Code
/**
* Lambda emitting an asciidoc "include::filename.adoc[]" if file is found in
* path. Use:
- *
+ *
*
* {{#includemarkup}}{{name}}/description.adoc{{/includemarkup}}
*
@@ -75,7 +91,7 @@ public class AsciidocDocumentationCodegen extends DefaultCodegen implements Code
/**
* Lambda emitting an asciidoc "http link" if file is found in path. Use:
- *
+ *
*
* {{#snippetLink}}markup until koma, /{{name}}.json{{/snippetLink}}
*
@@ -136,7 +152,7 @@ public class AsciidocDocumentationCodegen extends DefaultCodegen implements Code
/**
* extracted filter value should be relative to be of use as link or include
* file.
- *
+ *
* @param name filename to sanitize
* @return trimmed and striped path part or empty string.
*/
@@ -184,10 +200,10 @@ public class AsciidocDocumentationCodegen extends DefaultCodegen implements Code
cliOptions.add(new CliOption(SNIPPET_DIR,
"path with includable markup snippets (e.g. test output generated by restdoc, default: .")
- .defaultValue("."));
+ .defaultValue("."));
cliOptions.add(new CliOption(SPEC_DIR,
"path with includable markup spec files (e.g. handwritten additional docs, default: .")
- .defaultValue(".."));
+ .defaultValue(".."));
additionalProperties.put("appName", "OpenAPI Sample description");
additionalProperties.put("appDescription", "A sample OpenAPI documentation");
@@ -227,7 +243,6 @@ public class AsciidocDocumentationCodegen extends DefaultCodegen implements Code
LOGGER.warn("base part for include markup lambda not found: " + specDir + " as "
+ Paths.get(specDir).toAbsolutePath());
}
- ;
this.includeSpecMarkupLambda = new IncludeMarkupLambda(specDir);
additionalProperties.put("specinclude", this.includeSpecMarkupLambda);
@@ -237,7 +252,6 @@ public class AsciidocDocumentationCodegen extends DefaultCodegen implements Code
LOGGER.warn("base part for include markup lambda not found: " + snippetDir + " as "
+ Paths.get(snippetDir).toAbsolutePath());
}
- ;
this.includeSnippetMarkupLambda = new IncludeMarkupLambda(snippetDir);
additionalProperties.put("snippetinclude", this.includeSnippetMarkupLambda);
@@ -249,10 +263,10 @@ public class AsciidocDocumentationCodegen extends DefaultCodegen implements Code
@Override
public void processOpenAPI(OpenAPI openAPI) {
if (this.includeSpecMarkupLambda != null) {
- LOGGER.info("specs: " + ": " + this.includeSpecMarkupLambda.resetCounter());
+ LOGGER.debug("specs: " + ": " + this.includeSpecMarkupLambda.resetCounter());
}
if (this.includeSnippetMarkupLambda != null) {
- LOGGER.info("snippets: " + ": " + this.includeSnippetMarkupLambda.resetCounter());
+ LOGGER.debug("snippets: " + ": " + this.includeSnippetMarkupLambda.resetCounter());
}
super.processOpenAPI(openAPI);
}
diff --git a/samples/documentation/asciidoc/.openapi-generator/VERSION b/samples/documentation/asciidoc/.openapi-generator/VERSION
index 717311e32e3..0e97bd19efb 100644
--- a/samples/documentation/asciidoc/.openapi-generator/VERSION
+++ b/samples/documentation/asciidoc/.openapi-generator/VERSION
@@ -1 +1 @@
-unset
\ No newline at end of file
+4.1.3-SNAPSHOT
\ No newline at end of file
diff --git a/samples/documentation/asciidoc/index.adoc b/samples/documentation/asciidoc/index.adoc
index e90df86635d..148466dd320 100644
--- a/samples/documentation/asciidoc/index.adoc
+++ b/samples/documentation/asciidoc/index.adoc
@@ -1,1659 +1,1969 @@
-= OpenAPI Petstore
-team@openapitools.org
-1.0.0
-:toc: left
-:numbered:
-:toclevels: 3
-:source-highlighter: highlightjs
-:keywords: openapi, rest, OpenAPI Petstore
-:specDir: modules\openapi-generator\src\main\resources\asciidoc-documentation
-:snippetDir: .
-
-[abstract]
-.Abstract
-This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
-
+= OpenAPI Petstore
+team@openapitools.org
+1.0.0
+:toc: left
+:numbered:
+:toclevels: 3
+:source-highlighter: highlightjs
+:keywords: openapi, rest, OpenAPI Petstore
+:specDir: modules/openapi-generator/src/main/resources/asciidoc-documentation
+:snippetDir: .
+:generator-template: v1 2019-09-03
+:info-url: https://openapi-generator.tech
+:app-name: OpenAPI Petstore
+
+[abstract]
+.Abstract
+This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
+
+
+// markup not found, no include ::intro.adoc[]
+
+
+== Endpoints
+
+
+[.Pet]
+=== Pet
+
+
+[.addPet]
+==== addPet
+
+`POST /pet`
+
+Add a new pet to the store
+
+===== Description
+
+
+
+
+// markup not found, no include ::pet/POST/spec.adoc[]
+
+
+
+===== Parameters
+
+
+===== Body Parameter
+
+[cols="2,3,1,1,1"]
+|===
+|Name| Description| Required| Default| Pattern
-include::stubs/empty.adoc[]
-
-
-== Endpoints
-
-
-[.Pet]
-=== Pet
-
-
-[.addPet]
-==== addPet
-
-`POST /pet`
-
-Add a new pet to the store
-
-
-===== Parameters
-
-
-===== Body Parameter
-
-[cols="2,3,1,1,1"]
-|===
-|Name| Description| Required| Default| Pattern
-
| body
| Pet object that needs to be added to the store <>
| X
|
|
-
-|===
-
-
-
-
-===== Return Type
-
-
-
--
-
-
-===== Responses
-
-.http response codes
-[cols="2,3,1"]
-|===
-| Code | Message | Datatype
-
-
-| 405
-| Invalid input
-| <<>>
-
-|===
-
-===== Samples
-
+|===
-// markup not included, not found: include::Pet/addPet/POST/http-request.adoc[]
-
-// markup not included, not found: include::Pet/addPet/POST/http-response.adoc[]
-
-
-
-[.deletePet]
-==== deletePet
-
-`DELETE /pet/{petId}`
-
-Deletes a pet
-
-
-===== Parameters
-
-====== Path Parameters
-
-[cols="2,3,1,1,1"]
-|===
-|Name| Description| Required| Default| Pattern
-
+
+
+===== Return Type
+
+
+
+-
+
+
+===== Responses
+
+.http response codes
+[cols="2,3,1"]
+|===
+| Code | Message | Datatype
+
+
+| 405
+| Invalid input
+| <<>>
+
+|===
+
+===== Samples
+
+
+// markup not found, no include ::pet/POST/http-request.adoc[]
+
+
+// markup not found, no include ::pet/POST/http-response.adoc[]
+
+
+
+// file not found, no * wiremock data link :pet/POST/POST.json[]
+
+
+ifdef::internal-generation[]
+===== Implementation
+
+// markup not found, no include ::pet/POST/implementation.adoc[]
+
+
+endif::internal-generation[]
+
+
+[.deletePet]
+==== deletePet
+
+`DELETE /pet/{petId}`
+
+Deletes a pet
+
+===== Description
+
+
+
+
+// markup not found, no include ::pet/{petId}/DELETE/spec.adoc[]
+
+
+
+===== Parameters
+
+====== Path Parameters
+
+[cols="2,3,1,1,1"]
+|===
+|Name| Description| Required| Default| Pattern
+
| petId
| Pet id to delete
| X
| null
|
-
-|===
-
-
-====== Header Parameters
-
-[cols="2,3,1,1,1"]
-|===
-|Name| Description| Required| Default| Pattern
-
+|===
+
+
+====== Header Parameters
+
+[cols="2,3,1,1,1"]
+|===
+|Name| Description| Required| Default| Pattern
+
| apiKey
|
| -
| null
|
-
-|===
-
-
-
-===== Return Type
-
-
-
--
-
-
-===== Responses
-
-.http response codes
-[cols="2,3,1"]
-|===
-| Code | Message | Datatype
-
-
-| 400
-| Invalid pet value
-| <<>>
-
-|===
-
-===== Samples
-
+|===
-// markup not included, not found: include::Pet/deletePet/DELETE/http-request.adoc[]
-
-// markup not included, not found: include::Pet/deletePet/DELETE/http-response.adoc[]
-
-
-
-[.findPetsByStatus]
-==== findPetsByStatus
-
-`GET /pet/findByStatus`
-
-Finds Pets by status
-
-
-// markup not included, not found: include::Pet/findPetsByStatus/operation-spec.adoc[]
-
-
-===== Description
-
-Multiple status values can be provided with comma separated strings
-
-===== Parameters
-
-
-
-
-====== Query Parameters
-
-[cols="2,3,1,1,1"]
-|===
-|Name| Description| Required| Default| Pattern
-
+===== Return Type
+
+
+
+-
+
+
+===== Responses
+
+.http response codes
+[cols="2,3,1"]
+|===
+| Code | Message | Datatype
+
+
+| 400
+| Invalid pet value
+| <<>>
+
+|===
+
+===== Samples
+
+
+// markup not found, no include ::pet/{petId}/DELETE/http-request.adoc[]
+
+
+// markup not found, no include ::pet/{petId}/DELETE/http-response.adoc[]
+
+
+
+// file not found, no * wiremock data link :pet/{petId}/DELETE/DELETE.json[]
+
+
+ifdef::internal-generation[]
+===== Implementation
+
+// markup not found, no include ::pet/{petId}/DELETE/implementation.adoc[]
+
+
+endif::internal-generation[]
+
+
+[.findPetsByStatus]
+==== findPetsByStatus
+
+`GET /pet/findByStatus`
+
+Finds Pets by status
+
+===== Description
+
+Multiple status values can be provided with comma separated strings
+
+
+// markup not found, no include ::pet/findByStatus/GET/spec.adoc[]
+
+
+
+===== Parameters
+
+
+
+
+====== Query Parameters
+
+[cols="2,3,1,1,1"]
+|===
+|Name| Description| Required| Default| Pattern
+
| status
| Status values that need to be considered for filter <>
| X
| null
|
-
-|===
-
-
-===== Return Type
-
-array[<>]
-
-
-===== Content Type
-
-* application/xml
-* application/json
-
-===== Responses
-
-.http response codes
-[cols="2,3,1"]
-|===
-| Code | Message | Datatype
-
-
-| 200
-| successful operation
-| List[<>]
-
-
-| 400
-| Invalid status value
-| <<>>
-
-|===
-
-===== Samples
-
+|===
-// markup not included, not found: include::Pet/findPetsByStatus/GET/http-request.adoc[]
-
-// markup not included, not found: include::Pet/findPetsByStatus/GET/http-response.adoc[]
-
-
-
-[.findPetsByTags]
-==== findPetsByTags
-
-`GET /pet/findByTags`
-
-Finds Pets by tags
-
-
+===== Return Type
+
+array[<>]
+
+
+===== Content Type
+
+* application/xml
+* application/json
+
+===== Responses
+
+.http response codes
+[cols="2,3,1"]
+|===
+| Code | Message | Datatype
+
+
+| 200
+| successful operation
+| List[<>]
+
+
+| 400
+| Invalid status value
+| <<>>
+
+|===
+
+===== Samples
+
+
+// markup not found, no include ::pet/findByStatus/GET/http-request.adoc[]
+
+
+// markup not found, no include ::pet/findByStatus/GET/http-response.adoc[]
+
+
+
+// file not found, no * wiremock data link :pet/findByStatus/GET/GET.json[]
+
+
+ifdef::internal-generation[]
+===== Implementation
+
+// markup not found, no include ::pet/findByStatus/GET/implementation.adoc[]
+
+
+endif::internal-generation[]
+
+
+[.findPetsByTags]
+==== findPetsByTags
+
+`GET /pet/findByTags`
+
+Finds Pets by tags
+
+===== Description
+
+Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
+
+
+// markup not found, no include ::pet/findByTags/GET/spec.adoc[]
+
+
+
+===== Parameters
+
+
+
+
+====== Query Parameters
+
+[cols="2,3,1,1,1"]
+|===
+|Name| Description| Required| Default| Pattern
-// markup not included, not found: include::Pet/findPetsByTags/operation-spec.adoc[]
-
-
-===== Description
-
-Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
-
-===== Parameters
-
-
-
-
-====== Query Parameters
-
-[cols="2,3,1,1,1"]
-|===
-|Name| Description| Required| Default| Pattern
-
| tags
| Tags to filter by <>
| X
| null
|
-
-|===
-
-
-===== Return Type
-
-array[<>]
-
-
-===== Content Type
-
-* application/xml
-* application/json
-
-===== Responses
-
-.http response codes
-[cols="2,3,1"]
-|===
-| Code | Message | Datatype
-
-
-| 200
-| successful operation
-| List[<>]
-
-
-| 400
-| Invalid tag value
-| <<>>
-
-|===
-
-===== Samples
-
+|===
-// markup not included, not found: include::Pet/findPetsByTags/GET/http-request.adoc[]
-
-// markup not included, not found: include::Pet/findPetsByTags/GET/http-response.adoc[]
-
-
-
-[.getPetById]
-==== getPetById
-
-`GET /pet/{petId}`
-
-Find pet by ID
-
-
+===== Return Type
+
+array[<>]
+
+
+===== Content Type
+
+* application/xml
+* application/json
+
+===== Responses
+
+.http response codes
+[cols="2,3,1"]
+|===
+| Code | Message | Datatype
+
+
+| 200
+| successful operation
+| List[<>]
+
+
+| 400
+| Invalid tag value
+| <<>>
+
+|===
+
+===== Samples
+
+
+// markup not found, no include ::pet/findByTags/GET/http-request.adoc[]
+
+
+// markup not found, no include ::pet/findByTags/GET/http-response.adoc[]
+
+
+
+// file not found, no * wiremock data link :pet/findByTags/GET/GET.json[]
+
+
+ifdef::internal-generation[]
+===== Implementation
+
+// markup not found, no include ::pet/findByTags/GET/implementation.adoc[]
+
+
+endif::internal-generation[]
+
+
+[.getPetById]
+==== getPetById
+
+`GET /pet/{petId}`
+
+Find pet by ID
+
+===== Description
+
+Returns a single pet
+
+
+// markup not found, no include ::pet/{petId}/GET/spec.adoc[]
+
+
+
+===== Parameters
+
+====== Path Parameters
+
+[cols="2,3,1,1,1"]
+|===
+|Name| Description| Required| Default| Pattern
-// markup not included, not found: include::Pet/getPetById/operation-spec.adoc[]
-
-
-===== Description
-
-Returns a single pet
-
-===== Parameters
-
-====== Path Parameters
-
-[cols="2,3,1,1,1"]
-|===
-|Name| Description| Required| Default| Pattern
-
| petId
| ID of pet to return
| X
| null
|
-
-|===
-
-
-
-
-
-===== Return Type
-
-<>
-
-
-===== Content Type
-
-* application/xml
-* application/json
-
-===== Responses
-
-.http response codes
-[cols="2,3,1"]
-|===
-| Code | Message | Datatype
-
-
-| 200
-| successful operation
-| <>
-
-
-| 400
-| Invalid ID supplied
-| <<>>
-
-
-| 404
-| Pet not found
-| <<>>
-
-|===
-
-===== Samples
-
+|===
-// markup not included, not found: include::Pet/getPetById/GET/http-request.adoc[]
-
-// markup not included, not found: include::Pet/getPetById/GET/http-response.adoc[]
-
-
-
-[.updatePet]
-==== updatePet
-
-`PUT /pet`
-
-Update an existing pet
-
-
-===== Parameters
-
-
-===== Body Parameter
-
-[cols="2,3,1,1,1"]
-|===
-|Name| Description| Required| Default| Pattern
-
+
+
+
+===== Return Type
+
+<>
+
+
+===== Content Type
+
+* application/xml
+* application/json
+
+===== Responses
+
+.http response codes
+[cols="2,3,1"]
+|===
+| Code | Message | Datatype
+
+
+| 200
+| successful operation
+| <>
+
+
+| 400
+| Invalid ID supplied
+| <<>>
+
+
+| 404
+| Pet not found
+| <<>>
+
+|===
+
+===== Samples
+
+
+// markup not found, no include ::pet/{petId}/GET/http-request.adoc[]
+
+
+// markup not found, no include ::pet/{petId}/GET/http-response.adoc[]
+
+
+
+// file not found, no * wiremock data link :pet/{petId}/GET/GET.json[]
+
+
+ifdef::internal-generation[]
+===== Implementation
+
+// markup not found, no include ::pet/{petId}/GET/implementation.adoc[]
+
+
+endif::internal-generation[]
+
+
+[.updatePet]
+==== updatePet
+
+`PUT /pet`
+
+Update an existing pet
+
+===== Description
+
+
+
+
+// markup not found, no include ::pet/PUT/spec.adoc[]
+
+
+
+===== Parameters
+
+
+===== Body Parameter
+
+[cols="2,3,1,1,1"]
+|===
+|Name| Description| Required| Default| Pattern
+
| body
| Pet object that needs to be added to the store <>
| X
|
|
-
-|===
-
-
-
-
-===== Return Type
-
-
-
--
-
-
-===== Responses
-
-.http response codes
-[cols="2,3,1"]
-|===
-| Code | Message | Datatype
-
-
-| 400
-| Invalid ID supplied
-| <<>>
-
-
-| 404
-| Pet not found
-| <<>>
-
-
-| 405
-| Validation exception
-| <<>>
-
-|===
-
-===== Samples
-
+|===
-// markup not included, not found: include::Pet/updatePet/PUT/http-request.adoc[]
-
-// markup not included, not found: include::Pet/updatePet/PUT/http-response.adoc[]
-
-
-
-[.updatePetWithForm]
-==== updatePetWithForm
-
-`POST /pet/{petId}`
-
-Updates a pet in the store with form data
-
-
-===== Parameters
-
-====== Path Parameters
-
-[cols="2,3,1,1,1"]
-|===
-|Name| Description| Required| Default| Pattern
-
+
+
+===== Return Type
+
+
+
+-
+
+
+===== Responses
+
+.http response codes
+[cols="2,3,1"]
+|===
+| Code | Message | Datatype
+
+
+| 400
+| Invalid ID supplied
+| <<>>
+
+
+| 404
+| Pet not found
+| <<>>
+
+
+| 405
+| Validation exception
+| <<>>
+
+|===
+
+===== Samples
+
+
+// markup not found, no include ::pet/PUT/http-request.adoc[]
+
+
+// markup not found, no include ::pet/PUT/http-response.adoc[]
+
+
+
+// file not found, no * wiremock data link :pet/PUT/PUT.json[]
+
+
+ifdef::internal-generation[]
+===== Implementation
+
+// markup not found, no include ::pet/PUT/implementation.adoc[]
+
+
+endif::internal-generation[]
+
+
+[.updatePetWithForm]
+==== updatePetWithForm
+
+`POST /pet/{petId}`
+
+Updates a pet in the store with form data
+
+===== Description
+
+
+
+
+// markup not found, no include ::pet/{petId}/POST/spec.adoc[]
+
+
+
+===== Parameters
+
+====== Path Parameters
+
+[cols="2,3,1,1,1"]
+|===
+|Name| Description| Required| Default| Pattern
+
| petId
| ID of pet that needs to be updated
| X
| null
|
-
-|===
-
-
-
-
-
-===== Return Type
-
-
-
--
-
-
-===== Responses
-
-.http response codes
-[cols="2,3,1"]
-|===
-| Code | Message | Datatype
-
-
-| 405
-| Invalid input
-| <<>>
-
-|===
-
-===== Samples
-
+|===
-// markup not included, not found: include::Pet/updatePetWithForm/POST/http-request.adoc[]
-
-// markup not included, not found: include::Pet/updatePetWithForm/POST/http-response.adoc[]
-
-
-
-[.uploadFile]
-==== uploadFile
-
-`POST /pet/{petId}/uploadImage`
-
-uploads an image
-
-
-===== Parameters
-
-====== Path Parameters
-
-[cols="2,3,1,1,1"]
-|===
-|Name| Description| Required| Default| Pattern
-
+
+
+
+===== Return Type
+
+
+
+-
+
+
+===== Responses
+
+.http response codes
+[cols="2,3,1"]
+|===
+| Code | Message | Datatype
+
+
+| 405
+| Invalid input
+| <<>>
+
+|===
+
+===== Samples
+
+
+// markup not found, no include ::pet/{petId}/POST/http-request.adoc[]
+
+
+// markup not found, no include ::pet/{petId}/POST/http-response.adoc[]
+
+
+
+// file not found, no * wiremock data link :pet/{petId}/POST/POST.json[]
+
+
+ifdef::internal-generation[]
+===== Implementation
+
+// markup not found, no include ::pet/{petId}/POST/implementation.adoc[]
+
+
+endif::internal-generation[]
+
+
+[.uploadFile]
+==== uploadFile
+
+`POST /pet/{petId}/uploadImage`
+
+uploads an image
+
+===== Description
+
+
+
+
+// markup not found, no include ::pet/{petId}/uploadImage/POST/spec.adoc[]
+
+
+
+===== Parameters
+
+====== Path Parameters
+
+[cols="2,3,1,1,1"]
+|===
+|Name| Description| Required| Default| Pattern
+
| petId
| ID of pet to update
| X
| null
|
-
-|===
-
-
-
-
-
-===== Return Type
-
-<>
-
-
-===== Content Type
-
-* application/json
-
-===== Responses
-
-.http response codes
-[cols="2,3,1"]
-|===
-| Code | Message | Datatype
-
-
-| 200
-| successful operation
-| <>
-
-|===
-
-===== Samples
-
+|===
-// markup not included, not found: include::Pet/uploadFile/POST/http-request.adoc[]
-
-// markup not included, not found: include::Pet/uploadFile/POST/http-response.adoc[]
-
-
-
-[.Store]
-=== Store
-
-
-[.deleteOrder]
-==== deleteOrder
-
-`DELETE /store/order/{orderId}`
-
-Delete purchase order by ID
-
-
-// markup not included, not found: include::Store/deleteOrder/operation-spec.adoc[]
-
-
-===== Description
-
-For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
-
-===== Parameters
-
-====== Path Parameters
-
-[cols="2,3,1,1,1"]
-|===
-|Name| Description| Required| Default| Pattern
-
+
+
+===== Return Type
+
+<>
+
+
+===== Content Type
+
+* application/json
+
+===== Responses
+
+.http response codes
+[cols="2,3,1"]
+|===
+| Code | Message | Datatype
+
+
+| 200
+| successful operation
+| <>
+
+|===
+
+===== Samples
+
+
+// markup not found, no include ::pet/{petId}/uploadImage/POST/http-request.adoc[]
+
+
+// markup not found, no include ::pet/{petId}/uploadImage/POST/http-response.adoc[]
+
+
+
+// file not found, no * wiremock data link :pet/{petId}/uploadImage/POST/POST.json[]
+
+
+ifdef::internal-generation[]
+===== Implementation
+
+// markup not found, no include ::pet/{petId}/uploadImage/POST/implementation.adoc[]
+
+
+endif::internal-generation[]
+
+
+[.Store]
+=== Store
+
+
+[.deleteOrder]
+==== deleteOrder
+
+`DELETE /store/order/{orderId}`
+
+Delete purchase order by ID
+
+===== Description
+
+For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
+
+
+// markup not found, no include ::store/order/{orderId}/DELETE/spec.adoc[]
+
+
+
+===== Parameters
+
+====== Path Parameters
+
+[cols="2,3,1,1,1"]
+|===
+|Name| Description| Required| Default| Pattern
+
| orderId
| ID of the order that needs to be deleted
| X
| null
|
-
-|===
-
-
-
-
-
-===== Return Type
-
-
-
--
-
-
-===== Responses
-
-.http response codes
-[cols="2,3,1"]
-|===
-| Code | Message | Datatype
-
-
-| 400
-| Invalid ID supplied
-| <<>>
-
-
-| 404
-| Order not found
-| <<>>
-
-|===
-
-===== Samples
-
+|===
-// markup not included, not found: include::Store/deleteOrder/DELETE/http-request.adoc[]
-
-// markup not included, not found: include::Store/deleteOrder/DELETE/http-response.adoc[]
-
-
-
-[.getInventory]
-==== getInventory
-
-`GET /store/inventory`
-
-Returns pet inventories by status
-
-
-// markup not included, not found: include::Store/getInventory/operation-spec.adoc[]
-
-
-===== Description
-
-Returns a map of status codes to quantities
-
-===== Parameters
-
-
-
-
-
-
-===== Return Type
-
-
-<