Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove economy, metadata, and policy folders #20

Merged
merged 2 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: patch
changes:
changed:
- Removed deprecated economy, metadata, and policy folders
18 changes: 0 additions & 18 deletions policyengine_api_light/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@
import flask
from .constants import VERSION

# from werkzeug.middleware.profiler import ProfilerMiddleware

# Endpoints

from .endpoints import (
get_home,
get_metadata,
get_calculate,
)

Expand All @@ -23,8 +19,6 @@

app.route("/", methods=["GET"])(get_home)

app.route("/<country_id>/metadata", methods=["GET"])(get_metadata)

app.route("/<country_id>/calculate", methods=["POST"])(get_calculate)

app.route("/<country_id>/calculate-full", methods=["POST"])(
Expand All @@ -46,16 +40,4 @@ def readiness_check():
)


# Add OpenAPI spec (__file__.parent / openapi_spec.yaml)

# with open(Path(__file__).parent / "openapi_spec.yaml", encoding="utf-8") as f:
# openapi_spec = yaml.safe_load(f)
# openapi_spec["info"]["version"] = VERSION


# @app.route("/specification", methods=["GET"])
# def get_specification():
# return flask.jsonify(openapi_spec)


print("API initialised.")
1 change: 0 additions & 1 deletion policyengine_api_light/endpoints/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
from .home import get_home
from .metadata import get_metadata
from .household import get_calculate
Empty file.
228 changes: 0 additions & 228 deletions policyengine_api_light/endpoints/economy/single_economy.py

This file was deleted.

14 changes: 0 additions & 14 deletions policyengine_api_light/endpoints/metadata.py

This file was deleted.

7 changes: 0 additions & 7 deletions policyengine_api_light/endpoints/policy.py

This file was deleted.

Loading