TB

REST API Guide

A Rails 8 + MySQL REST API, documented step by step in Mongolian.

A small Posts and Comments API built with Ruby on Rails 8 in API mode, MySQL 8.4 running in Docker and Swagger UI for documentation.

The README is a guide in Mongolian that follows a request from route to controller to database, with curl examples for every endpoint.

API

  • CRUD : JSON endpoints for posts and their comments.
  • Swagger : OpenAPI 3 docs with a live Swagger UI.
  • Docker : MySQL in a container for one-command setup.
client
Personal / teaching
role
Back-end development · Documentation
period
2026
status
Live
stack
Ruby 4Rails 8MySQLDockerOpenAPI
fig. 02
Posts and Comments endpoints
Posts and Comments endpoints
fig. 03
Trying POST /posts in Swagger
Trying POST /posts in Swagger