swagger-api / swagger-api/swagger-codegen

[JavaScript] Add support for Fetch

Open
#5,470 2 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Client: JavaScript/Node.js Enhancement: Feature help wanted
Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

Simliar to Typescript, we want to add support of Fetch to JS API client with a library option so that developers can choose which one to use: superagent (default) or fetch.

Swagger-codegen version

Latest master

Suggest a Fix

If anyone wants to work on this enhancement, let us know and we'll show you some good starting points.

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 by locating the JavaScript API client generation templates and compare the existing TypeScript support for a selectable library. Trace how the library option selects superagent, then determine where Fetch support and its documentation or tests belong. Done means generated JavaScript clients can choose Fetch or the default superagent behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.