How do I specify the data type of URL Query String Parameters in REST API Gateway Method Requests?

0

We can specify the name as well as control if it's required or not but I can't find out how the change the data type. When I export my API, the query parameters always have the data type of string. I even tried specifying it in my query string documentation but it gets ignored.

E.x.: The documentation { "description": "blah blah blah.", "schema": { "type": "boolean" } }

gets exported as

"parameters": [ { "name": "blahblahblah", "in": "query", "description": "blah blah blah.", "schema": { "type": "string" } },

hb2638
demandé il y a 2 ans1684 vues
Aucune réponse

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions