api-mocker 0.1.1__tar.gz → 0.1.2__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.
Files changed (21) hide show
  1. {api_mocker-0.1.1/src/api_mocker.egg-info → api_mocker-0.1.2}/PKG-INFO +1 -1
  2. {api_mocker-0.1.1 → api_mocker-0.1.2}/pyproject.toml +1 -1
  3. {api_mocker-0.1.1 → api_mocker-0.1.2}/src/api_mocker/core.py +3 -3
  4. {api_mocker-0.1.1 → api_mocker-0.1.2/src/api_mocker.egg-info}/PKG-INFO +1 -1
  5. {api_mocker-0.1.1 → api_mocker-0.1.2}/LICENSE +0 -0
  6. {api_mocker-0.1.1 → api_mocker-0.1.2}/README.md +0 -0
  7. {api_mocker-0.1.1 → api_mocker-0.1.2}/setup.cfg +0 -0
  8. {api_mocker-0.1.1 → api_mocker-0.1.2}/src/api_mocker/__init__.py +0 -0
  9. {api_mocker-0.1.1 → api_mocker-0.1.2}/src/api_mocker/cli.py +0 -0
  10. {api_mocker-0.1.1 → api_mocker-0.1.2}/src/api_mocker/config.py +0 -0
  11. {api_mocker-0.1.1 → api_mocker-0.1.2}/src/api_mocker/openapi.py +0 -0
  12. {api_mocker-0.1.1 → api_mocker-0.1.2}/src/api_mocker/plugins.py +0 -0
  13. {api_mocker-0.1.1 → api_mocker-0.1.2}/src/api_mocker/recorder.py +0 -0
  14. {api_mocker-0.1.1 → api_mocker-0.1.2}/src/api_mocker/server.py +0 -0
  15. {api_mocker-0.1.1 → api_mocker-0.1.2}/src/api_mocker.egg-info/SOURCES.txt +0 -0
  16. {api_mocker-0.1.1 → api_mocker-0.1.2}/src/api_mocker.egg-info/dependency_links.txt +0 -0
  17. {api_mocker-0.1.1 → api_mocker-0.1.2}/src/api_mocker.egg-info/entry_points.txt +0 -0
  18. {api_mocker-0.1.1 → api_mocker-0.1.2}/src/api_mocker.egg-info/requires.txt +0 -0
  19. {api_mocker-0.1.1 → api_mocker-0.1.2}/src/api_mocker.egg-info/top_level.txt +0 -0
  20. {api_mocker-0.1.1 → api_mocker-0.1.2}/tests/test_basic.py +0 -0
  21. {api_mocker-0.1.1 → api_mocker-0.1.2}/tests/test_core.py +0 -0
@@ -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,6 +1,6 @@
1
1
  [project]
2
2
  name = "api-mocker"
3
- version = "0.1.1"
3
+ version = "0.1.2"
4
4
  description = "The industry-standard, production-ready, free API mocking and development acceleration tool."
5
5
  authors = [
6
6
  { name = "sherin joseph roy", email = "sherin.joseph2217@gmail.com" }
@@ -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
File without changes
File without changes
File without changes