swagger-api / swagger-api/swagger-client

GET call is failing with "status": 415, "error": "Unsupported Media Type",

Open
#3,820 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
2.7k
Forks
765
Avg merge
1d 1h
Merged PRs (30d)
6

Description

How to call SwaggerClient.execute(), for a GET call with no body and content-type 'application/json',
what parameters to pass?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the SwaggerClient.execute() entry point and its usage documentation or source. Reproduce the GET request with no body and content-type application/json, then determine the required parameters and verify that the request no longer returns HTTP 415.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.