Finished documentation
This commit is contained in:
@@ -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) | |
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user