API Documentation (Redoc) for Web Application

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.
Development and maintenance of all types of websites:
Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Our competencies:
Development stages
Latest works
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1161
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1041
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    822
  • image_crm_chasseurs_493_0.webp
    CRM development for Chasseurs
    847
  • image_website-sbh_0.png
    Website development for SBH Partners
    999
  • image_website-_0.png
    Website development for Red Pear
    451

API Documentation (Redoc) for Web Application

Redoc is an OpenAPI renderer with a three-panel layout: navigation on the left, description in the center, and request/response examples on the right. Unlike Swagger UI, Redoc does not provide an interactive "Try it out" form, but it generates readable public documentation even for large APIs with hundreds of endpoints.

Embedding Redoc

The simplest approach is static HTML with CDN:

<!DOCTYPE html>
<html>
  <head>
    <title>API Documentation</title>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
  </head>
  <body>
    <redoc spec-url='/api/openapi.yaml'></redoc>
    <script src="https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js"></script>
  </body>
</html>

For production, download the bundle and serve locally. CDN creates external network dependency.

Self-hosted via npm

npm install redoc

Integration with Next.js (static route /docs):

// app/docs/page.tsx
import { RedocStandalone } from 'redoc';

export default function DocsPage() {
  return (
    <RedocStandalone
      specUrl="/api/openapi.json"
      options={{
        nativeScrollbars: true,
        theme: {
          colors: { primary: { main: '#2563eb' } },
          typography: { fontFamily: 'Inter, sans-serif' },
        },
        hideDownloadButton: false,
        expandDefaultServerVariables: true,
      }}
    />
  );
}

Configuration via x-tagGroups

Redoc supports tag grouping through OpenAPI extension, displaying them as sections in the left menu:

info:
  title: MyApp API

x-tagGroups:
  - name: Users
    tags: [Users, Auth, Sessions]
  - name: Content
    tags: [Articles, Comments, Tags]
  - name: Payments
    tags: [Orders, Payments, Refunds]

tags:
  - name: Articles
    description: |
      Operations with publications.

      ## Article Lifecycle

      `draft` → `review` → `published` → `archived`

Tag descriptions support full Markdown — you can add diagrams, tables, links.

x-codeSamples — Code Examples in Multiple Languages

paths:
  /articles:
    get:
      x-codeSamples:
        - lang: cURL
          source: |
            curl -X GET https://api.example.com/v1/articles \
              -H 'Authorization: Bearer TOKEN'
        - lang: JavaScript
          source: |
            const res = await fetch('/api/v1/articles', {
              headers: { Authorization: `Bearer ${token}` }
            });
        - lang: PHP
          source: |
            $response = Http::withToken($token)->get('/api/v1/articles');

Redoc displays a language switcher in the right panel.

Generating openapi.json in Laravel

// routes/api.php — endpoint returns the specification
Route::get('/openapi.json', function () {
    return response()->json(
        \Dedoc\Scramble\Scramble::getDefaultDocumentGenerator()->generate()
    );
})->middleware('throttle:60,1');

Alternative — export static file in CI:

php artisan scramble:export --output=public/openapi.json

Redoc CLI for Static Generation

npx @redocly/cli build-docs openapi.yaml --output docs/index.html

The resulting index.html (~3 MB with inline bundle) deploys to any static hosting (S3, GitHub Pages, Cloudflare Pages). Does not require a server.

Redoc vs Swagger UI — When to Choose

Criterion Redoc Swagger UI
Visual Quality High Medium
"Try it Out" Browser No (view only) Yes
Bundle Size ~2.5 MB ~1.5 MB
Tag Grouping x-tagGroups No
x-codeSamples Support Yes No
Integration into Next.js/React npm package npm package

Optimal strategy: public documentation with Redoc, internal sandbox for developers with Swagger UI on a separate route /api/swagger.

Timeline

Setting up Redoc with custom theme, tag grouping, and code examples: 0.5–1 day. CI integration (auto-export openapi.json, deployment to Cloudflare Pages): 1 additional day.