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

Incorrect Swagger API Docs Request & Response Formats #59

Open
holdonowgo opened this issue Jun 12, 2017 · 0 comments
Open

Incorrect Swagger API Docs Request & Response Formats #59

holdonowgo opened this issue Jun 12, 2017 · 0 comments
Assignees

Comments

@holdonowgo
Copy link
Owner

holdonowgo commented Jun 12, 2017

The request and/or response formats for some endpoints in the api are documented incorrectly. For instance POST /ingredients should be:

{
  "id": 0,
  "name": "string",
  "description": "string",
  "tags": [
    "string"
  ],
  "alternatives": [1, 3, 5],
  "image_url": "string"
}

instead of:

{
  "id": 0,
  "name": "string",
  "description": "string",
  "tags": [
    "string"
  ],
  "alternatives": [
    {
      "id": 0,
      "name": "string"
    }
  ],
  "image_url": "string"
}
@holdonowgo holdonowgo self-assigned this Jun 12, 2017
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