Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-23719

Missing contentType, width, height and fileSize properties in to the output of the load image variation REST response

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: High High
    • None
    • 2014.11, 5.4.0
    • Platform > REST API v2
    • None

    Description

      $ curl 'http://ezpublish5.loc/api/ezp/v2/content/binary/images/139-853/variations/reference' -H 'Accept: application/json' -H 'Cookie: is_logged_in=true; eZSESSID=41mq7dm5b8a1889ce8980c1h31'
      
      {
          "ContentImageVariation": {
              "_media-type": "application\/vnd.ez.api.ContentImageVariation+json",
              "_href": "\/api\/ezp\/v2\/content\/binary\/images\/139-853\/variations\/reference",
              "uri": "http:\/\/ezpublish5.loc\/var\/ezdemo_site\/storage\/images\/media\/images\/avatar\/853-1-eng-GB\/avatar_reference.png"
          }
      }
      

      while the REST spec states that others properties should available.
      See https://github.com/ezsystems/ezpublish-kernel/blob/master/doc/specifications/rest/REST-API-V2.rst#L1653

      Attachments

        Activity

          People

            Unassigned Unassigned
            damien.pobel-obsolete@ez.no Damien Pobel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: