Add OpenAPI/Swagger spec for REST API #80

Closed
opened 2026-06-23 13:33:04 +00:00 by jmiller · 1 comment
Owner

Summary

Document the /api/v1/mokoog/tags REST API with an OpenAPI 3.0 specification.

Why

  • MokoOG's REST API is a unique competitive advantage — no other Joomla OG extension has one
  • External integrations (mobile apps, headless CMS, CI/CD) need API documentation
  • OpenAPI spec enables auto-generated client SDKs and Swagger UI

Endpoints to Document

  • GET /api/v1/mokoog/tags — List all tags (with filters: content_type, content_id, language, published)
  • GET /api/v1/mokoog/tags/{id} — Get single tag
  • POST /api/v1/mokoog/tags — Create tag
  • PATCH /api/v1/mokoog/tags/{id} — Update tag
  • DELETE /api/v1/mokoog/tags/{id} — Delete tag

Implementation

  • Create openapi.yaml in project root
  • Document request/response schemas, authentication (API token), error responses
  • Consider adding Swagger UI page in admin component
## Summary Document the `/api/v1/mokoog/tags` REST API with an OpenAPI 3.0 specification. ## Why - MokoOG's REST API is a unique competitive advantage — no other Joomla OG extension has one - External integrations (mobile apps, headless CMS, CI/CD) need API documentation - OpenAPI spec enables auto-generated client SDKs and Swagger UI ## Endpoints to Document - `GET /api/v1/mokoog/tags` — List all tags (with filters: content_type, content_id, language, published) - `GET /api/v1/mokoog/tags/{id}` — Get single tag - `POST /api/v1/mokoog/tags` — Create tag - `PATCH /api/v1/mokoog/tags/{id}` — Update tag - `DELETE /api/v1/mokoog/tags/{id}` — Delete tag ## Implementation - Create `openapi.yaml` in project root - Document request/response schemas, authentication (API token), error responses - Consider adding Swagger UI page in admin component
jmiller added this to the Code Quality & Testing milestone 2026-06-23 13:33:04 +00:00
jmiller added the documentation label 2026-06-23 13:33:04 +00:00
Author
Owner

Branch created: feature/80-add-openapi-swagger-spec-for-rest-api

git fetch origin
git checkout feature/80-add-openapi-swagger-spec-for-rest-api
Branch created: [`feature/80-add-openapi-swagger-spec-for-rest-api`](https://git.mokoconsulting.tech/MokoConsulting/MokoSuiteOpenGraph/src/branch/feature/80-add-openapi-swagger-spec-for-rest-api) ```bash git fetch origin git checkout feature/80-add-openapi-swagger-spec-for-rest-api ```
Sign in to join this conversation.
Priority Medium
Type Feature
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoSuiteOpenGraph#80