Open SeanLMcCullough opened 5 years ago
Sounds like a reasonable suggestion - thanks for the report, @SeanLMcCullough !
IMO, we should include this in one of the next releases.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We do this to keep the amount of open issues to a manageable minimum. In any case, thanks for taking an interest in this software and contributing by opening the issue in the first place!
Bug Report
Current Behavior When sending a POST request to the users API for creating a new user, relationships appear to be ignored. To set relationships on new users, a follow-up PATCH request has to be called to add the relationships.
Steps to Reproduce
A follow-up GET to /api/users/:id shows that no relationships have been set:
Expected Behavior The user should immediately have its relationships assigned to avoid additional client / API connector complexity in API call chaining for linking users to Groups, etc.
Environment
Additional Context I am unsure if this is intentional or not, though for ease of API integration, POST should be able to create relationships immediately rather than having to do a subsequent PATCH request.