From 5df1e8adc72bddb5892470629b6354d43eb9b011 Mon Sep 17 00:00:00 2001 From: Lean Mendoza Date: Wed, 28 Aug 2024 07:51:04 -0300 Subject: [PATCH] feat: add map property to about configurations (#157) --- .../components/examples/global/200-about.json | 20 +++++- openapi/components/schemas/global/about.yaml | 67 +++++++++++++++++++ 2 files changed, 86 insertions(+), 1 deletion(-) diff --git a/openapi/components/examples/global/200-about.json b/openapi/components/examples/global/200-about.json index 620dfb0..6f14516 100644 --- a/openapi/components/examples/global/200-about.json +++ b/openapi/components/examples/global/200-about.json @@ -2,7 +2,25 @@ "value": { "healthy": true, "configurations": { - "realmName": "zeus" + "realmName": "zeus", + "map": { + "minimapEnabled": true, + "sizes": [ + { "left": -150, "top": 150, "right": 150, "bottom": -150 }, + { "left": 62, "top": 158, "right": 162, "bottom": 151 }, + { "left": 151, "top": 150, "right": 163, "bottom": 59 } + ], + "satelliteView": { + "version": "v1", + "baseUrl": "https://genesis.city/map/latest", + "suffixUrl": ".jpg", + "topLeftOffset": { "x": -2, "y": -6 } + }, + "parcelView": { + "version": "v1", + "imageUrl": "https://api.decentraland.org/v1/minimap.png" + } + } }, "content": { "healthy": true, diff --git a/openapi/components/schemas/global/about.yaml b/openapi/components/schemas/global/about.yaml index a226fdc..ec16672 100644 --- a/openapi/components/schemas/global/about.yaml +++ b/openapi/components/schemas/global/about.yaml @@ -30,6 +30,7 @@ properties: items: type: string minimap: + deprecated: true type: object required: - enabled @@ -40,6 +41,72 @@ properties: type: string estateImage: type: string + map: + type: object + required: + - sizes + - minimapEnabled + properties: + minimapEnabled: + type: boolean + sizes: + type: array + items: + type: object + properties: + top: + type: number + left: + type: number + bottom: + type: number + right: + type: number + parcelView: + type: object + required: + - version + properties: + version: + type: string + imageUrl: + type: string + satelliteView: + type: object + required: + - version + properties: + version: + type: string + baseUrl: + type: string + suffixUrl: + type: string + topLeftOffset: + type: object + properties: + x: + type: number + y: + type: number + thumbnailView: + type: object + required: + - version + properties: + version: + type: string + baseUrl: + type: string + suffixUrl: + type: string + topLeftOffset: + type: object + properties: + x: + type: number + y: + type: number skybox: type: object properties: