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

ways to create new routes #58

Closed
ahujamoh opened this issue Mar 6, 2017 · 1 comment
Closed

ways to create new routes #58

ahujamoh opened this issue Mar 6, 2017 · 1 comment

Comments

@ahujamoh
Copy link
Contributor

ahujamoh commented Mar 6, 2017

Dear Developers/Moderators,

I want to create multiple routes(which will filter information from a table or will join two tables). Is there a way specified for such requirement.

For example: I have a table score(id is primary key)

id,name,marks
1,Ajay,100
2,Jay,99
3,Ram,90
4,Jay,55

currently
the route is /score/1 or /score/2 to get each of the marks

I want to run something like

/my-score?name=Jay to respond with both rows matching the result or
my-score?marks=100 to respond row where marks=100

Is there a specified way by which this can be achieved?

@jeffknupp
Copy link
Owner

The syntax you specified works, just make sure you include a trailing / after /score/, so your request would be /score/?marks=100

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

2 participants