api-mocker 0.1.1__py3-none-any.whl → 0.1.2__py3-none-any.whl
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.
- api_mocker/core.py +3 -3
- {api_mocker-0.1.1.dist-info → api_mocker-0.1.2.dist-info}/METADATA +1 -1
- {api_mocker-0.1.1.dist-info → api_mocker-0.1.2.dist-info}/RECORD +7 -7
- {api_mocker-0.1.1.dist-info → api_mocker-0.1.2.dist-info}/WHEEL +0 -0
- {api_mocker-0.1.1.dist-info → api_mocker-0.1.2.dist-info}/entry_points.txt +0 -0
- {api_mocker-0.1.1.dist-info → api_mocker-0.1.2.dist-info}/licenses/LICENSE +0 -0
- {api_mocker-0.1.1.dist-info → api_mocker-0.1.2.dist-info}/top_level.txt +0 -0
api_mocker/core.py
CHANGED
|
@@ -57,9 +57,9 @@ class AdvancedRouter:
|
|
|
57
57
|
self.routes.append(route)
|
|
58
58
|
|
|
59
59
|
def find_route(self, path: str, method: str) -> Optional[RouteConfig]:
|
|
60
|
-
# Normalize path -
|
|
61
|
-
if path.startswith('/'):
|
|
62
|
-
path = path
|
|
60
|
+
# Normalize path - ensure it starts with /
|
|
61
|
+
if not path.startswith('/'):
|
|
62
|
+
path = '/' + path
|
|
63
63
|
|
|
64
64
|
print(f"Looking for route: {method} {path}")
|
|
65
65
|
print(f"Available routes: {[(r.method, r.path) for r in self.routes]}")
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
api_mocker/__init__.py,sha256=CFC641XJCw_2RbFocNHCTwfr3EEdOQmICFGG_Xlny3Y,168
|
|
2
2
|
api_mocker/cli.py,sha256=LktBFt7V7c1Y00zwZuZzjD5ktAJsm31S7BAaiiGkg5g,19485
|
|
3
3
|
api_mocker/config.py,sha256=zNlJCk1Bs0BrGU-92wiFv2ZTBRu9dJQ6sF8Dh6kIhLQ,913
|
|
4
|
-
api_mocker/core.py,sha256=
|
|
4
|
+
api_mocker/core.py,sha256=K3rP5_cJIEpr02Qgcc_n1Ga3KPo4HumsA6Dlynaj_nQ,8478
|
|
5
5
|
api_mocker/openapi.py,sha256=Pb1gKbBWosEV5i739rW0Nb3ArNq62lgMN0ecyvigNKY,7403
|
|
6
6
|
api_mocker/plugins.py,sha256=OK3OVHJszDky46JHntMVsZUH1ajBjBhAKq3TCDYuxWI,8178
|
|
7
7
|
api_mocker/recorder.py,sha256=7tiT2Krxy3nLDxFAE7rpZSimuD-rKeiwdU72cp0dg6E,9984
|
|
8
8
|
api_mocker/server.py,sha256=xfczRj4xFXGVaGn2pVPgGvYyv3IHUlYTEz3Hop1KQu0,3812
|
|
9
|
-
api_mocker-0.1.
|
|
10
|
-
api_mocker-0.1.
|
|
11
|
-
api_mocker-0.1.
|
|
12
|
-
api_mocker-0.1.
|
|
13
|
-
api_mocker-0.1.
|
|
14
|
-
api_mocker-0.1.
|
|
9
|
+
api_mocker-0.1.2.dist-info/licenses/LICENSE,sha256=FzyeLcPe623lrwpFx3xQ3W0Hb_S2sbHqLzhSXaTmcGg,1074
|
|
10
|
+
api_mocker-0.1.2.dist-info/METADATA,sha256=eKgFL9qDexZOltj-wBi_PYAhw0zAL8i-M76IW8GTBpY,15401
|
|
11
|
+
api_mocker-0.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
12
|
+
api_mocker-0.1.2.dist-info/entry_points.txt,sha256=dj0UIkQ36Uq3oeSjGzmRRUQKFriq4WMCzg7TCor7wkM,51
|
|
13
|
+
api_mocker-0.1.2.dist-info/top_level.txt,sha256=ZcowEudKsJ6xbvOXIno2zZcPhjB-gGO1w7uzoUKRKDM,11
|
|
14
|
+
api_mocker-0.1.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|