-
-
Notifications
You must be signed in to change notification settings - Fork 0
Quick Start
Michael Pisman edited this page Oct 19, 2023
·
1 revision
You can install the API using pip:
pip install unipoll-api
Done!
Check Deployment section for more information.
Use run
command to launch the API server:
You can specify server address and port using --host
and --port
options:
unipoll-api run --port 9000
INFO: University Polling API v0.11.3
INFO: Started server process [1842018]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:9000 (Press CTRL+C to quit)
For more help use -h
or --help
option:
$ unipoll-api -h
$ unipoll-api run -h
Learn more about the available options in the Configuration section.
Now you can connect your client application to the API server at http://localhost:9000
.
Once the server is running you can access the API reference at http://localhost:9000/docs
or http://localhost:9000/redoc
.