Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

vtquan
Copy link

@vtquan vtquan commented Nov 2, 2022

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.

@drewknab
Copy link

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.

@vtquan
Copy link
Author

vtquan commented Dec 5, 2022

I'm happy to make the changes if you see any problems. Or feel free to add commits as well.

@jkone27
Copy link

jkone27 commented Jul 31, 2024

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`.
Copy link

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

@vtquan
Copy link
Author

vtquan commented Dec 30, 2024

Thanks. The feedbacks are committed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants