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.

Feature proposal: [BasePath] attribute

See original GitHub issue

The routing attributes in RestEase serve a similar function to those of ASP.Net MVC. In the latter, it’s possible to put a Route[] attribute on the interface, which then gets prepended to the routes of all its service operations.

It would be helpful if RestEase offered a similar attribute (possibly BasePath?) for interfaces. I realise that the entire base URL can be specified when creating the client, but sometimes it’s not practical to put paths in this URI - for example where the host address comes from configuration and hosts multiple endpoints.

Happy to contribute a PR if this is considered in-scope.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

mansellancommented, Mar 27, 2019

Yep happy to do so. My IL is, uh, rudimentary, I’m sure I’ll have questions!

mansellancommented, Jun 20, 2019

Gosh, sorry 😊. For work I sidestepped it for my domain problem (REST hosted in Service Fabric). I’d been meaning to decouple it from the specifics and open a PR (even bought a book on IL), but… life got in the way.

As penance, I’ll see if work will let me open source RestEase.ServiceFabric as an extension library. Thanks again for an awesome library, my colleagues and I are loving it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - Feature proposal: [BasePath] attribute -
Feature proposal : [BasePath] attribute. ... The routing attributes in RestEase serve a similar function to those of ASP.Net MVC.
Read more >
swagger - Override "host" and "basePath" at the "/{path}" level
If we use Swagger/OpenAPI as it is, it means creating one Swagger/OpenAPI specification per operation, resulting having one swagger-ui page per ...
Read more >
Sidebar Category Base Path? | Voters | Docusaurus - Canny
Is it possible to add a 'basePath' property to the SidebarItemCategory type that would prefix any items sidebar items ... Proposed SidebarItemCategory:.
Read more >
Set the OpenAPI basePath property - Amazon API Gateway
In OpenAPI 2.0 , you can use the basePath property to provide one or more path parts that precede each path defined in...
Read more >
OpenAPI Specification - Version 3.0.3
The OpenAPI Specification defines a standard interface to RESTful APIs which allows both humans and computers to understand service capabilities without ...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found