sea-orm/examples/rocket_okapi_example
Frederik Terstappen 13a3de6633
Update sea orm rocket (#2431)
* Update sea-orm-rocket dependencies

* Update rocket example dependencies

---------

Co-authored-by: Frederik Terstappen <freterstappen+gitlab@gmail.com>
2024-12-24 13:49:28 +00:00
..
2024-12-24 13:49:28 +00:00
2024-12-24 13:49:28 +00:00
2024-12-24 13:49:28 +00:00
2024-12-24 13:49:28 +00:00
2024-12-24 13:49:28 +00:00
2022-10-16 17:45:56 +08:00

Rocket and Rocket-API with SeaORM example app

  1. Modify the url var in api/Rocket.toml to point to your chosen database (or leave it as-is to use in-memory SQLite)

  2. If not using the SQLite DB: turn on the appropriate database feature for your chosen db in service/Cargo.toml (the "sqlx-postgres", line)

  3. Execute cargo run to start the server

  4. You can go to http://localhost:8000/swagger-ui/index.html to see the api documentation about this demo project. swagger

  5. Additionally, you can navigate to http://localhost:8000/rapidoc/index.html to see the rapidoc format for api documentation rapidoc