PromptBase
PromptBase SelectGet Select
Close icon
General
Home
Marketplace
Create
Hire
Login
Chat
Sell
Explore

Prompt Details

Model
Chat - (gpt-5.6)
Token size
416
Example input
[Endpoint Architecture and Authentication Scheme]: POST /v1/payments/charges. Idempotent payment intent authorization endpoint for an enterprise payment processor. Authentication via Bearer token (API Secret Key) in Authorization header. Idempotency-Key string header required. [Request Parameters and Payload Schema]: JSON body: amount (integer, in smallest currency unit, min 50), currency (string, ISO 4217 3-letter code, lowercase), customer_id (string, UUIDv4), payment_method_id (string), capture (boolean, default true), metadata (object, key-value pairs). [Response Codes and Data Models]: 201 Created: returns Charge object (id, status enum 'authorized', 'captured', 'failed', amount, currency, created_at timestamp, transaction_fee integer). 400 Bad Request. 402 Payment Required (insufficient funds, card declined). [Rate Limiting and Error Handling Protocol]: Rate limit: 100 requests per minute per API key. Returns HTTP 429 when exceeded with standard Retry-After header. Error response payload includes error code, type, message, and decline_code if applicable.
Example output
### 1. Production-Ready OpenAPI 3.0 YAML Specification ```yaml openapi: 3.0.3 info: title: Payment Processing API version: 1.0.0 paths: /v1/payments/charges: post: summary: Create payment charge operationId: createCharge security: - BearerAuth: [] parameters: - name: Idempotency-Key in: header required: true schema: type: string description: Unique UUIDv4 key preventing duplicate charges. requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ChargeRequest' responses: '201': description: Charge successfully created and processed. content: application/json: schema: $ref: '#/components/schemas/Charge' '400': $ref: '#/components/responses/400BadRequest' '402': $ref: '#/components/responses/402PaymentRequired' '429': $ref: '#/components/responses/429RateLimited'
GPT

Openapi 30 Spec Api Doc Drafter

Add to Cart
PromptBase Select
Get this prompt + 9 more with Select$14 your first month, then $19/mo$14 first month, then $19/mo
View Select
Instant accessInstant access
Usage rightsCommercial use
Money-back guaranteeMoney‑back
By purchasing this prompt, you agree to our terms of service
GPT-5.6
Tested icon
Guide icon
4 examples icon
Free credits icon
Transform raw backend endpoints, payloads, and controller logic into production-ready OpenAPI 3.0 YAML specifications and developer documentation. Built for backend engineers, technical writers, and software architects seeking standardized Swagger docs without syntax errors. Generates complete schemas, response models, and endpoint usage guides.
...more
Added over 1 month ago
Report
Browse Marketplace