Content
View differences
Updated by Wieland Lindenthal over 1 year ago
### Steps to reproduce
_Please write down the steps to reproduce. Try to write down all necessary preconditions (what permissions do you have, are other users involved?). Example:_
1. Either look into the API yml files or the openapi json / yaml.
yaml.
2. /memberships POST has no parameters
### What is the buggy behavior?
You _You are unable to create memberships via API, because the API schema has no parameters on /memberships POST. POST._
If _If you use openapi-generator, creating memberships via API is not possible due to missing parameters, so createMembership() has no params as well. The only way is to use the raw API client and blindly post a JSON to create a membership. membership._
See _See also https://community.openproject.org/topics/16124?r=16124 https://community.openproject.org/topics/16124?r=16124_
### What is the expected behavior?
1. Define the correct schema to create memberships in the API schema
###
Even the latest dev version has no parameter on POST. See [https://github.com/opf/openproject/blob/dev/docs/api/apiv3/paths/memberships.yml#L126](https://github.com/opf/openproject/blob/dev/docs/api/apiv3/paths/memberships.yml#L126)
Affected are 12.x, 13.x and dev. Didn't check older versions.
You
If
See
### What is the expected behavior?
1. Define the correct schema to create memberships in the API schema
###