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.

Support Custom Http Routes + URI path parameters

See original GitHub issue

Currently only query string parameters like /api/foo?id=7 are supported. It would be nice if it supported URI path parameter binding also like /api/foo/7. Some RESTful services go further for things like /api/foo/7/bar/15, so some sort of arbitrary path-to-param mapper would be ideal, but personally I’ve never used that so just an ID would suffice for myself…

I arrived here from Stack Overflow

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
contractorwolfcommented, Sep 4, 2016

any progress on this? its a feature I currently need

1reaction
kevinbayescommented, Sep 5, 2016

Yeah I agree, this is a feature currently needed. We are using workaround and placing a layer in-front of functions for now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

custom http route for an API POST without URI parameter
I suppose you don't have controller with proper action method for this URL. Try to add such controller with default route configuration.
Read more >
Attribute Routing in ASP.NET Web API 2
This topic discusses how to enable attribute routing in ASP.NET Web API 2 and describes various options for attribute routing.
Read more >
Working with routes for HTTP APIs
Routes direct incoming API requests to backend resources. Routes consist of two parts: an HTTP method and a resource path—for example, GET /pets...
Read more >
Different approaches to HTTP routing in Go
Compares various routing techniques in Go, including five custom approaches and three using third-party routing libraries.
Read more >
Using parameters in routes
Parameters can be used to pass dynamic values from the URI to the controller.
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