apexdevkit 1.6.4__tar.gz → 1.6.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/PKG-INFO +1 -1
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/fastapi/dependable.py +3 -1
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/fastapi/router.py +2 -1
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/pyproject.toml +1 -1
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/LICENSE +0 -0
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/README.md +0 -0
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/__init__.py +0 -0
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/annotation/__init__.py +0 -0
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/annotation/deprecate.py +0 -0
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/error.py +0 -0
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/fastapi/__init__.py +0 -0
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/fastapi/builder.py +0 -0
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/fastapi/docs.py +0 -0
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/fastapi/resource.py +0 -0
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/fastapi/response.py +0 -0
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/fastapi/schema.py +0 -0
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/fastapi/service.py +0 -0
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/formatter.py +0 -0
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/http/__init__.py +0 -0
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/http/fake.py +0 -0
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/http/fluent.py +0 -0
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/http/httpx.py +0 -0
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/http/json.py +0 -0
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/http/url.py +0 -0
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/py.typed +0 -0
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/repository/__init__.py +0 -0
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/repository/base.py +0 -0
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/repository/connector.py +0 -0
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/repository/database.py +0 -0
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/repository/in_memory.py +0 -0
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/repository/interface.py +0 -0
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/testing/__init__.py +0 -0
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/testing/database.py +0 -0
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/testing/fake.py +0 -0
- {apexdevkit-1.6.4 → apexdevkit-1.6.5}/apexdevkit/testing/rest.py +0 -0
|
@@ -43,7 +43,9 @@ class ParentDependency:
|
|
|
43
43
|
|
|
44
44
|
def as_dependable(self) -> type[RestfulServiceBuilder]:
|
|
45
45
|
Builder = self.dependency.as_dependable()
|
|
46
|
-
ParentId = Annotated[
|
|
46
|
+
ParentId = Annotated[
|
|
47
|
+
str, Path(alias=self.parent.singular.replace("-", "_") + "_id")
|
|
48
|
+
]
|
|
47
49
|
|
|
48
50
|
def _(builder: Builder, parent_id: ParentId) -> RestfulServiceBuilder:
|
|
49
51
|
try:
|
|
@@ -46,7 +46,7 @@ class RestfulRouter:
|
|
|
46
46
|
|
|
47
47
|
@property
|
|
48
48
|
def id_alias(self) -> str:
|
|
49
|
-
return self.name.singular + "_id"
|
|
49
|
+
return self.name.singular.replace("-", "_") + "_id"
|
|
50
50
|
|
|
51
51
|
@property
|
|
52
52
|
def item_path(self) -> str:
|
|
@@ -264,6 +264,7 @@ class RestfulRouter:
|
|
|
264
264
|
|
|
265
265
|
def with_sub_resource(self, **names: APIRouter) -> Self:
|
|
266
266
|
for name, router in names.items():
|
|
267
|
+
print(self.item_path)
|
|
267
268
|
self.router.include_router(router, prefix=f"{self.item_path}/{name}")
|
|
268
269
|
|
|
269
270
|
return self
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|