Skip to content

Commit

Permalink
add deprecation to openapi
Browse files Browse the repository at this point in the history
  • Loading branch information
russbiggs committed Nov 19, 2024
1 parent a5435f1 commit b5900a2
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion openaq_api/openaq_api/routers/averages.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

logger = logging.getLogger("averages")

router = APIRouter()
router = APIRouter(deprecated=True)


class DateFromQuery(QueryBaseModel):
Expand Down
2 changes: 1 addition & 1 deletion openaq_api/openaq_api/routers/cities.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

logger = logging.getLogger("cities")

router = APIRouter()
router = APIRouter(deprecated=True)


class CitiesOrder(StrEnum):
Expand Down
2 changes: 1 addition & 1 deletion openaq_api/openaq_api/routers/countries.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

logger = logging.getLogger("countries")

router = APIRouter()
router = APIRouter(deprecated=True)


class CountriesOrder(StrEnum):
Expand Down
2 changes: 1 addition & 1 deletion openaq_api/openaq_api/routers/locations.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

logger = logging.getLogger("locations")

router = APIRouter(include_in_schema=True)
router = APIRouter(include_in_schema=True, deprecated=True)


class LocationsOrder(StrEnum):
Expand Down
2 changes: 1 addition & 1 deletion openaq_api/openaq_api/routers/manufacturers.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
logger = logging.getLogger("manufacturers")
logger.setLevel(logging.DEBUG)

router = APIRouter()
router = APIRouter(deprecated=True)


@router.get(
Expand Down
4 changes: 1 addition & 3 deletions openaq_api/openaq_api/routers/measurements.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@

logger = logging.getLogger("measurements")

router = APIRouter(
include_in_schema=True,
)
router = APIRouter(include_in_schema=True, deprecated=True)


def meas_csv(rows, includefields):
Expand Down
2 changes: 1 addition & 1 deletion openaq_api/openaq_api/routers/mvt.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class TileJSON(BaseModel):

logger = logging.getLogger("mvt")

router = APIRouter()
router = APIRouter(deprecated=True)


class TileBase(OBaseModel):
Expand Down
2 changes: 1 addition & 1 deletion openaq_api/openaq_api/routers/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

logger = logging.getLogger("parameters")

router = APIRouter()
router = APIRouter(deprecated=True)


class ParametersV1(APIBase):
Expand Down
2 changes: 1 addition & 1 deletion openaq_api/openaq_api/routers/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

logger = logging.getLogger("projects")

router = APIRouter()
router = APIRouter(deprecated=True)


class ProjectsOrder(StrEnum):
Expand Down
2 changes: 1 addition & 1 deletion openaq_api/openaq_api/routers/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

logger = logging.getLogger("sources")

router = APIRouter()
router = APIRouter(deprecated=True)


class SourcesOrder(StrEnum):
Expand Down
2 changes: 1 addition & 1 deletion openaq_api/openaq_api/routers/summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
logger = logging.getLogger("summary")
logger.setLevel(logging.DEBUG)

router = APIRouter()
router = APIRouter(deprecated=True)


@router.get(
Expand Down

0 comments on commit b5900a2

Please sign in to comment.