This software is a work for hire coded by 8isnothing (8isnothing@protonmail.com) for Richard Kaplan and Kaplan Life Care Planning. Permission is given for use by others for non-commercial purposes provided you share with the public any edits or derivative works you create. Please contact Richard Kaplan rkaplan@kaplanlifecareplan.com regarding any inquiry about commercial use of this code.
(type in terminal)
git clone https://github.com/8isnothing/dt_api_test.git
Or simply download as zip from github.
(type in terminal)
brew install python@3.9
(type in terminal)
pip3 install pipenv
In terminal, use “cd” to go to the project main folder (the parent of “app”) and type: (type in terminal)
pipenv sync
In "app", run "generate_ssl_cert".
In "app", go to "certificates" and change "auth" to your liking.
(type in terminal)
brew install certbot
In "app", run "run_certbot".
In "app", go to "certificates" and change "mongodb" to the info of you database.
In "app", run "run_server_uvicorn"
Go to the url https://0.0.0.0:8000/docs to see how to use the APIs. Alternatively, check https://0.0.0.0:8000/redoc.
Use this very simple shortcut shortcut to call your API or inspire yourself to create more complex workflows. You'll have to customize it a bit, inserting your own username and password (this info is never shared with anyone). It's a 6-step shortcut, so it should be self-explanatory.
link: https://www.icloud.com/shortcuts/4f400f42279840bd890146b5f06dc8bb
In the project main folder, open the "call_webhook.scpt" file. Then, change the first three vars: baseURL, user and pass to the info pertinent to your use. User and Pass should match what you use to login in the API.