Fetches Swagger/OpenAPI specs from OrderMesh API environments, bypassing CORS restrictions. Use this to retrieve live endpoint definitions for generating API calls.
Fetch Swagger Schema
GET
/api/proxy-schema?url={encoded_swagger_url}
Query Parameters:
url(string)required
Full URL to a Swagger/OpenAPI JSON spec. Must be from an allowed OrderMesh domain.
# Fetch order service schema from dev
GET /api/proxy-schema?url=https%3A%2F%2Fapi.dev.ordermesh.io%2Forder%2Fswagger%2Fv1%2Fswagger.json
# Fetch user service schema from prod
GET /api/proxy-schema?url=https%3A%2F%2Fapi.ordermesh.io%2Fuser%2Fswagger%2Fv1%2Fswagger.json
# Fetch catalog service schema from QA
GET /api/proxy-schema?url=https%3A%2F%2Fapi.qa.ordermesh.io%2Fcatalog%2Fswagger%2Fv1%2Fswagger.json
Return thumbnail instead of original (default: false)
random(boolean)
Generate random dimensions (default: false)
Examples:
GET /api/generate-image
GET /api/generate-image?width=1024&height=768
GET /api/generate-image?width=800&height=600&pattern=gradient&seed=12345
GET /api/generate-image?random=true&pattern=noise
Generate Image (Filename-based)
GET
/api/image/{filename}
Filename Formats:
Seed only
s{seed}.png — defaults to 800x600, geometric
Pattern only
p{pattern}.png — defaults to 800x600
Seed + pattern
s{seed}_p{pattern}.png — defaults to 800x600
Dimensions
{width}x{height}.png
Dimensions + seed
{width}x{height}x{seed}.png
Dimensions + pattern
{width}x{height}x{pattern}.png
Full
{width}x{height}x{seed}x{pattern}.png
Underscore format
h_{height}_w_{width}_s{seed}_p{pattern}.png
Examples:
GET /api/image/pgeometric.png
GET /api/image/s12345.png
GET /api/image/s12345_pgradient.png
GET /api/image/800x600.png
GET /api/image/1024x768x12345.png
GET /api/image/600x400xgeometric.png
GET /api/image/1024x768x12345xgradient.png
GET /api/image/h_768_w_1024_s12345_pgradient.png
Response
Content-Type: image/png
Returns a PNG image file that can be used directly in HTML, downloaded, or uploaded in tests.