cryptomator / cryptomator/hub

Consolidate license endpoints + DTOs

Open
#393 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
80
Forks
15
PR merge metrics
No merged PRs in 30d

Description

Currently we have a collection of different endpoints and DTOs serving similar purposes:

* `GET /billing` (used in `AdminSettings.vue`):
```json
{
"hubId": "hub3000",
"email":, "admin@example.com",
"licensedSeats": 42,
"usedSeats": 23,
"issuedAt": "2020-01-01T00:00:00Z",
"expiresAt": "2030-01-01T00:00:00Z",
"managedInstance": false
}
```
* `GET /license/user-info` (used in `VaultList.vue` and `VaultDetails.vue`):
```json
{
"licensedSeats": 42,
"usedSeats": 23,
"expiresAt": "2030-01-01T00:00:00Z",
}
```
* `GET /config/` (used in whole app):
```json
{
"keycloakUrl": "https://example.com/kc",
"...":, "more stuff",
"entitlements": {
"seats": 42,
"...": "more entitlements"
}
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.