Class: SpecForge::Documentation::Document::RequestBody

Inherits:
Object
  • Object
show all
Defined in:
lib/spec_forge/documentation/document/request_body.rb

Overview

Represents a request body example for an API operation

Contains the content type, data structure, and example content for a request body.

Examples:

JSON request body

RequestBody.new(
  name: "Create User",
  content_type: "application/json",
  type: "object",
  content: {name: "Example User", email: "user@example.com"}
)