Skip to content

Resource parameters #24

Description

@realshadow

@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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions