Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REST API endpoint for guest authors #16

Closed
johnbillion opened this issue Nov 26, 2020 · 0 comments · Fixed by #36
Closed

REST API endpoint for guest authors #16

johnbillion opened this issue Nov 26, 2020 · 0 comments · Fixed by #36
Assignees

Comments

@johnbillion
Copy link
Member

Introduce a full CRUD endpoint in the REST API for guest authors.

This is needed because we're going to allow lower level users (eg. Authors) to create guest authors, and I don't want to mess about with the permissions of the /users endpoint, and using a new endpoint abstracts this away from user storage.

Mostly expects and exposes the same fields as the /users endpoint, except:

  • Email address should be optional, need to decide on strategy for populating users with a fake email address if one isn't provided, or whether allowing no email address works well
  • User login should be optional and will be generated if one isn't provided
  • role won't be required as the user will always have the guest author role
  • The capabilities required to read and write to this endpoint need to be filterable
  • Need to consider whether this endpoint will behave the same as the /users endpoint for non-authenticated requests, eg. by listing all guest authors that have published content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant