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

Error in REST APIv2 documentation (create and update Policy)

    XMLWordPrintable

Details

    Description

      Errors encountered in describing limitation parameter in documentation for calls creating a policy:
      https://github.com/ezsystems/ezpublish-
      kernel/blob/master/doc/specifications/rest/REST-API-V2.rst#create-policy
      or updating one:
      https://github.com/ezsystems/ezpublish-kernel/blob/master/doc/specifications/rest/REST-API-V2.rst#update-policy

      The limitatation format which is actually working is as follows (JSON format):

      {  _identifier : "Class",
              values : {
                 ref : [{
                      _href : "18"
                  }]
              }
      }
      

      while documentation states _href should be full resource id.
      E.g.

      _href : "/api/ezp/v2/content/types/18"
      

      Also, for "create Policy" call Resource, Method and Description are mistakenly taken from "Update Policy" section

      Attachments

        Activity

          People

            Unassigned Unassigned
            Anton.Petrushenkov-obsolete@ez.no Anton Petrushenkov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: