What a form may set on a draft
GET
/api/drafts/vocabulary
const url = 'https://forge.example.com/api/drafts/vocabulary';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://forge.example.com/api/drafts/vocabulary \ --header 'Authorization: Bearer <token>'For the model (model) and each kind of element (zone, appliance, node, flow, threat, control), the fields a form offers: each with its name (a dotted place, such as risk.likelihood), its type (text, long, choice, choices, flag, number, date, lines, or what it refers to: zone, node, appliances, auth, targets, controls), whether it is required, and, for a choice, the values the engine accepts. Read from the pinned engine’s own schema, so it changes with the engine. authTypes are the built-in ways a connection authenticates.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
default
Section titled “default”A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.
Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}