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

Creating / Updating Users via the REST API Fails #486

Open
SoarinFerret opened this issue Aug 30, 2022 · 1 comment
Open

Creating / Updating Users via the REST API Fails #486

SoarinFerret opened this issue Aug 30, 2022 · 1 comment

Comments

@SoarinFerret
Copy link

Hello! The organization I work with is in the process of evaluating several Staff / Employee Directory options and we stumbled upon yours. We have a use case where we would like to be able to pull in our Staff information from a server on our intranet, so we don't have to maintain our staff in multiple locations.

I am trying to use the provided REST API in this plugin to update and/or create new entries, but I am receiving the following errors:

# Create Entry Failure Code - POST /cn-api/v1/entry
{"code":"invalid-method","message":"Method 'WP_REST_Controller::create_item_permissions_check' not implemented. Must be overridden in subclass.","data":{"status":405}}
# Update Entry Failure Code - PUT /cn-api/v1/entry/1
{"code":"invalid-method","message":"Method 'WP_REST_Controller::update_item_permissions_check' not implemented. Must be overridden in subclass.","data":{"status":405}}

Looking through your source code /includes/api/endpoints/class.cn-rest-entry-controller.php looks to be the place where this code will live, but looks like those methods, while referenced, have not been built.

Is this functionality you intend to provide at some point? Would you be open to a pull request with this functionality? Or am I missing something and this functionality already exists and I am failing to appropriately call it?

Thanks for your help in advance!

@shazahm1
Copy link
Member

shazahm1 commented Sep 1, 2022

RE: Is this functionality you intend to provide at some point?

Yes, at some point. Right now, the read-only REST API access has been okay.

RE: Would you be open to a pull request with this functionality?

Yes, I would. Thanks for any time you might take to develop this feature.

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

No branches or pull requests

2 participants