api-doc-parser icon indicating copy to clipboard operation
api-doc-parser copied to clipboard

WIP - Handle only postable resource

Open jfthuillier opened this issue 5 years ago • 3 comments

Fix issue #53

jfthuillier avatar May 06 '19 14:05 jfthuillier

I think that it should be fixed in API Platform Core first.

  1. In the API entrypoint, (/index.jsonld), every properties should be listed, even if now GET operations are associated with them (AFAIU, it's currently not the case, and it's wrong).
  2. In the API documentation (/docs.jsonld), this new property of the entrypoint must be marked with readable: false and writeable: true, as it's indeed a write-only property of the API entrypoint.
  3. We have to check that this is supported in this lib

Doing this would allow to remove most hardcoded code, and will be cleaner. WDTY?

dunglas avatar May 06 '19 15:05 dunglas

I agree, i had the same feeling that this solution was "hacky". I'll consider your comment and investigate into the core.

jfthuillier avatar May 07 '19 10:05 jfthuillier

Hello guys. Is there any progress to this PR? We are currently using ApiPlatform and the fetch always fails on the mentioned line.

StanislavUngr avatar Sep 25 '19 23:09 StanislavUngr