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

Support URI parameters #88

Open
2 tasks
danascheider opened this issue Jul 17, 2016 · 0 comments
Open
2 tasks

Support URI parameters #88

danascheider opened this issue Jul 17, 2016 · 0 comments

Comments

@danascheider
Copy link
Owner

Summary

Rambo needs to be extended to support URI parameters - e.g. :id in /authors/:id. This feature is central to REST API design. This is very closely coupled to issue #87, which calls for support for nested routes.

Expected Behavior

Rambo should generate useful tests for routes with URI parameters.

Current Behavior

If a route with a URI parameter is nested, it is ignored. If it is not nested, the URI parameter is included verbatim in the URI - i.e., a request will be sent to "/authors/:id" instead of "/authors/27" or whatever that ID would actually be.

Technical Challenges

  • Identifying where a given value "comes from" - e.g., that an :id parameter must be the ID of a resource that exists in the database
  • Identifying the correct fixtures to be used for a given test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant