Tangram
语言
  • What is Tangram?
  • overview
    • Capabilities
    • Architecture
  • Install
    • Start with Kubernetes
  • quick start
    • Create a flow
    • Create a tool
  • Flow
    • Nodes
      • IF
      • SWITCH
      • Format
      • Count
      • Subflow
      • Conversion
      • Execution
      • Variable
      • Note
      • Error
      • Response
    • Datasources
      • Node
      • Form
      • Variable
      • Webhooks
      • Inputs(Subflow)
      • Base
  • triggers
    • Forms
      • Text
      • Textarea
      • Number
      • Date
      • Radio
      • Checkbox
      • Single Selection
      • Multi Selection
      • File
      • Title and Content
    • Webhooks
    • Crons
  • APP Development
    • template
    • info.json
    • core.py
    • test.py
    • Upload and Debugging
Powered by GitBook
On this page
  • Configurations
  • Actions
  1. APP Development

info.json

Configurations

Typically used to set the initialization configuration for SDK.

{
	"name": "jira",
	"libs": "jira",
	#pip package names, multiple please use ','.
	"configs": [{
				"uuid": "26460f75-cd51-42da-8c00-7ceb8b454add",
				"name": "server",
				"label": "云服务域名",
				"require": true,
				"category": "str",
				"description": "",
				"example": ""
			},
			{
				"uuid": "60423b73-54fe-4bb7-b266-d430a18455ab",
				"name": "email",
				"label": "邮箱",
				"require": false,
				"category": "str",
				"description": "JiraCloud版本需要填写",
				"example": ""
			},
			{
				"uuid": "e4c11429-0b43-43ef-b455-6892d2e3bed1",
				"name": "api_token",
				"label": "API_TOKEN",
				"require": true,
				"category": "str",
				"description": "",
				"example": ""
			}
		]
		...
}

Click "Assets" to manage app's configrations.

Click "Add" or "Edit" to show app's config form.

Platform will automatically parse and generate configuration forms and validations.

Actions

"Test" is the default action used to check the correctness of the application configuration.

{
	...
	"actions": [{
			"uuid": "b1c161e6-2cbd-4b79-aa8b-8cd6aecbe79d",
			"name": "test",
			"label": "测试",
			"description": "连通性测试",
			"parameters": [],
			"outputs": []
		},
		{
			"uuid": "311d17b2-3453-4291-9ee3-54b646b29728",
			"name": "get_projects",
			"label": "获取项目列表",
			"description": "",
			"parameters": [],
			"outputs": []
		},
		{
			"uuid": "f1d58bd3-08cc-4845-a376-9232f3165c44",
			"name": "get_project",
			"label": "获取项目详情",
			"description": "",
			"parameters": [{
				"name": "key",
				"label": "KEY",
				"require": true,
				"category": "str",
				"description": "",
				"example": ""
			}],
			"outputs": []
		}
	]
}

Platform will automatically parse and generate action forms and validations.

Select configurations and actions, input action parameters data, and debug app in web.

PrevioustemplateNextcore.py

Last updated 10 months ago