question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Alternate "syntax" for routing.

See original GitHub issue

Just a wild idea. How about allowing routing like get("path", ::someMethod) and the parameters of that method are annotated the same way the fields of parameter classes are now annotated.

That way you don’t have to declare a class for just one or two simple parameters and you get a very natural looking routing style.

Also this would be quite familiar to users of springfox.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
sheepdreamofandroidscommented, Mar 12, 2020

Yeah, I see how putting that info in the path string is suboptimal. Yet I think that the idea of keeping the location of parameters in the route and type, documentation and default values in the method is sound. I’ll try to come up with a better way of expressing that info.

0reactions
Wicparcommented, Sep 25, 2020

I haven’t gotten around to start beyond the initial proof of feasibility. I am currently on other projects. If you think you can get something clean on the rails feel free to contribute.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Alternate Routes - TCP/IP Implementation and Operations Guide
You can use the ROUTE command in IPv4 or IPv6 networks to manually define multiple routes to a common destination such that access...
Read more >
Alternate Static Route - Cisco Community
I have configure Static Route configured so that alternate path can be used if any link direct from location 'A' is down. What...
Read more >
Chapter 12. Configuring Policy-based Routing to Define ...
Configuring Policy-based Routing to Define Alternative Routes ... The nmcli connection add command creates a NetworkManager connection profile.
Read more >
Understanding Loop-Free Alternate Routes for IS-IS | Junos OS
That is, a neighbor whose shortest path to the destination traverses the routing device is not used as a backup route to that...
Read more >
An introduction to Wouter: A React Router alternative
Client side routing (CSR) is similar to server side routing (SSR), except CSR is handled by the browser. In a typical web app,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found