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 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 - remove leading slash if present
61
- if path.startswith('/'):
62
- path = path[1:]
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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: api-mocker
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: The industry-standard, production-ready, free API mocking and development acceleration tool.
5
5
  Author-email: sherin joseph roy <sherin.joseph2217@gmail.com>
6
6
  License: MIT License
@@ -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=G04vhIcVzuoynZ4GVM6e222bnemMdXN4pOQuvalWY6c,8480
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.1.dist-info/licenses/LICENSE,sha256=FzyeLcPe623lrwpFx3xQ3W0Hb_S2sbHqLzhSXaTmcGg,1074
10
- api_mocker-0.1.1.dist-info/METADATA,sha256=09xlfjw9JZfGScpmZc5N3andqHxac_DokCmr0giQa0o,15401
11
- api_mocker-0.1.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
- api_mocker-0.1.1.dist-info/entry_points.txt,sha256=dj0UIkQ36Uq3oeSjGzmRRUQKFriq4WMCzg7TCor7wkM,51
13
- api_mocker-0.1.1.dist-info/top_level.txt,sha256=ZcowEudKsJ6xbvOXIno2zZcPhjB-gGO1w7uzoUKRKDM,11
14
- api_mocker-0.1.1.dist-info/RECORD,,
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,,