adminapi/schema/wwws.json
2024-11-11 00:33:30 +01:00

117 lines
2.7 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "nationchains/schema/www",
"title": "www",
"description": "A space web available for a domaine, with accessright",
"type": "object",
"properties": {
"website": {
"description": "Folder name into a tribeId/www/",
"title": "web space",
"type": "string"
},
"dns": {
"title": "domaine name list to access",
"description": "Add in nginx nameserver local website.tribeId LAN domaine.tld",
"type": "array",
"items": {
"type": "string"
}
},
"apxtri": {
"title": "apxtri value to use in a front end project",
"type": "object",
"properties": {
"headers": {
"type": "object",
"properties": {
"xtrkversion": {
"type": "integer",
"default": 1
},
"xalias": {
"type": "string",
"default": "anonymous"
},
"xapp": {
"type": "string",
"comment": "the website"
},
"xdays": {
"type": "integer",
"default": 0
},
"xhash": {
"type": "string",
"default": "anonymous"
},
"xlang": {
"type": "string",
"default": "en"
},
"xprofils": {
"type": "string",
"default": "anonymous"
},
"xtribe": {
"type": "string",
"comment": "the tribeid"
},
"xuuid": {
"type": "string",
"default": 0
}
},
"required": [
"xtrkversion",
"xalias",
"xapp",
"xdays",
"xhash",
"xlang",
"xprofils",
"xtribe",
"xuuid"
]
}
},
"required": [
"headers"
]
},
"pages": {
"title": "a page name of a front end",
"description": "Those obejct allow to run a request like https://dns[]/api/adminapi/localdb(anonymous|)/tribeId/website/pagesname/version to return some contexte items are collection of object items @todo explain list of possible",
"type": "object"
}
},
"required": [
"tribeId",
"website",
"status"
],
"apxid": "website",
"apxuniquekey": [
"website"
],
"apxidx": [
{
"name": "lst_website",
"type": "array",
"keyval": "website"
}
],
"apxaccessrights": {
"owner": {
"D": [],
"R": [],
"U": []
},
"mayor": {
"C": []
},
"person": {
"R": []
}
}
}