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

Resource parameters #24

Open
realshadow opened this issue Feb 5, 2016 · 0 comments
Open

Resource parameters #24

realshadow opened this issue Feb 5, 2016 · 0 comments

Comments

@realshadow
Copy link
Contributor

@jasonlewis Just a quick question for clarification.

Currently you can define resource parameters and they get added to the resource list of parameters, but they won't get added to parameter list defined on method be it route or query parameter. E.g.

# Order [/user/{user_id}/order]
foo bar baz

+ Parameters
    + client_id (integer, required) - Client's ID

## List all orders [GET /user/{user_id}/order{?limit,offset}]
foo bar baz

+ Parameters
    + limit (integer, optional) - foo
    + offset (integer, optional) - bar

But since user_id won't get added to parameters defined for the method it will be impossible to make test requests from Apiary console, because I can not add the required parameter to the request. Since I don't know any other tools, I am taking strictly about Apiary here.

If this isn't the case then please correct me, but just in case my thinking is correct I have a PR ready.

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