c2f2a237db
* Testing an nginx/SSL reverse proxy docker image * Custom nginx and certbot containers * Change certbot volume mounts * Figuring some things out * Challenges have to be run over HTTP? * Docker networking * remove a volume * Added nginx & certbot to docker compose - working on droplet * Use native nginx templating * SSH please * SSH setup scripts * Updated .env and documentation for setting up HTTPS |
||
---|---|---|
.. | ||
db | ||
.gitignore | ||
Dockerfile | ||
README.md | ||
app.js | ||
package-lock.json | ||
package.json | ||
routes.js | ||
validate.js |
README.md
OAPEN Suggestion API
Configuration
You can specify the port requests will be served on with the API_PORT
variable. The default value is 3001
.
Follow the setup instructions to ensure the database environment variables are set.
Endpoints
-
Endpoint: /GET http://localhost:3001/api/{handle}
-
Endpoint: /GET http://localhost:3001/api/{handle}/?threshold={integer}
-
Endpoint: /GET http://localhost:3001/api/{handle}/ngrams