Python Scrapper that returns Rejsekort Restful API
- Make
- Python
-
Using Make
make run
-
Using Docker
-
Build
docker build -t rejsekort .
-
Run the container
docker run --rm -p 3000:3000 flask
-
This will start a server which can be accessed on http://localhost:3000
Set environment variable for production:
ENV=production
or something other than development
Once the server is up and running, requests can be made to these available endpoints.
-
Request:
http://localhost:3000
-
Response:
{ "status": "Healthy" }
Username and Password can be generated from rejsekort self-service portal.
-
Post Request to:
http://localhost:3000/login
-
Request Body as raw JSON.
{ "username": "<USERNAME>", "password": "<PASSWORD>" }