REST - noetl/noetl GitHub Wiki

все запросы возвращают статус 200
если path содержит только flow-template-name или пустой то работаем в root директории
создать template-flow
templates/create?path=derictory1.directory2.flow-template-name
request
{
   "config": "json-string-config"
}
responce
{
  "success": "true || false",
  "error": "error-string"
}

templates/update?path=derictory1.directory2.flow-template-name
request
{
   "config": "json-string-config"
}
responce
{
  "success": "true || false",
  "error": "error-string"
}

templates/createDirectory?path=derictory1.directory2
request
{
   "name": "directory-create-name"
}
responce
{
  "success": "true || false",
  "error": "error-string"
}
если name это директория то удаляем рекурсивно все что внутри
а если name это flow то удаляем конкретно его
templates/rm?path=derictory1.directory2
request
{
   "name": "directory || flow-template-name"
}
responce
{
  "success": "true || false",
  "error": "error-string" 
// 1 такого flow || директории не найдено
// 2 
}
templates/validate/yaml||json
request
{
   "value": "config string"
}
responce
{
  "success": "true || false",
  "error": "error-string" 
// номер строки и причина не валидного синтаксиса
}