Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Option to group or add extra attribute to query param #1316

Open
jerrens opened this issue Dec 7, 2022 · 1 comment
Open

Option to group or add extra attribute to query param #1316

jerrens opened this issue Dec 7, 2022 · 1 comment

Comments

@jerrens
Copy link

jerrens commented Dec 7, 2022

In my REST API, I have a parameter that is only available to 'admin' users (others are for any user). I would like to include this in the API docs, but I don't see an option other than putting something in the description.

The group attribute of @apiParam looks like it would fit my needs if it were available for @apiQuery also. Then I could do:

@apiQuery (AdminOnly) {number} field This query parameter is only accessible to admin users

Assuming I could also set the group title and description with an @apiDefine entry

I tried the above but with an @apiParam and I get the warning that my field is not defined in the URL of @api and it is above the Query Parameter(s) table.

I'm open to other approaches if there is another feature already available that would help.

Another idea I had, but think would require more effort to implement (maybe via a plugin or markdown extension) would be if there was a way to apply a custom label on a field. This would also require support to allow the user to provide their own CSS definitions.

@NicolasCARPi
Copy link
Contributor

Hello,

Please take into account that there is nobody available to maintain this library. See #1436.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants