Skip to content

Commit

Permalink
Merge branch 'master' into enh/blocked-studies
Browse files Browse the repository at this point in the history
  • Loading branch information
odeimaiz authored Aug 21, 2024
2 parents 8fb5a57 + 8c6b2c8 commit f33f4e6
Show file tree
Hide file tree
Showing 27 changed files with 946 additions and 1,104 deletions.
17 changes: 10 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,21 @@ pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.cache
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
cov.xml
*.cover
.hypothesis/
.pytest_cache/
.tox/
*.cover
cov.xml
coverage.xml
htmlcov/
locust_report/
nosetests.xml
test_failures/


# Translations
*.mo
*.pot
Expand Down
36 changes: 4 additions & 32 deletions api/specs/web-server/_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from models_library.api_schemas_webserver.catalog import (
CatalogServiceGet,
CatalogServiceUpdate,
ServiceGet,
ServiceInputGet,
ServiceInputKey,
ServiceOutputGet,
Expand Down Expand Up @@ -38,51 +37,24 @@


@router.get(
"/dev/catalog/services/-/latest",
"/catalog/services/-/latest",
response_model=Page[CatalogServiceGet],
)
def dev_list_services_latest(_query_params: Annotated[ListServiceParams, Depends()]):
pass


@router.get(
"/dev/catalog/services/{service_key}/{service_version}",
response_model=Envelope[CatalogServiceGet],
)
def dev_get_service(_path_params: Annotated[ServicePathParams, Depends()]):
...


@router.patch(
"/dev/catalog/services/{service_key}/{service_version}",
response_model=Envelope[CatalogServiceGet],
)
def dev_update_service(
_path_params: Annotated[ServicePathParams, Depends()],
_update: CatalogServiceUpdate,
):
...


@router.get(
"/catalog/services",
response_model=Envelope[list[ServiceGet]],
)
def list_services():
def list_services_latest(_query_params: Annotated[ListServiceParams, Depends()]):
pass


@router.get(
"/catalog/services/{service_key}/{service_version}",
response_model=Envelope[ServiceGet],
response_model=Envelope[CatalogServiceGet],
)
def get_service(_path_params: Annotated[ServicePathParams, Depends()]):
...


@router.patch(
"/catalog/services/{service_key}/{service_version}",
response_model=Envelope[ServiceGet],
response_model=Envelope[CatalogServiceGet],
)
def update_service(
_path_params: Annotated[ServicePathParams, Depends()],
Expand Down
Loading

0 comments on commit f33f4e6

Please sign in to comment.