Feature proposal: [BasePath] attribute
See original GitHub issueThe 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:
- Created 4 years ago
- Comments:9 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yep happy to do so. My IL is, uh, rudimentary, I’m sure I’ll have questions!
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!