Finished documentation

This commit is contained in:
2024-11-22 14:18:40 +01:00
parent 0c2c02136d
commit fee99c60b6
5 changed files with 98 additions and 32 deletions

View File

@@ -14,8 +14,8 @@ Base endpoint: `/api/v1/authentication`\
| Method | Endpoint | Payload | Returns |
|--------|---------------|--------------------------------------------------------------|-----------------------|
| PUT | /login | [UserLogin](./models.md#UserLogin) | access token (string) |
| POST | /register | [UserRegister](./models#UserRegister) | access token (string) |
| PUT | /login | [UserLogin](../models.md#UserLogin) | access token (string) |
| POST | /register | [UserRegister](../models.md#UserRegister) | access token (string) |
| GET | /authenticate | | access token (string) |
| DELETE | /logout | | |
| DELETE | /delete | [UserPasswordValidation](./models.md#UserPasswordValidation) | |

View File

@@ -8,23 +8,6 @@ public struct SingleValueResult<TValue>(TValue value) {
}
```
## UserLogin
```csharp
public class UserLogin {
public string Email { get; set; }
public string Password { get; set; }
}
```
## UserRegister
```csharp
public class UserRegister {
public string Username { get; set; }
public string Email { get; set; }
public string Password { get; set; }
}
```
## UserPasswordValidation
```csharp
public sealed class UserPasswordValidation {