Get all schemas containing category
GET/schemas/by/category/:categoryId
Get all schemas containing category
Request
Path Parameters
categoryId categoryIdrequired
The categoryId of the schema
Responses
- 200
- 404
- 500
- default
Schemas successfully retrieved
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
voteThresholdSettings string
Vote threshold
data stringrequired
type string
projectId projectId (string)required
Unique identifier for Project
createdAt date-time
Time representation of schema creation
description string
Possible values: <= 3000 characters
category object[]
Categories for schema
thumbnail string
Url for thumbnail
name stringrequired
state schemaState (string)
Possible values: [draft
, open
, closed
]
approvalMethod string
categoryId string
Unique identifier for Category
displayThumbnail string
displayInteractive string
id string
Unique identifier for Schema
tags string[]
[
{
"voteThresholdSettings": "",
"data": "{\"label\":\"facepaint\",\"children\":{\"albedo\":{\"label\":\"albedo\",...",
"type": "material",
"projectId": "p2Duhf5N6",
"createdAt": "2024-01-01T09:00:00.00Z",
"description": "This is restores is a legendary potion that restores health and speed",
"category": [
{
"C12JOqkBM": "Potion"
},
{
"C4DiVkafk": "Speed Potion"
}
],
"thumbnail": "https://file.playmakers.co/p34hfnB4f/djJryHfgW.jpg",
"name": "Wild Flower Potion",
"state": "draft",
"approvalMethod": "manual",
"categoryId": "C16w81Bvr0",
"displayThumbnail": "{\"type\":\"DisplayImagePostBlender\",\"width\":512,...",
"displayInteractive": "{\"type\":\"DisplayBabylon\",\"lighting\":\"default\",...",
"id": "s11EFBu2XW",
"tags": [
"potion",
"health",
"speed"
]
}
]
[
{
"displayThumbnail": "{\"type\":\"DisplayImagePostBlender\",\"width\":512,\"height\":512,\"url\":\"...",
"categoryId": "CrAR01Tz2",
"id": "s166n8qbe",
"tags": [
"armor",
"dragon",
"protection"
],
"displayInteractive": "{\"type\":\"DisplayBabylon\",\"lighting\":\"default\",\"model...",
"state": "draft",
"thumbnail": "https://file.playmakers.co/s166n8qbe/dragonscale_armor_thumbnail.jpg",
"name": "Dragonbone Armor",
"approvalMethod": "manual",
"type": "armor",
"data": "{\"label\":\"armor\",\"children\":{\"defensePower\":{\"label\":\"defensePower\",\"value\":120",
"category": {
"CjCXz2u61": "Dragon",
"CE2TTib4Y": "Armor",
"CsRabGrUR": "Fire"
},
"projectId": "pyDjppkvO",
"createdAt": "2024-01-11T16:00:00.00Z",
"description": "A set of armor crafted from the scales of a mighty dragon",
"voteThresholdSettings": "400"
},
{
"category": {
"CjCXz2u61": "Outift",
"CE2TTib4Y": "Mystery",
"CsRabGrUR": "Flight"
},
"projectId": "pyDjppkvO",
"createdAt": "2024-01-15T13:00:00.00Z",
"description": "A mystical robe that enhances the wearer's magical abilities",
"type": "armor",
"data": "{\"label\":\"armor\",\"children\":{\"defensePower\":{\"label\":\"defensePower\",\"value\":..",
"voteThresholdSettings": "100",
"id": "s210n8qbi",
"tags": [
"armor",
"robe",
"magic"
],
"displayInteractive": "{\"type\":\"DisplayBabylon\",\"lighting\":\"default\",\"model...",
"categoryId": "CrAR01Tz2",
"displayThumbnail": "{\"type\":\"DisplayImagePostBlender\",\"width\":512,\"height\":512,\"url\":\"...",
"approvalMethod": "automatic",
"state": "published",
"name": "Mystic Robe",
"thumbnail": "https://file.playmakers.co/s210n8qbi/mystic_robe_thumbnail.jpg"
}
]
NotFound
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "A mandatory item was not found"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Internal Server Error"
}
Unexpected error
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "An unexpected error occured"
}
Loading...