MMOframework
Pourquoi l'IA Playground Bibliothèques Développeurs Agence
FR EN
Créer un projet en direct
Index

mmo-api-entities

1 symbole · générée le 30 Nov 2026

element

mmo-api-entities

mmo-api-entities.jhs:1

The entities of an API (the Entities tab of mmo-api-console): the collections of its data api, and for one its fields -- type, list of values, reference to another entity (opened in place for an embedded one), required, read-only, description --, the operations that read and write it, and an example from the data the account sees.

<mmo-api-entities schemas diagram></mmo-api-entities>
Étend
CustomShadowElement
The diagram of the data model (`diagram`, an SVG) shows above the list, when the page gives one. The console gives it its OpenAPI document: `load`. Asking to open an operation dispatches `operation` (`detail: {method, path, values}`).

Index

schemasthe JSON schemas of the entities (mmo.core's data/schemas.json)
diagraman SVG of the data model, shown first (optional)
init()
h(tag, attrs, children)
t(text, vars)
short(name)
load(document) asyncShow the entities of a document.
drawList()Draw the list of the collections, as the search keeps them.
drawHome()The tab before a collection is chosen: the diagram, if any.
classOf(collection) async
open(collection) asyncShow a collection: its fields, its operations, an example.
operations(collection)
fields(schema, depth)
type(property, depth)
values(values, name)

Attributs2

Méthodes13

h(tag, attrs, children)

mmo-api-entities.jhs:31
h(tag, attrs = null, ...children)
tag
attrs = null
...children
retourneElementMMO.core.dom.createElement: a string child is a text node

t(text, vars)

mmo-api-entities.jhs:36
t(text, vars = {})
text
vars = {}
retournestring$text translated, its {name} replaced by $vars'

load(document)

asyncmmo-api-entities.jhs:52

Show the entities of a document.

async load(document)
documentObjectthe OpenAPI document (its data api's collection parameter lists the collections)
retournePromise<void>

classOf(collection)

asyncmmo-api-entities.jhs:94
async classOf(collection)
collectionstring
retournePromise<?string>the class of its entities (the list answers it in meta.data.class)

open(collection)

asyncmmo-api-entities.jhs:115

Show a collection: its fields, its operations, an example.

async open(collection)
collectionstring
retournePromise<void>

operations(collection)

mmo-api-entities.jhs:140
operations(collection)
collection
retourneElementthe operations of the data api on $collection, each opened in the Operations tab

fields(schema, depth)

mmo-api-entities.jhs:155
fields(schema, depth = 0)
schemaObjectan entity's JSON schema
depth = 0numberhow deep an embedded entity is shown in place
retourneElementits fields, as a table: in their order, the hidden left out

type(property, depth)

mmo-api-entities.jhs:175
type(property, depth)
propertyObjecta field's schema
depthnumber
retourneNodeits type in words: a list of values shown, a reference linked (an embedded entity opened in place)

values(values, name)

mmo-api-entities.jhs:200
values(values, name = null)
values
name = null
retourneElementa list of values: the first ones, the rest folded