apexdevkit 1.5.2__tar.gz → 1.5.3__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.5.2 → apexdevkit-1.5.3}/PKG-INFO +1 -1
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/apexdevkit/fastapi/service.py +4 -10
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/pyproject.toml +1 -1
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/LICENSE +0 -0
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/README.md +0 -0
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/apexdevkit/__init__.py +0 -0
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/apexdevkit/annotation/__init__.py +0 -0
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/apexdevkit/annotation/deprecate.py +0 -0
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/apexdevkit/error.py +0 -0
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/apexdevkit/fastapi/__init__.py +0 -0
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/apexdevkit/fastapi/builder.py +0 -0
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/apexdevkit/fastapi/dependable.py +0 -0
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/apexdevkit/fastapi/docs.py +0 -0
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/apexdevkit/fastapi/response.py +0 -0
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/apexdevkit/fastapi/router.py +0 -0
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/apexdevkit/fastapi/schema.py +0 -0
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/apexdevkit/http/__init__.py +0 -0
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/apexdevkit/http/fake.py +0 -0
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/apexdevkit/http/fluent.py +0 -0
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/apexdevkit/http/httpx.py +0 -0
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/apexdevkit/http/json.py +0 -0
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/apexdevkit/http/url.py +0 -0
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/apexdevkit/py.typed +0 -0
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/apexdevkit/repository/__init__.py +0 -0
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/apexdevkit/repository/base.py +0 -0
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/apexdevkit/repository/connector.py +0 -0
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/apexdevkit/repository/database.py +0 -0
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/apexdevkit/repository/in_memory.py +0 -0
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/apexdevkit/repository/interface.py +0 -0
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/apexdevkit/testing/__init__.py +0 -0
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/apexdevkit/testing/database.py +0 -0
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/apexdevkit/testing/fake.py +0 -0
- {apexdevkit-1.5.2 → apexdevkit-1.5.3}/apexdevkit/testing/rest.py +0 -0
|
@@ -45,18 +45,12 @@ class RestfulRepository(RestfulService):
|
|
|
45
45
|
repository: Repository[Any, Any]
|
|
46
46
|
|
|
47
47
|
def create_one(self, item: RawItem) -> RawItem:
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
self.repository.create(result)
|
|
51
|
-
|
|
52
|
-
return _as_raw_item(result)
|
|
48
|
+
return _as_raw_item(self.repository.create(self.resource(**item)))
|
|
53
49
|
|
|
54
50
|
def create_many(self, items: RawCollection) -> RawCollection:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
return _as_raw_collection(result)
|
|
51
|
+
return _as_raw_collection(
|
|
52
|
+
self.repository.create_many([self.resource(**fields) for fields in items])
|
|
53
|
+
)
|
|
60
54
|
|
|
61
55
|
def read_one(self, item_id: str) -> RawItem:
|
|
62
56
|
result = self.repository.read(item_id)
|
|
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
|