Hi there
I am using swagger-node-express and got separate files for models, and resources. The goal is to provide a GET and POST method for the same model.
For the POST method, its easy to provide the model structure as parameters like this within the resource spec:
"description": "Search body object that needs to be defined",
Which works great and the structure is provided and can be taken over into the request-body within the frontend docs.
The model is defined/exported:
module.exports = {
"searchCars":{
"id":"searchCars",
"required": ["page", "pageSize"],
"properties":{
"Doors":{
"type":"integer",
"format": "int32",
"description": "Amount of doors",
"minimum": "0",
"maximum": "7"
},
"DrivingLicense":{
"type":"integer",
"format": "int32",
"description": "DrivingLicence ??? ",
},
The problem arises when trying the same thing for the GET method. To simply align the model definition as parameters[{}] and get any related queryparams autocreated as select/input-fields in the UI.
Is this out of the box or am i simply just missing something?
thanks for any feedback & cheers