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

Error in REST APIv2 documentation (create and update Policy)

    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

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Confirmed Confirmed
        212d 23h 33m 1 Bertrand Dunogier 13/Apr/14 3:05 PM
        Confirmed Confirmed Backlog Backlog
        8s 1 Bertrand Dunogier 13/Apr/14 3:05 PM
        Backlog Backlog Closed Closed
        1180d 20h 12m 1 michal.kusztelak@ez.no 07/Jul/17 11:17 AM

          People

          • Assignee:
            Unassigned
            Reporter:
            Anton Petrushenkov (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: