mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-23 20:17:10 +00:00
feat: added 409 to swagger
This commit is contained in:
@@ -6,7 +6,7 @@ from ninja import Router
|
|||||||
from ninja.errors import AuthenticationError
|
from ninja.errors import AuthenticationError
|
||||||
|
|
||||||
from api.v1.auth import BearerAuth
|
from api.v1.auth import BearerAuth
|
||||||
from api.v1.schemas import BadRequestError, ForbiddenError, NotFoundError
|
from api.v1.schemas import BadRequestError, ForbiddenError, NotFoundError, ConflictError
|
||||||
from api.v1.user.schemas import (
|
from api.v1.user.schemas import (
|
||||||
LoginSchema,
|
LoginSchema,
|
||||||
RegisterSchema,
|
RegisterSchema,
|
||||||
@@ -23,6 +23,7 @@ router = Router(tags=["user"])
|
|||||||
response={
|
response={
|
||||||
status.CREATED: TokenSchema,
|
status.CREATED: TokenSchema,
|
||||||
status.BAD_REQUEST: BadRequestError,
|
status.BAD_REQUEST: BadRequestError,
|
||||||
|
status.CONFLICT: ConflictError,
|
||||||
},
|
},
|
||||||
auth=None,
|
auth=None,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user