Skip to content

Endpoints

Guide, proposals, assets, icons, gallery, screens, renders, exports, checks and tokens.

Applies to EngineCloud
View as Markdown
On this page
  1. Guide and tokens
  2. Proposals
  3. Assets and icons
  4. Gallery and screens
  5. Renders, exports and checks
  6. Repository and tokens

Every path below starts with /projects/{project}.

Guide and tokens

Method and pathDoes
GET /guide?version=The guide in words and its values, at a version (default: the latest)
GET /guide/versionsEvery version, who approved it and when
GET /tokens?format=json|cssThe tokens, as tokens.json or tokens.css

Proposals

Method and pathDoes
GET /proposals, POST /proposalsList; open one { kind, reason, changes } → 202 while renders are made
GET /proposals/{id}The proposal, its before-and-after pictures and its check results
POST /proposals/{id}/approve, POST /proposals/{id}/rejectApprove (opens the pull request) or reject with a reason; a person’s session only

Assets and icons

Method and pathDoes
POST /assetsUpload a logo (SVG, PNG), a font (WOFF2, TTF, OTF, with licence) or an image (multipart)
GET /assets, DELETE /assets/{id}List, remove
GET /icons, GET /icons/{name}The icon set and one icon
POST /iconsDraw an icon as a draft { name, idea }
Method and pathDoes
GET /galleryPieces, combinations and patterns
GET /screens, GET /screens/{case}Screen files and their status
PUT /screens/{case}Save a draft screen file
POST /screens/{case}/approveApprove; a person’s session only

Renders, exports and checks

Method and pathDoes
POST /renders{ target, themes, widths } → 202 { id }; pictures of a screen, piece or state
GET /renders/{id}Its status and image links (signed, valid 1 hour)
POST /exports{ kind: pdf | print | assets } → 202 { id }
GET /exports/{id}Its status and download link
POST /checks{ ref } (a branch or commit) → the findings of design check
GET /checks/{id}A past check

Repository and tokens

Method and pathDoes
GET /repository, PUT /repositoryThe linked repository in Sypnia Git or GitHub, and the branch Design writes to
GET|POST /api-tokens, DELETE /api-tokens/{id}API tokens with scopes read, write, admin

The OpenAPI document is in the engine’s repository, at spec/openapi.yaml.

  1. Guide and tokens
  2. Proposals
  3. Assets and icons
  4. Gallery and screens
  5. Renders, exports and checks
  6. Repository and tokens

    Search pages, sections and terms