mirror of
https://github.com/jeffknupp/sandman2.git
synced 2026-04-25 08:35:49 +03:00
[GH-ISSUE #58] ways to create new routes #37
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
pull-request
question
refactoring
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/sandman2-jeffknupp#37
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ahujamoh on GitHub (Mar 6, 2017).
Original GitHub issue: https://github.com/jeffknupp/sandman2/issues/58
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)
currently
the route is
/score/1or/score/2to get each of the marksI want to run something like
/my-score?name=Jayto respond with both rows matching the result ormy-score?marks=100to respond row where marks=100Is there a specified way by which this can be achieved?
@jeffknupp commented on GitHub (Mar 7, 2017):
The syntax you specified works, just make sure you include a trailing
/after/score/, so your request would be/score/?marks=100