Skip to main content

OpenAPI / Swagger

Purpose

This page documents the current OpenAPI / Swagger status for the Maqsafy backend APIs.

Current Status

ItemStatusNotes
OpenAPI specification fileDraft AvailableGenerated from the documented Laravel route inventory
Swagger UIPlannedCan be opened by importing the OpenAPI file into Swagger Editor or Swagger UI
Runtime route validationNeeds Technical VerificationValidate against php artisan route:list when the backend can run under the compatible PHP version
Request / response schemasPartialCommon schemas are documented; endpoint-specific payloads need backend review
Authentication schemeDraft AvailableBearer token scheme documented based on protected API behavior

OpenAPI File

The draft specification is available here:

Download OpenAPI YAML

How To Review In Swagger

  1. Open Swagger Editor or Swagger UI.
  2. Import the openapi.yaml file from this documentation site.
  3. Validate paths, methods, authentication, request bodies, responses, and error codes with the backend team.
  4. Replace placeholder or generic schemas with confirmed backend payloads.

Included Endpoint Areas

AreaStatus
AuthenticationDraft Available
User profileDraft Available
StudentsDraft Available
OrdersDraft Available
ProductsDraft Available
Supplier stores and supplier ordersDraft Available
Wallet searchDraft Available
Payments / Apple PayDraft Available
NotificationsDraft Available
Public content and contact requestsDraft Available

Validation Requirements

Before this OpenAPI file is marked as final, the technical team should confirm:

  • The real API base URL and version prefix.
  • All protected routes and middleware.
  • Exact request body fields.
  • Exact response payloads.
  • Error response format.
  • Idempotency behavior for payment-related endpoints.
  • Whether a hosted Swagger UI already exists or should be deployed.

Review Decision

DecisionStatus
OpenAPI draft existsConfirmed
Swagger UI hosted by MaqsafyNeeds Technical Verification
Final API contract approvedNeeds Technical Verification