Skip to main content

OpenAPI / Swagger

Purpose

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

Current Status

ItemStatusNotes
Postman API documentationConfirmedTechnical team confirmed current API documentation exists in Postman
OpenAPI specification fileDraft AvailableGenerated from the documented Laravel route inventory
Swagger UIOptional / Pending DecisionCan be opened by importing the OpenAPI file into Swagger Editor or Swagger UI if a hosted UI is required
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 is required in addition to the confirmed Postman documentation.

Review Decision

DecisionStatus
OpenAPI draft existsConfirmed
Postman documentation existsConfirmed
Swagger UI hosted by MaqsafyOptional / Pending Decision
Final API contract approvedNeeds Technical Verification