Skip to content

[Feature]: Provide 1-click 'cURL' and 'JavaScript Fetch' snippet modal for API entries #27

Closed

Description

@divyanshujethi

Feature Name / Concept

Quick API Code Snippet Generator

Area of Impact

Search & Filtering Engine

Problem or Opportunity

When exploring Free APIs on DevShelf, developers want to test whether an endpoint works immediately from their terminal or browser console without reading external documentation first.

Proposed Solution & Technical Details

  • For items with type === 'api', add a small >_ cURL code button next to "Website".
  • Clicking opens a micro-modal or tooltip containing ready-to-run curl -s <url> and fetch("<url>") snippets.
  • Includes a 1-click "Copy Code" button using our clipboard utility.

Are you interested in implementing this?

Yes, I would love to open a PR for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions