Skip to content

Conversation

@cfahlgren1
Copy link
Contributor

@cfahlgren1 cfahlgren1 commented Sep 12, 2024

add api playground to docs

the playground doesn't support auth yet, but plan to add soon

preview of docs page below

Dataset Viewer API Playground

The API Playground is a space that allows you to make requests to the Dataset Viewer API and visualize the results in real-time. It's a great way to explore the capabilities of the API and test different queries.

Dataset API Playground

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@cfahlgren1 cfahlgren1 force-pushed the add-api-playground-to-docs branch from 023c8ff to 4378aa2 Compare September 12, 2024 00:58
@cfahlgren1 cfahlgren1 requested a review from lhoestq September 12, 2024 01:01
src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/datasets-server/datasets-api-playground.png"
alt="Dataset API Playground"
/>
</a>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the opening tag is missing

Copy link
Member

@julien-c julien-c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'd also (and maybe more so actually) link to it from https://huggingface.co/docs/hub/datasets-viewer

WDYT?


<div class="flex justify-center">
<img
src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/datasets-server/datasets-api-playground.png"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

potentially you can do a slightly more catchy visual like @enzostvs had done for the API playground: https://huggingface.co/docs/hub/api

(and you can embed it in other doc pages too with a more fun / simpler call to action "want to try out the API?")

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants