Skip to content

Commit

Permalink
Merge pull request #4914 from open-formulieren/cleanup/3283-normalize…
Browse files Browse the repository at this point in the history
…-api-endpoints-to-kebab-case

💥 Normalize api endpoints to kebab case
  • Loading branch information
sergei-maertens authored Dec 17, 2024
2 parents ac7be79 + 3506583 commit 4f57eb8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ info:
license:
name: UNLICENSED
paths:
/api/v2/analytics/analytics_tools_config_info:
/api/v2/analytics/analytics-tools-config-info:
get:
operationId: analytics_analytics_tools_config_info_retrieve
description: Haal informatie op over de analytics-tools voor de frontend.
Expand Down Expand Up @@ -597,7 +597,7 @@ paths:
$ref: '#/components/headers/X-Is-Form-Designer'
Content-Language:
$ref: '#/components/headers/Content-Language'
/api/v2/config/privacy_policy_info:
/api/v2/config/privacy-policy-info:
get:
operationId: config_privacy_policy_info_retrieve
summary: Privacybeleid informatie
Expand Down Expand Up @@ -4547,7 +4547,7 @@ paths:
$ref: '#/components/headers/X-Is-Form-Designer'
Content-Language:
$ref: '#/components/headers/Content-Language'
/api/v2/submissions/{submission_uuid}/steps/{step_uuid}/_check_logic:
/api/v2/submissions/{submission_uuid}/steps/{step_uuid}/_check-logic:
post:
operationId: submissions_steps__check_logic_create
description: Apply/check the logic rules specified on the form step.
Expand Down
2 changes: 1 addition & 1 deletion src/openforms/analytics_tools/api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

urlpatterns = [
path(
"analytics_tools_config_info",
"analytics-tools-config-info",
AnalyticsToolsConfigurationView.as_view(),
name="analytics-tools-config-info",
),
Expand Down
4 changes: 0 additions & 4 deletions src/openforms/api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@
path("forms-import", FormsImportAPIView.as_view(), name="forms-import"),
path("prefill/", include("openforms.prefill.api.urls")),
path("validation/", include("openforms.validations.api.urls")),
path(
"location/get-street-name-and-city",
RedirectView.as_view(pattern_name="api:geo:address-autocomplete"),
),
path(
"logic/description",
GenerateLogicDescriptionView.as_view(),
Expand Down
2 changes: 1 addition & 1 deletion src/openforms/config/api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

urlpatterns = [
path(
"privacy_policy_info",
"privacy-policy-info",
PrivacyPolicyInfoView.as_view(),
name="privacy-policy-info",
),
Expand Down
2 changes: 1 addition & 1 deletion src/openforms/submissions/api/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ def _validate_step_input(
@action(
detail=True,
methods=["post"],
url_path="_check_logic",
url_path="_check-logic",
throttle_classes=[PollingRateThrottle],
)
def logic_check(self, request, *args, **kwargs):
Expand Down

0 comments on commit 4f57eb8

Please sign in to comment.