Giter VIP home page Giter VIP logo

simpleendpoints's People

Contributors

dasiths avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

simpleendpoints's Issues

Allow contributors the ability to create branches and PR's.

Hi mate,

I found this little project on Twitter earlier today and really liked the idea. Since I am in lockdown at the moment I thought I would pull the code and see what I could come up with to help.

The first thing I did was add Swashbuckle so I could visualise what was going on, there were a few issues with this. The main one was that the Swahbuckle.AspNet library does not consider inherited attributes when scanning routes which was a problem. I solved this by tapping into the IApiDescriptionGroupCollectionProvider and setting the HttpMethod. This gave me an idea that we could do away with the HttpVerb attributes on all endpoints and I have achieved this by setting a marker interface on each of the 4 abstract verb scoped endpoints and then looking at the inheritance tree during applying the EndpointRoutingConvention. I have also included the ability to set a global route segment api/ as an example and also set a naming convention token to be used for registering the routes against endpoint names.

Anyway, if you are interested in having me create a PR please go ahead and open up permissions for non-master branches.

I look forward to hearing from you. I have a couple more ideas how we may be able to make this a really cool little library.

Cool & thanks.

Jony.

.NET Framework 4.5 version

Hi @dasiths , this pattern is beautiful and simple.
Is this possible with legacy ASP.NET Web API?
If so, can you share a guide to apply this on old ASP.NET projects without Owin?
Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.