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

Problem in the example file(api.json) #843

Open
JoaoBrandao opened this issue Nov 20, 2020 · 0 comments
Open

Problem in the example file(api.json) #843

JoaoBrandao opened this issue Nov 20, 2020 · 0 comments

Comments

@JoaoBrandao
Copy link

Hi guys,

I was using your api.json provided in the section of Getting Started and I notice that there is an issue with the file.
The user is able to upload the file to the application in the organization but if you try to download the client java code (e.g.:Java RestTemplate Client Generator) you will get an error saying that some POST requests need a body.

ERROR: Post Resource Operations have to have a body defined. Resource 'membership_request' Operation 'POST /membership_requests', ERROR: Post Resource Operations have to have a body defined. Resource 'membership_request' Operation 'POST /membership_requests/:guid/accept', ERROR: Post Resource Operations have to have a body defined. Resource 'membership_request' Operation 'POST /membership_requests/:guid/decline', ERROR: Post Resource Operations have to have a body defined. Resource 'user' Operation 'POST /users/authenticate', ERROR: Post Resource Operations have to have a body defined. Resource 'user' Operation 'POST /users/authenticate_github'

I was able to fix the problem locally by adding the missing fields, in the file above is available the example with those missing fields.

api.json -> valid example

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

1 participant