4260fb1714 | ||
---|---|---|
.. | ||
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