Chuyển đến nội dung chính
Dùng các file OpenAPI khi generate client, validate payload hoặc đưa context API cho AI tools.

Specification files

FileMục đích
/openapi.oms.en.jsonREST API reference tiếng Anh dùng cho English docs
/openapi.oms.vi.jsonREST API reference tiếng Việt dùng cho Vietnamese docs
OMS REST API reference hiện có 48 HTTP operations.

Dùng với AI tools

Đưa OpenAPI file cho model kèm instruction này:
Build against the Vero OMS OpenAPI spec.
Use the operation's method and path exactly.
Use Bearer authentication for protected endpoints.
Validate all path, query, and body fields against the schema.
Treat response schemas as authoritative for payload shape and field meanings.
Handle documented error responses.

Checklist cho client

  1. Tìm operation theo method hoặc path.
  2. Đọc toàn bộ path, query, header và body parameters.
  3. Build request từ typed fields; tránh tự nối string nếu có structured client.
  4. Parse success response theo schema đã document.
  5. Parse error response defensive vì error payload có thể khác nhau theo điểm fail.