swagger-api / swagger-api/swagger-ui

Show request snippets code example without executing request?

Open
#9,288 1 comment 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
29k
Forks
9.3k
Avg merge
2d 23h
Merged PRs (30d)
25

Description

It would be nice to be able to view the CURL command and the request URL for a request without actually executing the request. Especially for POST requests, this would be very useful, as you may not want to execute the actual POST. The response data is not used in either of these sections.

I've looked through the source code for the components of Execute and Curl, but I don't see any way to reasonably implement this with the plugin API. Is this possible?

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 examining the Execute and Curl components and the plugin API to determine whether request URLs and cURL snippets can be generated without sending the request. Clarify the desired behavior for POST requests and how the existing response-independent sections should work. Done means users can view both snippets without executing the request, with coverage for the relevant UI behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.