diff options
Diffstat (limited to 'src/api.rs')
| -rw-r--r-- | src/api.rs | 7 |
1 files changed, 5 insertions, 2 deletions
| @@ -7,7 +7,8 @@ use crate::ErrorResponse; | |||
| 7 | 7 | ||
| 8 | pub mod tags { | 8 | pub mod tags { |
| 9 | pub const ACCOUNT: &str = "Account"; | 9 | pub const ACCOUNT: &str = "Account"; |
| 10 | pub const QUEUE_MANAGEMENT: &str = "Queue management"; | 10 | pub const QUEUE: &str = "Queue"; |
| 11 | pub const QUEUE_ACCESS: &str = "Queue access"; | ||
| 11 | } | 12 | } |
| 12 | 13 | ||
| 13 | struct AuthModifier; | 14 | struct AuthModifier; |
| @@ -50,7 +51,9 @@ impl Modify for AuthModifier { | |||
| 50 | (url = "https://очередь.псж.онлайн/api/v1/", description = "Production server"), | 51 | (url = "https://очередь.псж.онлайн/api/v1/", description = "Production server"), |
| 51 | ), | 52 | ), |
| 52 | tags( | 53 | tags( |
| 53 | (name=tags::ACCOUNT, description="Account management methods") | 54 | (name=tags::ACCOUNT, description="Account management methods"), |
| 55 | (name=tags::QUEUE, description="Queue management methods"), | ||
| 56 | (name=tags::QUEUE_ACCESS, description="Queue access management methods") | ||
| 54 | ), | 57 | ), |
| 55 | components( | 58 | components( |
| 56 | schemas(ErrorResponse) | 59 | schemas(ErrorResponse) |
