One operation of an OpenAPI document, to try it (mmo-api-console): what it does, a form typed by its schemas -- a list of values is a select, a yes/no a switch, a number a number, a date a date --, its body as a form or as JSON, examples to start from, then the answer: its status in words, a tree of its JSON, its table, its raw text, its headers, the server's logs. Everything is text nodes: nothing of an answer is html.
A field typed by its schema: a select for a list of values (and for an optional yes/no: unset, yes, no), a checkbox for a required yes/no, a number with its bounds, a date, else a text with its exa…
Fill the form with an example: the operation's own (parameters, body, or value for the body), or one built from the schemas -- its example, its default, its first value, else a value of its type.
Draw the data api's builder again, for the collection the form names: an entity to change or delete picked among those of the collection; for a list, its sort, its fields and its filters, from the …
What makes this call again, to remember it (mmo-api-console's history): the operation, the values typed, the data api's query, the body if asked -- never a token, never an answer.
What a dry run would have done: the entities a commit would have created, changed or removed (each change shown), the mails, files, outside calls and jobs -- or that it changed nothing.
method, path, operation (its OpenAPI object), document (the whole document, for its $refs), headers (a function giving the headers of a call: who it is made as), curlToken (a function giving the token a copied curl shows, or null), confirm (a function asked before a call that writes), dryRun (whether the calls are dry runs), values (the parameters to fill in: {collection: 'orders'}), schemaOf (an async function giving the JSON schema of a collection's entities, for the data api's builder)
A field typed by its schema: a select for a list of values (and for an optional yes/no: unset, yes, no), a checkbox for a required yes/no, a number with its bounds, a date, else a text with its example as placeholder.
field(name, param, into, required, where)
name
string
param
Object
an OpenAPI parameter (schema, description, example), or a body property wrapped so
Fill the form with an example: the operation's own (parameters, body, or value for the body), or one built from the schemas -- its example, its default, its first value, else a value of its type.
Draw the data api's builder again, for the collection the form names: an entity to change or delete picked among those of the collection; for a list, its sort, its fields and its filters, from the collection's schema.
What makes this call again, to remember it (mmo-api-console's history): the operation, the values typed, the data api's query, the body if asked -- never a token, never an answer.
snapshot(withBody = false)
withBody = false
boolean
keep the body (a call saved by hand; the history keeps none: it may hold personal data)
What a dry run would have done: the entities a commit would have created, changed or removed (each change shown), the mails, files, outside calls and jobs -- or that it changed nothing.