This repository is a collection of Byreal API documentation. It is designed as an entry point for developers and integrators to quickly find each service's API spec, request/response examples, and usage notes.
- Router Service: router.md
- Open the service doc from the list above.
- Follow endpoint/request/response definitions in each file.
- Keep this README updated when new service docs are added.
When adding a new service document:
- Create a new Markdown file in the repository root (for example:
order.md). - Add the link in
README.mdunderService Documentation. - Use clear sections like
Overview,Endpoint,Request, andResponsefor consistency.
Our API is fully documented using the Swagger/OpenAPI specification. You can explore and test the APIs using the provided swagger.json file.
Please download the swagger.json file from the project repository or the link provided:
swagger.json
This file contains all the API definitions, including endpoints, request parameters, and response formats.
Swagger provides a visual interface to browse, understand, and test the APIs.
- Open Swagger Editor.
- Click File → Import File.
- Select the downloaded
swagger.json. - The editor will load all API endpoints with descriptions, parameters, and response examples.
- You can explore and test the APIs directly in the browser.
- Download the Swagger UI static files.
- Place
swagger.jsonin thedistdirectory. - Edit
index.htmlto point to your local JSON file:
url: "swagger.json",- Open
index.htmlin your browser to view and interact with the APIs.
You can also import swagger.json into Postman for testing.
- Open the Postman application.
- Click File → Import → Upload Files.
- Select the downloaded
swagger.json. - Postman will generate a collection with all API endpoints, grouped by path and HTTP method.
- You can select an API, fill in the request parameters, and send the request for testing.
Tip: If authentication is required (e.g., API Key, Bearer Token), configure it under Authorization in Postman before testing.
- API Grouping: APIs are organized by modules for easier navigation.
- Request Examples: Each endpoint includes sample requests and responses.
- Testing: APIs can be tested directly in Swagger UI or Postman, provided the backend service is running and accessible.
- Export: The API definitions can be exported in JSON/YAML format for SDK generation or further development.