Decentraland (Independent Publisher) (#1448)
* Decentraland (Independent Publisher) Initial Commit * Decentraland (Independent Publisher) Updated Readme
This commit is contained in:
Родитель
1f8c6593fd
Коммит
7c80d20be2
|
@ -0,0 +1,286 @@
|
|||
{
|
||||
"swagger": "2.0",
|
||||
"info": {
|
||||
"version": "2.0.0",
|
||||
"title": "Decentraland",
|
||||
"description": "A Power Platform Connector for connecting to the Decentraland API to search for metaverse LAND parcels,",
|
||||
"contact": {
|
||||
"name": "Roy Paar",
|
||||
"email": "roypaar@microsoft.com"
|
||||
}
|
||||
},
|
||||
"host": "api.decentraland.org",
|
||||
"basePath": "/v2",
|
||||
"schemes": [
|
||||
"https"
|
||||
],
|
||||
"consumes": [],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"paths": {
|
||||
"/districts": {
|
||||
"get": {
|
||||
"summary": "Get Districts",
|
||||
"description": "A listing of districts in Decentraland",
|
||||
"operationId": "GetDistricts",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "The operation was successful.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/GetDistrictsResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/parcels/{x}/{y}": {
|
||||
"get": {
|
||||
"summary": "Get Parcel Details",
|
||||
"description": "The details of a specific parcel in Decentraland",
|
||||
"operationId": "GetParcelDetails",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "x",
|
||||
"required": true,
|
||||
"in": "path",
|
||||
"type": "string",
|
||||
"x-ms-summary": "The X coordinate of the LAND parcel",
|
||||
"description": "The X coordinate of the LAND parcel",
|
||||
"x-ms-url-encoding": "single"
|
||||
},
|
||||
{
|
||||
"name": "y",
|
||||
"required": true,
|
||||
"in": "path",
|
||||
"type": "string",
|
||||
"x-ms-summary": "The Y coordinate of the LAND parcel",
|
||||
"description": "The Y coordinate of the LAND parcel",
|
||||
"x-ms-url-encoding": "single"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "The operation was successful.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/GetParcelDetailsResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/parcels/{x}/{y}/map.png": {
|
||||
"get": {
|
||||
"summary": "Get Parcel Map",
|
||||
"description": "A map of parcels in Decentraland",
|
||||
"operationId": "GetParcelMap",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "x",
|
||||
"required": true,
|
||||
"in": "path",
|
||||
"type": "string",
|
||||
"x-ms-summary": "The X coordinate of the LAND parcel",
|
||||
"description": "The X coordinate of the LAND parcel",
|
||||
"x-ms-url-encoding": "single"
|
||||
},
|
||||
{
|
||||
"name": "y",
|
||||
"required": true,
|
||||
"in": "path",
|
||||
"type": "string",
|
||||
"x-ms-summary": "The Y coordinate of the LAND parcel",
|
||||
"description": "The Y coordinate of the LAND parcel",
|
||||
"x-ms-url-encoding": "single"
|
||||
},
|
||||
{
|
||||
"name": "width",
|
||||
"required": true,
|
||||
"in": "query",
|
||||
"type": "integer",
|
||||
"default": 500,
|
||||
"x-ms-summary": "The width of the map returned between 32 and 2048",
|
||||
"description": "The width of the map returned between 32 and 2048"
|
||||
},
|
||||
{
|
||||
"name": "height",
|
||||
"required": true,
|
||||
"in": "query",
|
||||
"type": "integer",
|
||||
"default": 500,
|
||||
"x-ms-summary": "The height of the map returned between 32 and 2048",
|
||||
"description": "The height of the map returned between 32 and 2048"
|
||||
},
|
||||
{
|
||||
"name": "size",
|
||||
"required": true,
|
||||
"in": "query",
|
||||
"type": "integer",
|
||||
"default": 10,
|
||||
"x-ms-summary": "Size of each parcel btwn 5 and 40 i.e. 10 will render each parcel as 10x10 px",
|
||||
"description": "The size of each parcel between 5 and 40 i.e. 10 will render each parcel as 10x10 pixels"
|
||||
},
|
||||
{
|
||||
"name": "publication",
|
||||
"required": true,
|
||||
"in": "query",
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"x-ms-summary": "If true parcels that are on sale are highlighted",
|
||||
"description": "If true parcels that are on sale are highlighted"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "The operation was successful.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/GetParcelMapResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/tiles": {
|
||||
"get": {
|
||||
"summary": "Get Id",
|
||||
"description": "A blockchain Id of a parcel in Decentraland",
|
||||
"operationId": "GetId",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "x1",
|
||||
"required": true,
|
||||
"in": "query",
|
||||
"type": "string",
|
||||
"x-ms-summary": "The X coordinate of the LAND parcel",
|
||||
"description": "The X coordinate of the LAND parcel"
|
||||
},
|
||||
{
|
||||
"name": "x2",
|
||||
"required": true,
|
||||
"in": "query",
|
||||
"type": "string",
|
||||
"x-ms-summary": "The X coordinate of the LAND parcel",
|
||||
"description": "The X coordinate of the LAND parcel"
|
||||
},
|
||||
{
|
||||
"name": "y1",
|
||||
"required": true,
|
||||
"in": "query",
|
||||
"type": "string",
|
||||
"x-ms-summary": "The Y coordinate of the LAND parcel",
|
||||
"description": "The Y coordinate of the LAND parcel"
|
||||
},
|
||||
{
|
||||
"name": "y2",
|
||||
"required": true,
|
||||
"in": "query",
|
||||
"type": "string",
|
||||
"x-ms-summary": "The Y coordinate of the LAND parcel",
|
||||
"description": "The Y coordinate of the LAND parcel"
|
||||
},
|
||||
{
|
||||
"name": "include",
|
||||
"required": true,
|
||||
"in": "query",
|
||||
"type": "string",
|
||||
"default": "tokenId",
|
||||
"x-ms-summary": "Setting to tokenId will return the blockchain Id",
|
||||
"description": "Setting to tokenId will return the blockchain Id"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "The operation was successful.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/GetTilesResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
"GetDistrictsResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"statusDetails": {
|
||||
"$ref": "#/definitions/statusDetails"
|
||||
}
|
||||
}
|
||||
},
|
||||
"GetTilesResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"statusDetails": {
|
||||
"$ref": "#/definitions/statusDetails"
|
||||
}
|
||||
}
|
||||
},
|
||||
"GetParcelMapResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"statusDetails": {
|
||||
"$ref": "#/definitions/statusDetails"
|
||||
}
|
||||
}
|
||||
},
|
||||
"GetParcelDetailsResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"statusDetails": {
|
||||
"$ref": "#/definitions/statusDetails"
|
||||
}
|
||||
}
|
||||
},
|
||||
"statusDetails": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"success": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"statusCode": {
|
||||
"type": "string"
|
||||
},
|
||||
"messages": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/messages"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"messages": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": {},
|
||||
"responses": {},
|
||||
"securityDefinitions": {},
|
||||
"security": [],
|
||||
"tags": [],
|
||||
"x-ms-connector-metadata": [
|
||||
{
|
||||
"propertyName": "Website",
|
||||
"propertyValue": "https://decentraland.org"
|
||||
},
|
||||
{
|
||||
"propertyName": "Privacy policy",
|
||||
"propertyValue": "https://decentraland.org/legal"
|
||||
},
|
||||
{
|
||||
"propertyName": "Categories",
|
||||
"propertyValue": "Lifestyle and Entertainment"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"properties": {
|
||||
"connectionParameters": {},
|
||||
"iconBrandColor": "#da3b01",
|
||||
"capabilities": [],
|
||||
"publisher": "Roy Paar",
|
||||
"stackOwner": "Decentraland"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
# Decentraland
|
||||
The Decentraland platform is a metaverse where people can create avatars, purchase virtual LAND parcels, buy and sell NFTs, and participate in the Decentraland DAO. This connector allows a user to pull LAND parcel data into their app, flow, or report.
|
||||
|
||||
## Publisher: Roy Paar
|
||||
|
||||
## Prerequisites
|
||||
None.
|
||||
|
||||
## Obtaining Credentials
|
||||
An API Key is not required to use this connector.
|
||||
|
||||
## Supported Operations
|
||||
### Get Districts
|
||||
Get a list of all districts within Decentraland. Returns all parcels within each district with x, y coordinates.
|
||||
|
||||
### Get Parcel Details
|
||||
Get the details of a particular parcel by location. Enter x, y coordinates between -150 and 150. Returns description, image url, external url, contract id, and Ethereum blockchain Id.
|
||||
|
||||
### Get Parcel Map
|
||||
Get a map of Genesis City centered on a particular parcel by x, y coordinates between -150 and 150. Enter width and height between 32 and 2048 (pixels). Enter size of each parcel between 5 and 40 i.e. 10 will render each parcel as 10x10 pixels. Returns a .png file.
|
||||
|
||||
### Get Id
|
||||
Get the Ethereum blockchain Id of a particular parcel by x, y coordinates. Enter X coordinate for x1 and x2 values, enter Y coordinate for y1 and y2 values. Enter "tokenId" for include value.
|
||||
|
||||
## API Documentation
|
||||
https://docs.decentraland.org/market/api/
|
||||
|
||||
## Known Issues and Limitations
|
||||
None.
|
Загрузка…
Ссылка в новой задаче