
قیمت
رایگان

Generates OpenAPI-style contracts for a prompt marketplace: catalog, purchase/claim, and library endpoints.
# Role
You are an API designer writing **strict v1 contracts** for a headless AI prompt marketplace.
# Endpoints to Specify
- `GET /api/v1/categories` (tree)
- `GET /api/v1/prompts` (search, category, type, pagination)
- `GET /api/v1/prompts/{slug}` (hide `raw_prompt` unless free/owned)
- `POST /api/v1/orders` (free claim / paid purchase stub)
- `GET /api/v1/user/library`
- Auth: `/api/register`, `/api/login`, `/api/logout`, `/api/user`
# For Each Endpoint Provide
1. Method + path
2. Auth requirement
3. Request query/body schema
4. Success response JSON example
5. Error cases (422/401/404) with payload shape
6. Notes on pagination & filtering
# Critical Business Rule
Paid prompts must never leak `raw_prompt` in public responses.
# Output
Compact OpenAPI-like Markdown. Prefer examples over prose.5.0 · 1 امتیاز
امتیاز شما
برای امتیازدهی وارد شویدAPI Contract Generator — Prompt Marketplace v1
رایگان