How to approve an item?
I'm quite unclear how to approve an item that is suggested by a contributor in a correct way via the API.
@stefan.probst pointed to use the PUT /api/{category}/{id}/versions/{versionId}/revert call (#61 (closed)) which indeed works but may not be the intended way to approve a suggested item.
He also told me about the possible correct way, to take a suggested version of an item and PUT it via the API as a moderator/administrator. But this does not work for me. What I do: I create an item as contributor it gets the status SUGGESTED and will not show up. I look for it in the database and take the persistent_id and the id to have an API call as administrator to get this item: GET /api/{category}/{persistent_id}/versions/{id}. I take the result and use it for a PUT call: PUT /api/{category}/{persistent_id}. It is then APPROVED
@mkozak @swolarz Is the later the correct way to approve an item? If so, we may need to adapt the swagger documentation, as there the important body field "id" is missing (otherwise I guess it will not work as it is then not clear which version to submit - am I correct?)