-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added REST API guide #362
base: main
Are you sure you want to change the base?
Added REST API guide #362
Conversation
I've been meaning to write something like this myself. The general gist of the content looks pretty good, but it needs some proof reading and editing for grammar/clarity. |
I'm happy to make the changes if you see any problems. Or feel free to add commits as well. |
this one seems quite useful for docs, can this be merged? cc @Krzysztof-Cieslak , probably needs updates but at least is a start? |
|
||
## Configure Endpoint Routing | ||
|
||
We will be using Endpoint Routing for the application. See [here](https://saturnframework.org/explanations/endpoint-routing.html) for more information. To do this. Add `open Saturn.Endpoint` to the Router.fs and BooksController.fs files. Then inside Program.fs, replace `use_router Router.appRouter` with `use_endpoint_router Router.appRouter`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will be using [Endpoint Routing](https://saturnframework.org/explanations/endpoint-routing.html) for the application. To do this, add
Thanks. The feedbacks are committed. |
Added guide for creating and consuming REST API since it was something I was looking for in my project. Feedback is welcome whether on the text or code in the guide.