File size: 373 Bytes
65933cd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# backend/app/schemas/images.py
from pydantic import BaseModel, AnyHttpUrl, Field
from typing import List, Optional

class CreateImageFromUrlIn(BaseModel):
    url: str 
    source: str
    event_type: str
    epsg: str
    image_type: str
    countries: List[str] = Field(default_factory=list)

class CreateImageFromUrlOut(BaseModel):
    image_id: str
    image_url: str