Skip to content

Commit

Permalink
url fix - openAPI github check (#163)
Browse files Browse the repository at this point in the history
* test fix against github action

* test

* generate spec

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
cp-at-mit and pre-commit-ci[bot] authored Oct 25, 2024
1 parent 4d1e86c commit ad14b83
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
11 changes: 10 additions & 1 deletion openapi/specs/v0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,16 @@ paths:
schema:
$ref: '#/components/schemas/BasketWithProduct'
description: ''
/api/v0/payments/baskets/clear/:
/api/v0/payments/baskets/clear/{system_slug}/:
delete:
operationId: payments_baskets_clear_destroy
description: Clears the basket for the current user.
parameters:
- in: path
name: system_slug
schema:
type: string
required: true
tags:
- payments
responses:
Expand Down Expand Up @@ -553,9 +559,12 @@ components:
readOnly: true
user:
type: integer
integrated_system:
type: integer
required:
- created_on
- id
- integrated_system
- updated_on
- user
OrderHistory:
Expand Down
11 changes: 7 additions & 4 deletions payments/views/v0/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@

router.register(r"orders/history", OrderHistoryViewSet, basename="orderhistory_api")

router.register(
r"checkout/r'<str:system_slug>'", CheckoutApiViewSet, basename="checkout"
)
router.register(r"checkout", CheckoutApiViewSet, basename="checkout")

urlpatterns = [
path(
Expand All @@ -39,7 +37,12 @@
BackofficeCallbackView.as_view(),
name="checkout-callback",
),
re_path("^", include(router.urls)),
re_path(
r"^",
include(
router.urls,
),
),
path(
"checkout/result/",
CheckoutCallbackView.as_view(),
Expand Down

0 comments on commit ad14b83

Please sign in to comment.