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

        Anton Petrushenkov (Inactive) created issue -
        Bertrand Dunogier made changes -
        Field Original Value New Value
        Status Open [ 1 ] Confirmed [ 10037 ]
        Bertrand Dunogier made changes -
        Affects Version/s 5.2 [ 12582 ]
        Bertrand Dunogier made changes -
        Status Confirmed [ 10037 ] Backlog [ 10000 ]
        André Rømcke made changes -
        Workflow eZ Engineering Scrumban Workflow [ 58765 ] EZ* Development Workflow [ 69661 ]
        Michał Maciej Kusztelak (Inactive) made changes -
        Assignee Michał Maciej Kusztelak [ michal.kusztelak@ez.no ]
        Michał Maciej Kusztelak (Inactive) made changes -
        Assignee Michał Maciej Kusztelak [ michal.kusztelak@ez.no ]
        Status Backlog [ 10000 ] Closed [ 6 ]
        Resolution Done [ 9 ]
        Alex Schuster made changes -
        Workflow EZ* Development Workflow [ 69661 ] EZEE Development Workflow [ 122877 ]
        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: