GIT Call
  • 14 Aug 2022
  • 5 Minutes to read
  • Contributors
  • Dark
    Light
  • PDF

GIT Call

  • Dark
    Light
  • PDF

Show Git Call node basic settings

Method for showing basic settings of a Git Call node.

postman Download our collection of Postman queries to see more examples of Corezoid API v2.

URL

https://api.corezoid.com/api/2/json/{API_LOGIN}/{TIMESTAMP}/{SIGNATURE}

Request Body

{
    "ops": [
        {
            "type": "get",
            "obj": "git_call",
            "obj_type": "function",
            "conv_id": {{PROCESS_ID}},
            "node_id": {{NODE_ID}},
            "version": 2
        }
    ]
}
Parameter Type Required Description Possible value
ops JSON Object + The list of operations to proceed via Corezoid API. A parameter keeping JSON objects with operations * The number is user-limited by RPS limit.
type string + A request type get
obj string + An object of the request git_call
obj_type string + Command type function
node_id number + Git Call node ID An ID of existing Git Call node
conv_id number + An ID of a Process that contains the Git Call node An ID of existing process with Git Call node
version number + Git Call node version 2

Responce Body

{
    "request_proc": "ok",
    "ops": [
        {
            "id": "",
            "proc": "ok",
            "obj": "git_call",
            "obj_type": "function",
            "version": 2,
            "lang": {{CODE_LANGUAGE}},
            "code": {{CODE}},
            "repo": {{REPOSITORY_URL}},
            "commit": {{COMMIT_ID}},
            "script": {{COMMAND}}
        }
    ]
}
Parameter Type Description Possible value
request_proc string The overall processing status of all transactions from the request ok, error
ops array The list of request results
id string Request ID empty
proc string The processing status of a specific operation ok, error
obj string An object of the request git_call
obj_type string Command type function
version number Git Call node version 2
lang string Code programming language java, js, python, golang, php
code string An executable code
repo string A path to the repository, code of which will be used in business processes
commit string Git commit to checkout before the build
script string Command to build a deployable entity

Modify Git Call node

Method for modifying settings of a Git Call node.

URL

https://api.corezoid.com/api/2/json/{API_LOGIN}/{TIMESTAMP}/{SIGNATURE}

Request Body

{
    "ops": [
        {
            "type": "modify",
            "obj": "node",
            "obj_type": 0,
            "obj_id": {{NODE_ID}},
            "conv_id": {{PROCESS_ID}},
            "title": {{TITLE}},
            "description": {{DESCRIPTION}},
            "logics": [
                {
                    "type": "git_call",
                    "version": 2,
                    "err_node_id": {{ESCALATION_NODE_ID}},
                    "lang": {{CODE_LANGUAGE}},
                    "code": {{CODE}},
                    "repo": {{REPOSITORY_URL}},
                    "commit": {{COMMIT_ID}},
                    "script": {{COMMAND}}
                }
            ],
            "version": {{VERSION}}
        }
    ]
}
Parameter Type Required Description Possible value
ops JSON Object + The list of operations to proceed via Corezoid API. A parameter keeping JSON objects with operations * The number is user-limited by RPS limit.
type string + A request type modify
obj string + An object of the request node
obj_type number + Node type 0
obj_id number + Git Call node ID An ID of existing Git Call node
conv_id number + Process ID An ID of existing process with Git Call node
title string - Node name Any valid string
description string - Node description Any valid string
logics array + An array with node settings
logics[].type string + Node type git_call
logics[].version number + Git Call node version 2
logics[].err_node_id string + Escalation node ID
logics[].lang string + Code programming language java, js, python, golang, php
logics[].code string + An executable code
logics[].repo string + A path to the repository, code of which will be used in business logic
logics[].commit string + Git commit to checkout before the build
logics[].script string + Command to build a deployable entity
version number + ID of the process version with this modification 43534325454

Responce Body

{
    "request_proc": "ok",
    "ops": [
        {
            "id": "",
            "proc": "ok",
            "conv_id": {{PROCESS_ID}},
            "obj_id": {{NODE_ID}}
        }
    ]
}
Parameter Type Description Possible value
request_proc string The overall processing status of all transactions from the request ok, error
ops array List of the request results
id string Request ID empty
proc string Processing status of a specific operation ok, error
conv_id number Process ID
obj_id string Git Call node ID

Build Git Call node

Method for building a Git Call node

URL

https://api.corezoid.com/api/2/json/{API_LOGIN}/{TIMESTAMP}/{SIGNATURE}

Request Body

{
    "ops": [
        {
            "type": "create",
            "obj": "git_call",
            "obj_type": "function_build",
            "version": 2,
            "conv_id": {{PROCESS_ID}},
            "node_id": {{NODE_ID}},
            "obj_id": {{BUILD_ID}},
            "lang": {{CODE_LANGUAGE}},
            "code": {{CODE}},
            "repo": {{REPOSITORY_URL}},
            "commit": {{COMMIT_ID}},
            "script": {{COMMAND}}
        }
    ]
}
Parameter Type Required Description Possible value
ops JSON Object + The list of operations to proceed via Corezoid API. A parameter keeping JSON objects with operations * The number is user-limited by RPS limit.
type string + A request type create
obj string + An object of the request git_call
obj_type string + Command type function_build
node_id number + Git Call node ID An ID of existing Git Call node
obj_id string + Build ID
conv_id number + ID of a Process containing the Git Call node An ID of existing process with the Git Call node
type string + Node type git_call
version number + Git Call node version 2
lang string + Code programming language java, js, python, golang, php
code string + An executable code
repo string + A path to the repository, code of which will be used in business logic
commit string + Git commit to checkout before the build
script string + Command to build a deployable entity

Responce Body

{
    "request_proc": "ok",
    "ops": [
        {
            "id": "",
            "obj": "git_call",
            "obj_type": "function_build",
            "obj_id": {{BUILD_ID}},
            "version": 2,
            "proc": "ok"
        }
    ]
}
Parameter Type Description Possible value
request_proc string The overall processing status of all transactions from the request ok, error
ops array The list of request results
id string Request ID empty
obj string An object of the request git_call
obj_type string Command type function_build
obj_id number Build ID
version number Git Call node version 2
proc string Processing status of a specific operation ok, error

Get Build Git Call node status

Method for getting a status of a Git Call node build

URL

https://api.corezoid.com/api/2/json/{API_LOGIN}/{TIMESTAMP}/{SIGNATURE}

Request Body

{
    "ops": [
        {
            "type": "get",
            "obj": "git_call",
            "obj_type": "function_build",
            "version": 2,
            "conv_id": {{PROCESS_ID}},
            "node_id": {{NODE_ID}},
            "obj_id": {{BUILD_ID}}
        }
    ]
}
Parameter Type Required Description Possible value
ops JSON Object + The list of operations to proceed via Corezoid API. A parameter keeping JSON objects with operations * The number is user-limited by RPS limit.
type string + Request type get
obj string + An object of the request git_call
obj_type string + Command type function_build
version number + Git Call node version 2
conv_id number + ID of a process containing the Git Call node An ID of an existing process with the Git Call node
node_id number + Git Call node ID An ID of an existing Git Call node
obj_id string + Build ID

Responce Body

{
    "request_proc": "ok",
    "ops": [
        {
            "id": "",
            "proc": "ok",
            "obj": "git_call",
            "obj_type": "function_build",
            "obj_id": {{BUILD_ID}},
            "version": 2,
            "build_status": {{BUILD_STATUS}}
        }
    ]
}
Parameter Type Description Possible value
request_proc string The overall processing status of all transactions from the request ok, error
ops array The list of request results
id string Request ID empty
proc string Processing status of a specific operation ok, error
obj string An object of the request git_call
obj_type string Command type function_build
obj_id number Build ID
version number Git Call node version 2
build_status string Current Build status new, in progress, done, error

What's Next