decentraland / builder-server

Builder app backend
20 stars 17 forks source link

Add /projects/:projectId/about endpoint #688

Closed cazala closed 1 year ago

cazala commented 1 year ago

This endpoint should return a realm configuration like this one: https://worlds-content-server.decentraland.org/world/mgoldman.dcl.eth/about

The scenesUrn array should point to a url that looks like this: urn:decentraland:entity:{projectId}?=&baseUrl=https://builder-api.decentraland.org/v1/storage/preview/

Instead of a hash we should use the project id.

{
  "healthy": true,
  "acceptingUsers": true,
  "configurations": {
    "networkId": 1,
    "globalScenesUrn": [],
    "scenesUrn": [
      "urn:decentraland:entity:bafkreiax2bdetek7sygpruvmbmplnax7il5nga3jrgcusxmr3uhljyk5dq?=&baseUrl=https://worlds-content-server.decentraland.org/contents/"
    ],
    "minimap": {
      "enabled": false,
      "dataImage": "https://worlds-content-server.decentraland.org/contents/bafkreidduubi76bntd27dewz4cvextrfl3qyd4td6mtztuisxi26q64dnq",
      "estateImage": "https://worlds-content-server.decentraland.org/contents/bafkreidduubi76bntd27dewz4cvextrfl3qyd4td6mtztuisxi26q64dnq"
    },
    "skybox": {
      "textures": [
        "https://worlds-content-server.decentraland.org/contents/bafkreidduubi76bntd27dewz4cvextrfl3qyd4td6mtztuisxi26q64dnq"
      ]
    },
    "realmName": "mgoldman.dcl.eth"
  },
  "content": {
    "healthy": true,
    "publicUrl": "https://peer.decentraland.org/content"
  },
  "lambdas": {
    "healthy": true,
    "publicUrl": "https://peer.decentraland.org/lambdas"
  },
  "comms": {
    "healthy": true,
    "protocol": "v3",
    "fixedAdapter": "signed-login:https://worlds-content-server.decentraland.org/get-comms-adapter/world-prd-mgoldman.dcl.eth"
  }
}