Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Integrate with api.ntnui.no #21

Open
eivindkopperud opened this issue Feb 15, 2022 · 0 comments · Fixed by #24
Open

Integrate with api.ntnui.no #21

eivindkopperud opened this issue Feb 15, 2022 · 0 comments · Fixed by #24
Labels
enhancement New feature or request

Comments

@eivindkopperud
Copy link
Member

Use flow today

When I want to get a refund, I need to go to refusjon.ntnui.no and enter all fields. This can be tedious, especially when requesting many refunds.

Suggested flow

I should be able to log in with my medlem.ntnui.no account and get all relevant fields pre-filled depending on my memberships. If I have more than one membership, all options should be displayed in a dropdown. Then these fields should be automatically filled out:
image

Required endpoints at api.ntnui.no

Authentication by POST /token/

Requires the following body:

{
"phone_number": "+47000000",
"password": "the-users-password"
}

Returns a JSON Web Token (JWT) which needs to be sent as a Bearer Auth Header in all requests.

Get all memberships at GET /groups/

The user has member set to true for the groups the user is a member in

Optional

It would be nice to store the user's "kontonummer" in our backend. To do this, we can use the following endpoints

Update the user's information POST /users/profile

Get the user's "kontonummer at GET /users/profile

@Xtrah Xtrah added the enhancement New feature or request label Apr 3, 2022
@Xtrah Xtrah reopened this Nov 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants