mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-20 10:07:08 +00:00
[meta] Support Kotlin meta generator (#4156)
* [meta] Support Kotlin meta generator * Guard against automatic scripts (assumptions for this script are not fulfilled by some CI which run "run all" type scripts)
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
|
||||
# This is a sample api mustache template. It is representing a ficticous
|
||||
# language and won't be usable or compile to anything without lots of changes.
|
||||
# Use it as an example. You can access the variables in the generator object
|
||||
# like such:
|
||||
|
||||
# use the package from the `apiPackage` variable
|
||||
package: org.openapitools.api
|
||||
|
||||
# operations block
|
||||
classname: PetApi
|
||||
|
||||
# loop over each operation in the API:
|
||||
|
||||
# each operation has an `operationId`:
|
||||
operationId: addPet
|
||||
|
||||
# and parameters:
|
||||
body: Pet
|
||||
|
||||
|
||||
# each operation has an `operationId`:
|
||||
operationId: deletePet
|
||||
|
||||
# and parameters:
|
||||
petId: Long
|
||||
apiKey: String
|
||||
|
||||
|
||||
# each operation has an `operationId`:
|
||||
operationId: findPetsByStatus
|
||||
|
||||
# and parameters:
|
||||
status: List
|
||||
|
||||
|
||||
# each operation has an `operationId`:
|
||||
operationId: findPetsByTags
|
||||
|
||||
# and parameters:
|
||||
tags: List
|
||||
|
||||
|
||||
# each operation has an `operationId`:
|
||||
operationId: getPetById
|
||||
|
||||
# and parameters:
|
||||
petId: Long
|
||||
|
||||
|
||||
# each operation has an `operationId`:
|
||||
operationId: updatePet
|
||||
|
||||
# and parameters:
|
||||
body: Pet
|
||||
|
||||
|
||||
# each operation has an `operationId`:
|
||||
operationId: updatePetWithForm
|
||||
|
||||
# and parameters:
|
||||
petId: String
|
||||
name: String
|
||||
status: String
|
||||
|
||||
|
||||
# each operation has an `operationId`:
|
||||
operationId: uploadFile
|
||||
|
||||
# and parameters:
|
||||
petId: Long
|
||||
additionalMetadata: String
|
||||
file: File
|
||||
|
||||
|
||||
# end of operations block
|
||||
@@ -0,0 +1,42 @@
|
||||
|
||||
# This is a sample api mustache template. It is representing a ficticous
|
||||
# language and won't be usable or compile to anything without lots of changes.
|
||||
# Use it as an example. You can access the variables in the generator object
|
||||
# like such:
|
||||
|
||||
# use the package from the `apiPackage` variable
|
||||
package: org.openapitools.api
|
||||
|
||||
# operations block
|
||||
classname: StoreApi
|
||||
|
||||
# loop over each operation in the API:
|
||||
|
||||
# each operation has an `operationId`:
|
||||
operationId: deleteOrder
|
||||
|
||||
# and parameters:
|
||||
orderId: String
|
||||
|
||||
|
||||
# each operation has an `operationId`:
|
||||
operationId: getInventory
|
||||
|
||||
# and parameters:
|
||||
|
||||
|
||||
# each operation has an `operationId`:
|
||||
operationId: getOrderById
|
||||
|
||||
# and parameters:
|
||||
orderId: String
|
||||
|
||||
|
||||
# each operation has an `operationId`:
|
||||
operationId: placeOrder
|
||||
|
||||
# and parameters:
|
||||
body: Order
|
||||
|
||||
|
||||
# end of operations block
|
||||
@@ -0,0 +1,72 @@
|
||||
|
||||
# This is a sample api mustache template. It is representing a ficticous
|
||||
# language and won't be usable or compile to anything without lots of changes.
|
||||
# Use it as an example. You can access the variables in the generator object
|
||||
# like such:
|
||||
|
||||
# use the package from the `apiPackage` variable
|
||||
package: org.openapitools.api
|
||||
|
||||
# operations block
|
||||
classname: UserApi
|
||||
|
||||
# loop over each operation in the API:
|
||||
|
||||
# each operation has an `operationId`:
|
||||
operationId: createUser
|
||||
|
||||
# and parameters:
|
||||
body: User
|
||||
|
||||
|
||||
# each operation has an `operationId`:
|
||||
operationId: createUsersWithArrayInput
|
||||
|
||||
# and parameters:
|
||||
body: List
|
||||
|
||||
|
||||
# each operation has an `operationId`:
|
||||
operationId: createUsersWithListInput
|
||||
|
||||
# and parameters:
|
||||
body: List
|
||||
|
||||
|
||||
# each operation has an `operationId`:
|
||||
operationId: deleteUser
|
||||
|
||||
# and parameters:
|
||||
username: String
|
||||
|
||||
|
||||
# each operation has an `operationId`:
|
||||
operationId: getUserByName
|
||||
|
||||
# and parameters:
|
||||
username: String
|
||||
|
||||
|
||||
# each operation has an `operationId`:
|
||||
operationId: loginUser
|
||||
|
||||
# and parameters:
|
||||
username: String
|
||||
password: String
|
||||
|
||||
|
||||
# each operation has an `operationId`:
|
||||
operationId: logoutUser
|
||||
|
||||
# and parameters:
|
||||
|
||||
|
||||
# each operation has an `operationId`:
|
||||
operationId: updateUser
|
||||
|
||||
# and parameters:
|
||||
username: String
|
||||
body: User
|
||||
|
||||
|
||||
# end of operations block
|
||||
@@ -0,0 +1 @@
|
||||
# This is a sample model mustache template.
|
||||
@@ -0,0 +1 @@
|
||||
# This is a sample model mustache template.
|
||||
@@ -0,0 +1 @@
|
||||
# This is a sample model mustache template.
|
||||
@@ -0,0 +1 @@
|
||||
# This is a sample model mustache template.
|
||||
@@ -0,0 +1 @@
|
||||
# This is a sample model mustache template.
|
||||
Reference in New Issue
Block a user