Skip to content

feat: add /access to API reference#63

Open
kheiner wants to merge 1 commit intodirectus:mainfrom
kheiner:fix/#40-missing-access-api-reference
Open

feat: add /access to API reference#63
kheiner wants to merge 1 commit intodirectus:mainfrom
kheiner:fix/#40-missing-access-api-reference

Conversation

@kheiner
Copy link
Copy Markdown
Contributor

@kheiner kheiner commented Apr 23, 2026

Adds Schema reference as well as the applicable CRUD options.

NOTE: I opted to clarify in filenames that they reference accessRules rather than trying to figure out how to pluralize accesses in a way that doesn't hurt my brain or stress my ability to verbalize it.

Fixes #40

I did not see any SDK commands for access so I noted that the SDK is not supported.
I don't know GraphQL well enough to see if it's not there, but I couldn't find it anywhere so I also noted it as not supported.


I wanted to call attention to the following items as possible issues unrelated to this commit but discovered in the process

  • scripts in package.json build and dev use Scalar presentation that does not match formatting/styling at directus.io/docs/api See Improve Contributor Experience: local dev environment && contributions.md ideas #64
  • After Research, I found an explanation/clarity I was looking for... for posterity: Scalar output has %E2%80%8E appended to POST requests for create commands when using HTTP HTTP/1.1
    • create access rule & (previous example) create a policy Screenshot 2026-04-23 at 09 12 37Screenshot 2026-04-23 at 09 12 19
    • It's difficult (impossible)? to detect in git diff Screenshot 2026-04-23 at 09 27 37 Troubleshooting in another editor I was able to see the hidden characters: Screenshot 2026-04-23 at 09 59 45

Maybe the fix is to have a contribution guideline that explains it? I'm not the only one who was befuddled (see #46)

Adds Schema reference as well as the applicable CRUD options.

NOTE: I opted to clarify in filenames that they reference accessRules
rather than trying to figure out how to pluralize accesses in a way that
makes sense.

Fixes directus#40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing /access API reference

1 participant