Skip to content

Commit

Permalink
fix: Remove slash inconsistency in endpoints.
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-bozbei-ew committed Oct 5, 2023
1 parent 92bb361 commit 9ce0e7d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions py_ocpi/core/endpoints/v_2_1_1/cpo.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,38 +8,38 @@

URL_BASE = (
f"https://{settings.OCPI_HOST}/{settings.OCPI_PREFIX}/"
f"cpo/{VersionNumber.v_2_1_1.value}/"
f"cpo/{VersionNumber.v_2_1_1.value}"
)


CREDENTIALS_AND_REGISTRATION = Endpoint(
identifier=ModuleID.credentials_and_registration,
url=URL(f"{URL_BASE}/{ModuleID.credentials_and_registration.value}"),
url=URL(f"{URL_BASE}/{ModuleID.credentials_and_registration.value}/"),
)

LOCATIONS = Endpoint(
identifier=ModuleID.locations,
url=URL(f"{URL_BASE}/{ModuleID.locations.value}"),
url=URL(f"{URL_BASE}/{ModuleID.locations.value}/"),
)

CDRS = Endpoint(
identifier=ModuleID.cdrs,
url=URL(f"{URL_BASE}/{ModuleID.cdrs.value}"),
url=URL(f"{URL_BASE}/{ModuleID.cdrs.value}/"),
)

TARIFFS = Endpoint(
identifier=ModuleID.tariffs,
url=URL(f"{URL_BASE}/{ModuleID.tariffs.value}"),
url=URL(f"{URL_BASE}/{ModuleID.tariffs.value}/"),
)

SESSIONS = Endpoint(
identifier=ModuleID.sessions,
url=URL(f"{URL_BASE}/{ModuleID.sessions.value}"),
url=URL(f"{URL_BASE}/{ModuleID.sessions.value}/"),
)

TOKENS = Endpoint(
identifier=ModuleID.tokens,
url=URL(f"{URL_BASE}/{ModuleID.tokens.value}"),
url=URL(f"{URL_BASE}/{ModuleID.tokens.value}/"),
)

ENDPOINTS_LIST = {
Expand Down
12 changes: 6 additions & 6 deletions py_ocpi/core/endpoints/v_2_1_1/emsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,32 @@

CREDENTIALS_AND_REGISTRATION = Endpoint(
identifier=ModuleID.credentials_and_registration,
url=URL(f"{URL_BASE}/{ModuleID.credentials_and_registration.value}"),
url=URL(f"{URL_BASE}/{ModuleID.credentials_and_registration.value}/"),
)

LOCATIONS = Endpoint(
identifier=ModuleID.locations,
url=URL(f"{URL_BASE}/{ModuleID.locations.value}"),
url=URL(f"{URL_BASE}/{ModuleID.locations.value}/"),
)

CDRS = Endpoint(
identifier=ModuleID.cdrs,
url=URL(f"{URL_BASE}/{ModuleID.cdrs.value}"),
url=URL(f"{URL_BASE}/{ModuleID.cdrs.value}/"),
)

TARIFFS = Endpoint(
identifier=ModuleID.tariffs,
url=URL(f"{URL_BASE}/{ModuleID.tariffs.value}"),
url=URL(f"{URL_BASE}/{ModuleID.tariffs.value}/"),
)

SESSIONS = Endpoint(
identifier=ModuleID.sessions,
url=URL(f"{URL_BASE}/{ModuleID.sessions.value}"),
url=URL(f"{URL_BASE}/{ModuleID.sessions.value}/"),
)

TOKENS = Endpoint(
identifier=ModuleID.tokens,
url=URL(f"{URL_BASE}/{ModuleID.tokens.value}"),
url=URL(f"{URL_BASE}/{ModuleID.tokens.value}/"),
)

ENDPOINTS_LIST = {
Expand Down

0 comments on commit 9ce0e7d

Please sign in to comment.