pim_api_media_file_list:
    path: /media-files
    defaults: { _controller: pim_api.controller.media_file:listAction, _format: json }
    methods: [GET]

pim_api_media_file_download:
    path: /media-files/{code}/download
    defaults: { _controller: pim_api.controller.media_file:downloadAction, _format: json }
    methods: [GET]
    requirements:
        code: ([a-zA-Z0-9_./]+)

pim_api_media_file_get:
    path: /media-files/{code}
    defaults: { _controller: pim_api.controller.media_file:getAction, _format: json }
    methods: [GET]
    requirements:
        code: ([a-zA-Z0-9_./]+)

pim_api_media_file_create:
    path: /media-files
    defaults: { _controller: pim_api.controller.media_file:createAction, _format: json }
    methods: [POST]
