api-doc-parser
api-doc-parser copied to clipboard
WIP - Handle only postable resource
Fix issue #53
I think that it should be fixed in API Platform Core first.
- 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). - In the API documentation (
/docs.jsonld
), this new property of the entrypoint must be marked withreadable: false
andwriteable: true
, as it's indeed a write-only property of the API entrypoint. - 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?
I agree, i had the same feeling that this solution was "hacky". I'll consider your comment and investigate into the core.
Hello guys. Is there any progress to this PR? We are currently using ApiPlatform and the fetch always fails on the mentioned line.