Suave.RouteTypeProvider
Documentation
PM> Install-Package Suave.RouteTypeProvider
group Romcyber source https://www.myget.org/F/romcyber/api/v3/index.json nuget Suave.RouteTypeProvider
What is Suave.RouteTypeProvider ?
Suave is a FSharp lightweight web server principally used to develop REST APIs
We can declare templated and strongly typed routes like :
1: 2: |
|
Suave.RouteTypeProvider is a library providing strongly typed and named params
1: 2: |
|
The type provider will create a type for each route and you will be be able to access parameter properties using your autocompletion
Contributing and copyright
The project is hosted on GitHub where you can report issues, fork the project and submit pull requests. If you're adding a new public API, please also consider adding samples that can be turned into a documentation. You might also want to read the library design notes to understand how it works.
The library is available under Public Domain license, which allows modification and redistribution for both commercial and non-commercial purposes. For more information see the License file in the GitHub repository.
from Suave
from Suave
from Suave
Full name: Index.additionRoute
Full name: Suave.Filters.GET
Full name: Suave.Filters.pathScan
Full name: Suave.Successful.OK
Full name: Index.SayBonjour
Full name: RouteTypeProvider.routeTemplate
Create a route from template like "/user/modify/{id:int}/{name:string}/{birth:datetime}"
Full name: Microsoft.FSharp.Core.ExtraTopLevelOperators.sprintf