Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using parameters from the path #42

Open
sergekeyser opened this issue Jul 27, 2016 · 1 comment
Open

Using parameters from the path #42

sergekeyser opened this issue Jul 27, 2016 · 1 comment

Comments

@sergekeyser
Copy link

sergekeyser commented Jul 27, 2016

Hi First of all I would like to compliment you with the swagger plugin, great tool simple to use and worked in one go.

On thing I did not see... (maybe something that could be added?)

When I have a url like this: /pet/{petId}/name which allows me to modify the name of a pet based on its id then I would normally specify this like so:

"parameters":[
{
"name":"petId",
"in":"path",
"description":"ID of pet to return",
"required":true,
"type":"integer",
"format":"int64"
}

When I look in the node-red editor the options for parameter are:
*query
*header
*formdata
*body

Any way you could add to that the "path" ?

@sergekeyser
Copy link
Author

sergekeyser commented Jul 27, 2016

Okay... after some digging in the code and googeling I found this:
#2

Basically when an http node has a parameter like /pet/:petId/ it automatically (after deploying) converts into a parameter. (tried this out and it is working so I am a happy camper :-D)

Maybe worth adding this to the README.md? could not find it there...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant