Skip to content

Commit

Permalink
More api docs!
Browse files Browse the repository at this point in the history
  • Loading branch information
Veikkosuhonen committed Apr 29, 2024
1 parent b094303 commit 8baa9d6
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Jami API should now be available at http://localhost:3000/. Configure the port f

## API

`POST /`
### `POST /`

- Body

Expand Down Expand Up @@ -51,7 +51,15 @@ Jami API should now be available at http://localhost:3000/. Configure the port f
}
```

`GET /:userId`
### `POST /user-organisations`

- Response

```ts
Array<Faculty>
```

### `GET /:userId`

- Response

Expand All @@ -62,7 +70,7 @@ Jami API should now be available at http://localhost:3000/. Configure the port f
}
```

`GET /access-to-all`
### `GET /access-to-all`

- Response

Expand All @@ -85,11 +93,11 @@ Jami API should now be available at http://localhost:3000/. Configure the port f
}
```

`GET /organisation-data`
### `GET /organisation-data`

- Response: the FACULTIES object from [./src/organisation/faculties.ts](./src/organisation/faculties.ts)

`GET /all-access`
### `GET /all-access`

- Response: all user's iam groups and their computed access rights:

Expand All @@ -116,7 +124,7 @@ Jami API should now be available at http://localhost:3000/. Configure the port f
]
```

`GET /iam-groups`
### `GET /iam-groups`

- Response: all unique iam groups in Jami DB:

Expand All @@ -126,6 +134,4 @@ Jami API should now be available at http://localhost:3000/. Configure the port f

### Other routes

`GET` `/ping`

`POST` `user-organisations`
`GET` `/ping` => `pong`

0 comments on commit 8baa9d6

Please sign in to comment.