---
# System prepended metadata

title: Endpoints

---

# Endpoints

**Endpoints bestimmen die Ressource auf die Zugegriffen wird**

Bitte vor Erstellung eintragen und nachschauen ob schon vorhanden.


| Endpoint | Method | Description | Access | Creator |
| -------- | -------- | -------- | ------ | -------|
| `/auth` | POST | Login user | ALL | - |
| `/auth/artists` | POST | Register artist | ALL | Helene |
| `/auth/supporters` | POST | Register supporter | ALL | Helene |
| `/transactions` | POST | Create payment intent (get client secret) | SUPPORTER | Johannes |
| `/transactions/events` | POST | Endpoint for stripe webhook events | ALL | Johannes |
|`/artists/:id` |GET | Get Artist (public) Profile|SUPPORTER, ARTIST|Simeon |
|`/artists` |PUT | Update Artist Profile | ARTIST | Simeon |
|`/artists/private` | GET | Fetch (private) Account Information | ARTIST | Johannes |
|`/supporters/private` | GET | Fetch (private) Account Information | SUPPORTER | Johannes |
|`/supporters/landinginfo` | GET | Fetch (private) Account Information + most supported Artist | SUPPORTER | Johannes |
|`/donations` | POST | Create new donation with receiver email and amount. | SUPPORTER | Johannes |
|`/donations/createinfo/:artistCode` | GET | Get info about artist, supporter and how much the supporter already donated to the artist | SUPPORTER | Johannes |
|`/genres` | GET | Get List of all Genres | SUPPORTER, ARTIST | Simeon |
|`/genres/:id` | PUT | Update Genre with id | ADMIN | Simeon |
|`/genres` | POST | Create new Genre | ADMIN | Simeon |
|`/events` | PUT | Update existing event | Artist | Martin |
|`/events` | POST | Create new event | Artist | Martin |
|`/events/admin` | POST | Create new event(additional rights) | ADMIN |Marco|
|`/events/admin` | PUT | Update existing event(additional rights) | ADMIN |Marco|




## Zukünftig:
- `/auth/logout` Logout user
- `/supporters` Accountinfos
- `/admins` User Bannen/Sperren, Verwaltung
- `/accounts` Get Account information (Current Accountbalance, etc.)
