All pages
Powered by GitBook
1 of 7

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Themes APIs

Importing theme

Imports new theme from a zip file.

POST /themes/import/file

Imports new theme from the provided zip file into the local DB.

Request Body

Name
Type
Description

*

String

A zip file that contains the theme to be imported.

content:
            application/json:
              schema:
                $ref: "#/components/schemas/Theme"
content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"

Updating theme Configuration

Updates theme configuration.

PUT /themes/{themeId}

Updates theme configuration for the specified theme ID.

Path Parameters

Name
Type
Description

Request Body

Name
Type
Description

Deleting theme

Deletes the theme.

DELETE /themes/{themeId}

Deletes the theme with the provided theme ID.

Returning zip file containing themes

Returns a zip file containing the theme.

GET /themes/{themeId}/export/file

Returns a zip file containing the theme.

Path Parameters
Name
Type
Description

themeId*

String

Selected themeID

content:
            application/json:
              schema:
                type: boolean

content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
Path Parameters
Name
Type
Description

themeId*

String

Selected theme ID.

content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"

themeId*

String

Selected theme ID.

*

String

Object that contains theme configuration.

content:
            application/json:
              schema:
                $ref: "#/components/schemas/Theme"
content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"

Creating theme

Creates a new theme.

POST /themes

Creates a new theme.

Request Body

Name
Type
Description

*

String

Object that contains theme configuration.

content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"

Returning all themes

Return a list of all themes.

GET /themes

Return a list of all themes.

content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/Theme"

content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"