tags: - compose summary: compose distro parameters: - name: action in: path description: type: string enum: ['iso', 'repo', 'package'] required: true - name: data in: body required: true description: json data passed to the API schema: $ref: '#/definitions/compose_parameter' responses: 408: description: Task timeout 404: description: Wrong action 400: description: Missing parameters 201: description: Task created schema: $ref: '#/definitions/compose_response' definitions: compose_response: properties: code: type: integer msg: type: string task_id: type: integer repo_url: type: string example: code: 201 msg: "Created" task_id: 30 repo_url: "http://build.openanolis.cn/kojifiles/output/nightly/xxxx" compose_parameter: required: - compose_branch properties: build: type: string tag: type: string repo: type: string arch: type: string compose_branch: type: string compose_file: type: string example: build: kernel-4.19.91-27.an8 tag: dist-an8-plus repo: Plus arch: x86_64 aarch64 compose_branch: a8 compose_file: anolis.conf