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

[Docs] Missing indication on required field in project-endpoint #23

Open
dev-slatto opened this issue Nov 25, 2020 · 2 comments
Open

[Docs] Missing indication on required field in project-endpoint #23

dev-slatto opened this issue Nov 25, 2020 · 2 comments

Comments

@dev-slatto
Copy link

When making a post-request to the /project-endpoint the docs says that only first- and lastname of the project manager is required. When executing the request you get a missing parameter error saying that the endpoint requires projectmanager.id.

Docs should be updated...

@tlxtellef
Copy link
Member

Most of our endpoints don't support creating / updating resources other than the top level one. What you are seeing is how an Employee looks like in general. The proper solution is to specify the ID of the Employee that is the project manager for the given project. Other values included other than the ID is in most cases ignored when it comes to referring to other resources.

@dev-slatto
Copy link
Author

Not sure if I understand your answer. We're not creating or updating any resources, simply just passing a reference to who's the project manager for a new project. My point is that your swagger documentation doesn't describe it. See the attached screenshot...
Screenshot

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