feat(api): API accept computer inventory

!8 closes #2
This commit is contained in:
2024-05-20 16:42:31 +09:30
parent bdf40d952e
commit c52fd0802e
6 changed files with 323 additions and 3 deletions

17
app/core/http/common.py Normal file
View File

@ -0,0 +1,17 @@
from enum import IntEnum
class Http():
"""Common HTTP Related objects"""
class Status(IntEnum):
"""HTTP server status codes."""
OK = 200
CREATED = 201
BAD_REQUEST = 400
SERVER_ERROR = 500