pim_enrich_family_rest_create:
    path: ''
    defaults: { _controller: pim_enrich.controller.rest.family:createAction }
    methods: [POST]

pim_enrich_family_rest_index:
    path: ''
    defaults: { _controller: pim_enrich.controller.rest.family:indexAction }
    methods: [GET]

pim_enrich_family_index_get_variants:
    path: /with-variants
    defaults: { _controller: pim_enrich.controller.rest.family:getWithVariantsAction }
    methods: [GET]

pim_enrich_family_rest_get:
    path: /{identifier}
    defaults: { _controller: pim_enrich.controller.rest.family:getAction }
    requirements:
        identifier: '[a-zA-Z0-9_]+'
    methods: [GET]

pim_enrich_family_rest_put:
    path: /{code}
    defaults: { _controller: pim_enrich.controller.rest.family:putAction }
    requirements:
        code: '[a-zA-Z0-9_]+'
    methods: [PUT]

pim_enrich_family_rest_remove:
    path: /{code}
    defaults: { _controller: pim_enrich.controller.rest.family:removeAction }
    requirements:
        code: '[a-zA-Z0-9_]+'
    methods: [DELETE]

pim_enrich_family_variant_rest_get:
    path: /family-variant/{identifier}
    defaults: { _controller: pim_enrich.controller.rest.family_variant:getAction }
    requirements:
        identifier: '[a-zA-Z0-9_]+'
    methods: [GET]

pim_enrich_family_rest_get_available_axes:
    path: /{code}/available-axes
    defaults: { _controller: pim_enrich.controller.rest.family:getAvailableAxesAction }
    requirements:
        code: '[a-zA-Z0-9_]+'
    methods: [GET]
