* feat: support to okapi * fix: fmt checks * chore: rocket-okapi-example: add required schemas * chore: rocket-okapi-example: add dto * chore: rocket-okapi-example: add custom error * chore: rocket-okapi-example: add api controllers * chore: rocket-okapi-example: add notes in Readme * chore: make rocket_okapi optional * refactor: delete rocket example from rocket_example * chore: rocket-okapi-example: add base files for okapi example * chore: rocket-okapi-example: add controllers and dto * chore: rocket-okapi-example: add docs
595 B
595 B
Rocket and Rocket-API with SeaORM example app
-
Modify the
url
var inapi/Rocket.toml
to point to your chosen database -
Turn on the appropriate database feature for your chosen db in
core/Cargo.toml
(the"sqlx-postgres",
line) -
Execute
cargo run
to start the server -
You can go to
http://localhost:8000/swagger-ui/index.html
to see the api documentation about this demo project. -
Additionally, you can navigate to
http://localhost:8000/rapidoc/index.html
to see the rapidoc format for api documentation