mirror of
https://github.com/cssgunc/compass.git
synced 2025-04-09 14:00:15 -04:00
* Implemented API routes for getting all, creating, updating, and deleting resources, services, and tags. * Updated main.py for API routes to include tags and rolled entities back. * Created API routes for create, update, delete, get_all, and get_by_name. Deleted service methods for get by id. * Defaults created_at to current time * Write markdown file for HTTP requests using curl --------- Co-authored-by: pmoharana-cmd <pmoharana032474@gmail.com>
17 lines
394 B
Python
17 lines
394 B
Python
from pydantic import BaseModel, Field
|
|
from enum import Enum
|
|
from typing import List
|
|
from datetime import datetime
|
|
from typing import Optional
|
|
from .enum_for_models import ProgramTypeEnum
|
|
|
|
|
|
class Service(BaseModel):
|
|
id: int | None = None
|
|
created_at: datetime | None = datetime.now()
|
|
name: str
|
|
status: str
|
|
summary: str
|
|
requirements: List[str]
|
|
program: ProgramTypeEnum
|