swagger-api / swagger-api/swagger-codegen

exclude certain HTTP verbs from the generated client

Open
#9,442 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Suggest a fix/enhancement

I have the same suggestion. I do not think is possible yet: exclude certain HTTP methods. E.g. we need to include only GET EndPoints and exclude POST, PUT and PATCH.

Is this currently possible?

https://stackoverflow.com/questions/50440606/how-can-i-exclude-certain-operations-http-verbs-with-swagger-codegen

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 reviewing how the generated client is configured from the OpenAPI definition and where HTTP operations are selected for generation. Determine whether filtering by GET, POST, PUT, and PATCH is currently supported. Done means a documented, working way to generate only the requested HTTP verbs.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi
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.