This repository has been archived on 2023-02-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
flamenco-manager/docs/source/api_server/index.rst
T

3.4 KiB
Raw Blame History

Server API

Project

[GET] /projects

Display the full list of a projects. By default, inactive projects are not included. Pagination will come in the future.

GET /projects HTTP/1.1

Response

Property

Type

Description

id

integer

The id of a project. Required

HTTP/1.1 200 OK
Vary: Accept
Content-Type: text/javascript

{
  12: {
    "name": "Caminandes",
    "description": "One Llama"
  },
  11: {
    "name": "Project Gooseberry",
    "description": "One Berry"
  },

}

[GET] /projects/:id

View details regarding a single project.

GET /projects/1 HTTP/1.1

Request

Property

Type

Description

id

integer

The id of a project

Response

Property

Type

Description

id

integer

The id of a project

is_active

boolean

Flag to display if the project is active

name

string

The name of a project

path_linux

string

path_osx

string

path_server

string

path_win

string

render_path_linux

string

render_path_osx

string

render_path_server

string

render_path_win

string

HTTP/1.1 200 OK
Vary: Accept
Content-Type: text/javascript

{
  "id": 1,
  "is_active": true,
  "name": "Encoded cube",
  "path_linux": "",
  "path_osx": "/Users/fsiddi/pampa/shots",
  "path_server": "/Users/fsiddi/pampa/shots",
  "path_win": "",
  "render_path_linux": "",
  "render_path_osx": "/Volumes/PROJECTS/storage/render",
  "render_path_server": "/Volumes/PROJECTS/storage/render",
  "render_path_win": ""
}

Worker

[GET] /workers

View workers list (JSON) => 200

[POST] /workers

Modify status of a worker => 204

  • /workers/{int : id}

  • GET : returns workers informations (JSON) => 200

Manager

  • /managers

  • GET : returns managers list (JSON) => 200

  • POST : connect a new manager and returns its uuid (JSON) => 200

  • /managers/{uuid}

  • PATCH : update total_workers and returns it (JSON) => 200

Setting

  • /settings

  • GET : returns settings list (JSON) => 200

  • POST : updates or creates settings => 204

  • /settings/render

  • GET : returns render_settings paths (JSON) => 200

FileBrowser

  • /browse

  • GET : returns browse of projects root folder (JSON) => 200

  • /browse/{path}

  • GET : returns browse of path (JSON) => 200

Job

  • /jobs

  • GET : returns jobs list (JSON) => 200

  • POST : creates new job and returns it => 201

  • /jobs/{job_id}

  • GET : returns job (JSON) => 200 (or 404 if not found)

  • PUT : sends command to job (stop, start, reset, etc…) and returns the job => 200 (or 400 if bad command)

  • DELETE : delete job and relative tasks => 204

  • /jobs/delete

  • POST : delete jobs from id list given in args => 204

Task

  • GET : returns tasks list (JSON) => 200

  • POST : update task status according to id => 204