-
Modify the
urlvar inapi/Rocket.tomlto point to your chosen database (or leave it as-is to use in-memory SQLite) -
If not using the SQLite DB: turn on the appropriate database feature for your chosen db in
api/Cargo.toml(the"sqlx-postgres",line) -
Execute
cargo runto start the server -
You can go to
http://localhost:8000/swagger-ui/index.htmlto see the api documentation about this demo project.
-
Additionally, you can navigate to
http://localhost:8000/rapidoc/index.htmlto see the rapidoc format for api documentation
rocket_okapi_example
Directory actions
More options
Directory actions
More options
rocket_okapi_example
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||