teunmooij / payload-tools

Collection of payload plugins and tools: payload-openapi, payload-swagger, create-payload-api-docs, payload-rbac
https://github.com/teunmooij/payload-tools/#readme
MIT License
101 stars 12 forks source link

[Feature request]: Support collection access endpoint #61

Closed thnhat51202574 closed 1 year ago

thnhat51202574 commented 1 year ago

Package name

payload-openapi

Description

We don't have any access endpoint for the collection level yet

teunmooij commented 1 year ago

I'm not aware of any such endpoint. As far as I know there's only the global /access endpoint. Can you point me to the documentation of this endpoint?

thnhat51202574 commented 1 year ago

I couldn't find any documentation about the collections endpoint. However, along with the global /access endpoint, the admin UI refers to the collection as <slug>/access/:id when checking permissions for accessing the detail page Screenshot 2023-05-23 at 18 41 52

teunmooij commented 1 year ago

Thanks for the update. I'll look into it.

thnhat51202574 commented 1 year ago

Hi @teunmooij , do we have any solutions for adding Swagger options to all the collection endpoints?

teunmooij commented 1 year ago

This is not a documented feature of payload. Therefore it's uncertain whether it will be supported in future versions. I will not add this. If you want to have this documented on your payload instance, please use one of the extension options described in the docs.