Spaces:
Sleeping
Sleeping
|
Download README.md from ysinghc/pastebin-api: direct link, hf CLI and curl.
- Browser
- Download file 477 Bytes
-
https://huggingface.co/spaces/ysinghc/pastebin-api/resolve/main/README.md
- Command line
-
hf download hf://spaces/ysinghc/pastebin-api/README.md
-
curl -L -o README.md https://huggingface.co/spaces/ysinghc/pastebin-api/resolve/main/README.md
477 Bytes
metadata
title: Pastebin API
emoji: 📋
colorFrom: blue
colorTo: green
sdk: docker
pinned: false
Pastebin API
A simple pastebin service with rate limiting.
Features
- Create pastes with customizable TTL (10m, 1h).
- Retrieve pastes by ID.
- Rate limiting to prevent abuse.
- Health check endpoint.
API Endpoints
GET /: Welcome message.POST /paste: Create a new paste.GET /paste/{id}: Retrieve a paste.GET /health: Check service and Redis status.