feat: nová stránka pro návrhy na vylepšení
CI / Generate TypeScript types (push) Successful in 10s
CI / Server unit tests (push) Successful in 21s
CI / Build server (push) Successful in 24s
CI / Build client (push) Successful in 38s
CI / Playwright E2E tests (push) Successful in 1m18s
CI / Build and push Docker image (push) Successful in 40s
CI / Notify (push) Successful in 2s
CI / Generate TypeScript types (push) Successful in 10s
CI / Server unit tests (push) Successful in 21s
CI / Build server (push) Successful in 24s
CI / Build client (push) Successful in 38s
CI / Playwright E2E tests (push) Successful in 1m18s
CI / Build and push Docker image (push) Successful in 40s
CI / Notify (push) Successful in 2s
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
post:
|
||||
operationId: addSuggestion
|
||||
summary: Přidá nový návrh na vylepšení. Autorovi se automaticky nastaví hlas pro.
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
required:
|
||||
- title
|
||||
- description
|
||||
properties:
|
||||
title:
|
||||
type: string
|
||||
description: Stručný jednořádkový název návrhu
|
||||
description:
|
||||
type: string
|
||||
description: Detailní popis navrhované úpravy
|
||||
responses:
|
||||
"200":
|
||||
description: Aktualizovaný seznam návrhů.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: "../../schemas/_index.yml#/Suggestion"
|
||||
@@ -0,0 +1,26 @@
|
||||
post:
|
||||
operationId: deleteSuggestion
|
||||
summary: >-
|
||||
Smaže návrh včetně všech jeho hlasů. Smazat lze pouze vlastní návrh
|
||||
(validováno na serveru).
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
required:
|
||||
- id
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
description: Identifikátor návrhu ke smazání
|
||||
responses:
|
||||
"200":
|
||||
description: Aktualizovaný seznam návrhů.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: "../../schemas/_index.yml#/Suggestion"
|
||||
@@ -0,0 +1,11 @@
|
||||
get:
|
||||
operationId: listSuggestions
|
||||
summary: Vrátí seznam návrhů na vylepšení seřazený sestupně dle počtu hlasů.
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: "../../schemas/_index.yml#/Suggestion"
|
||||
@@ -0,0 +1,30 @@
|
||||
post:
|
||||
operationId: voteSuggestion
|
||||
summary: >-
|
||||
Přepne hlas přihlášeného uživatele u návrhu. Klik na již aktivní směr hlas
|
||||
zruší, opačný směr stávající hlas přepíše.
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
required:
|
||||
- id
|
||||
- direction
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
description: Identifikátor návrhu
|
||||
direction:
|
||||
description: Směr hlasu, na který uživatel klikl
|
||||
$ref: "../../schemas/_index.yml#/VoteDirection"
|
||||
responses:
|
||||
"200":
|
||||
description: Aktualizovaný seznam návrhů.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: "../../schemas/_index.yml#/Suggestion"
|
||||
Reference in New Issue
Block a user