Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
Squashed and rebased
  • Loading branch information
brynolv committed Mar 11, 2021
1 parent f8a01f1 commit a44341d
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# zfinger
React app that talks to a RESTful-ish API written in Python/Flask.

API endpoints:
## API endpoints:

| Path | Method | Requires Log-in | Result |
| ----- | ----- | ----- | ----- |
Expand All @@ -17,9 +17,9 @@ API endpoints:

If log-in is required, user will be redirected to `login.kth.se` if not already.

Information displayed in `hodis` is `ugKthid`,`uid`,`on`,`mail`,`givenName`,`displayName`,`year` and`tag`.
Information displayed in `hodis` is `ugKthid`,`uid`,`cn`,`mail`,`givenName`,`displayName`,`year` and`tag`.

Required environment variables:
## Required environment variables:
```
AWS_ACCESS_KEY_ID=<AWS_ACCESS_KEY_ID>
AWS_SECRET_ACCESS_KEY=<AWS_SECRET_ACCESS_KEY>
Expand All @@ -29,3 +29,17 @@ Required environment variables:
HODIS_HOST=https://hodis.datasektionen.se
LOGIN_HOST=https://login2.datasektionen.se
```

## Dependencies
Depends on login, hodis is refered to but not integral.

## Development
With docker installed, run `docker-compose up --build`, <localhost.datasektionen.se:5000> will be the local development version.
Will look for ENV in a file called variables.env.

## Production
See development, on production machine.

## PLs permissions
None, merely checks if user can login in, not any permissions.

0 comments on commit a44341d

Please sign in to comment.