Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Commit

Permalink
task/29 move to another file health response
Browse files Browse the repository at this point in the history
  • Loading branch information
vanvanich9 committed Sep 29, 2023
1 parent 8741324 commit 8080b6a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion sapphire/common/api/schemas/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from .base import BaseResponse, HealthResponse, OKResponse
from .base import BaseResponse, OKResponse
from .enums import ResponseStatus
from .health import HealthResponse

__all__ = [
"ResponseStatus",
Expand Down
5 changes: 0 additions & 5 deletions sapphire/common/api/schemas/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,3 @@ class BaseResponse(BaseModel):

class OKResponse(BaseModel):
status: ResponseStatus = ResponseStatus.OK


class HealthResponse(BaseResponse):
version: str
name: str
6 changes: 6 additions & 0 deletions sapphire/common/api/schemas/health.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from .base import BaseResponse


class HealthResponse(BaseResponse):
version: str
name: str

0 comments on commit 8080b6a

Please sign in to comment.