# This file is part of the Sylius package.
# (c) Paweł Jędrzejewski

sylius_api_payment_method_index:
    path: /
    methods: [GET]
    defaults:
        _controller: sylius.controller.payment_method:indexAction
        _sylius:
            paginate: $limit
            sortable: true
            sorting:
                name: desc

sylius_api_payment_method_create:
    path: /
    methods: [POST]
    defaults:
        _controller: sylius.controller.payment_method:createAction

sylius_api_payment_method_update:
    path: /{id}
    methods: [PUT]
    defaults:
        _controller: sylius.controller.payment_method:updateAction

sylius_api_payment_method_delete:
    path: /{id}
    methods: [DELETE]
    defaults:
        _controller: sylius.controller.payment_method:deleteAction

sylius_api_payment_method_show:
    path: /{id}
    methods: [GET]
    defaults:
        _controller: sylius.controller.payment_method:deleteAction

# This file is part of the Sylius package.
# (c) Paweł Jędrzejewski

sylius_api_payment_method_index:
    path: /
    methods: [GET]
    defaults:
        _controller: sylius.controller.payment_method:indexAction
        _sylius:
            paginate: $limit
            sortable: true
            sorting:
                name: desc

sylius_api_payment_method_create:
    path: /
    methods: [POST]
    defaults:
        _controller: sylius.controller.payment_method:createAction

sylius_api_payment_method_update:
    path: /{id}
    methods: [PUT, PATCH]
    defaults:
        _controller: sylius.controller.payment_method:updateAction

sylius_api_payment_method_delete:
    path: /{id}
    methods: [DELETE]
    defaults:
        _controller: sylius.controller.payment_method:deleteAction

sylius_api_payment_method_show:
    path: /{id}
    methods: [GET]
    defaults:
        _controller: sylius.controller.payment_method:deleteAction

Allow patch for payment method update
Allow patch for payment method update
