Skip to content

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

@JoaoBrandao

Description

@JoaoBrandao

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions