Available draft endpoints.
Returns list of available draft endpoints accessible by the user.
Responses
Response samples
- 200
[- {
- "endpointId": "string",
- "draftEndpointId": "string",
- "exampleId": "string",
- "type": "GET",
- "path": "string",
- "title": "string",
- "description": "string",
- "tags": [
- "string"
], - "code": "string",
- "declaration": "string",
- "language": "string",
- "termsOfService": "string",
- "author": "string",
- "version": "string",
- "enabled": true,
- "deploymentSettings": {
- "computeClass": "string",
- "computeCacheSizeMb": 0,
- "computeLimitSeconds": 0,
- "expireSeconds": 0,
- "format": "string"
}, - "security": {
- "visibility": true,
- "scopes": [
- "string"
]
}, - "contact": {
- "name": "string",
- "email": "user@example.com",
- "url": "string"
}, - "license": {
- "name": "string",
- "url": "string"
}, - "commitHash": "string",
- "repositoryId": "string",
- "branch": "string",
- "repositoryUrl": "string",
- "locality": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
Create a new draft endpoint.
Creates a draft endpoint.
Request Body schema: application/json
Local Endpoint definition
endpointId | string |
draftEndpointId | string |
exampleId | string |
type | string Default: "GET" |
path required | string (Path) ^\/([a-z0-9\-._~%!$&'()*+,;=:@\/]*) |
title required | string |
description required | string |
tags | Array of strings |
code | string |
declaration | string |
language | string |
termsOfService | string |
author | string |
version | string |
enabled | boolean |
object (EndpointDeploymentSettings) | |
object (EndpointSecurity) | |
object (EndpointContact) | |
object (EndpointLicense) |
Responses
Request samples
- Payload
{- "endpointId": "string",
- "draftEndpointId": "string",
- "exampleId": "string",
- "type": "GET",
- "path": "string",
- "title": "string",
- "description": "string",
- "tags": [
- "string"
], - "code": "string",
- "declaration": "string",
- "language": "string",
- "termsOfService": "string",
- "author": "string",
- "version": "string",
- "enabled": true,
- "deploymentSettings": {
- "computeClass": "string",
- "computeCacheSizeMb": 0,
- "computeLimitSeconds": 0,
- "expireSeconds": 0,
- "format": "string"
}, - "security": {
- "visibility": true,
- "scopes": [
- "string"
]
}, - "contact": {
- "name": "string",
- "email": "user@example.com",
- "url": "string"
}, - "license": {
- "name": "string",
- "url": "string"
}
}
Response samples
- 202
{- "endpointId": "string",
- "draftEndpointId": "string",
- "exampleId": "string",
- "type": "GET",
- "path": "string",
- "title": "string",
- "description": "string",
- "tags": [
- "string"
], - "code": "string",
- "declaration": "string",
- "language": "string",
- "termsOfService": "string",
- "author": "string",
- "version": "string",
- "enabled": true,
- "deploymentSettings": {
- "computeClass": "string",
- "computeCacheSizeMb": 0,
- "computeLimitSeconds": 0,
- "expireSeconds": 0,
- "format": "string"
}, - "security": {
- "visibility": true,
- "scopes": [
- "string"
]
}, - "contact": {
- "name": "string",
- "email": "user@example.com",
- "url": "string"
}, - "license": {
- "name": "string",
- "url": "string"
}, - "commitHash": "string",
- "repositoryId": "string",
- "branch": "string",
- "repositoryUrl": "string",
- "locality": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
Update a draft endpoint.
Updates a draft endpoint.
Request Body schema: application/json
Endpoint definition
endpointId | string |
draftEndpointId | string |
exampleId | string |
type | string Default: "GET" |
path required | string (Path) ^\/([a-z0-9\-._~%!$&'()*+,;=:@\/]*) |
title required | string |
description required | string |
tags | Array of strings |
code | string |
declaration | string |
language | string |
termsOfService | string |
author | string |
version | string |
enabled | boolean |
object (EndpointDeploymentSettings) | |
object (EndpointSecurity) | |
object (EndpointContact) | |
object (EndpointLicense) |
Responses
Request samples
- Payload
{- "endpointId": "string",
- "draftEndpointId": "string",
- "exampleId": "string",
- "type": "GET",
- "path": "string",
- "title": "string",
- "description": "string",
- "tags": [
- "string"
], - "code": "string",
- "declaration": "string",
- "language": "string",
- "termsOfService": "string",
- "author": "string",
- "version": "string",
- "enabled": true,
- "deploymentSettings": {
- "computeClass": "string",
- "computeCacheSizeMb": 0,
- "computeLimitSeconds": 0,
- "expireSeconds": 0,
- "format": "string"
}, - "security": {
- "visibility": true,
- "scopes": [
- "string"
]
}, - "contact": {
- "name": "string",
- "email": "user@example.com",
- "url": "string"
}, - "license": {
- "name": "string",
- "url": "string"
}
}
Response samples
- 202
{- "endpointId": "string",
- "draftEndpointId": "string",
- "exampleId": "string",
- "type": "GET",
- "path": "string",
- "title": "string",
- "description": "string",
- "tags": [
- "string"
], - "code": "string",
- "declaration": "string",
- "language": "string",
- "termsOfService": "string",
- "author": "string",
- "version": "string",
- "enabled": true,
- "deploymentSettings": {
- "computeClass": "string",
- "computeCacheSizeMb": 0,
- "computeLimitSeconds": 0,
- "expireSeconds": 0,
- "format": "string"
}, - "security": {
- "visibility": true,
- "scopes": [
- "string"
]
}, - "contact": {
- "name": "string",
- "email": "user@example.com",
- "url": "string"
}, - "license": {
- "name": "string",
- "url": "string"
}, - "commitHash": "string",
- "repositoryId": "string",
- "branch": "string",
- "repositoryUrl": "string",
- "locality": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
Schedules a draft endpoint for publishing.
Schedules a draft endpoint for publishing.
path Parameters
id required | string Draft Endpoint identifier. |
Responses
Response samples
- 202
{- "endpointId": "string",
- "draftEndpointId": "string",
- "type": "GET",
- "path": "string",
- "title": "string",
- "description": "string",
- "tags": [
- "string"
], - "commitHash": "string",
- "repositoryId": "string",
- "repositoryUrl": "string",
- "branch": "string",
- "locality": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "event": {
- "state": "PENDING",
- "timestamp": "2019-08-24T14:15:22Z",
- "eventId": 0,
- "eventType": "REFRESH_REPOSITORY"
}
}
Get details of the specified draft endpoint.
Returns draft endpoint metadata for the specified ID.
path Parameters
id required | string Draft Endpoint identifier. |
Responses
Response samples
- 200
{- "endpointId": "string",
- "draftEndpointId": "string",
- "exampleId": "string",
- "type": "GET",
- "path": "string",
- "title": "string",
- "description": "string",
- "tags": [
- "string"
], - "code": "string",
- "declaration": "string",
- "language": "string",
- "termsOfService": "string",
- "author": "string",
- "version": "string",
- "enabled": true,
- "deploymentSettings": {
- "computeClass": "string",
- "computeCacheSizeMb": 0,
- "computeLimitSeconds": 0,
- "expireSeconds": 0,
- "format": "string"
}, - "security": {
- "visibility": true,
- "scopes": [
- "string"
]
}, - "contact": {
- "name": "string",
- "email": "user@example.com",
- "url": "string"
}, - "license": {
- "name": "string",
- "url": "string"
}, - "commitHash": "string",
- "repositoryId": "string",
- "branch": "string",
- "repositoryUrl": "string",
- "locality": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
Available endpoints.
Returns list of available of endpoints accessible by the user with publicly visible information.
Responses
Response samples
- 200
[- {
- "endpointId": "string",
- "repositoryUrl": "string",
- "path": "string",
- "branch": "string",
- "title": "string",
- "description": "string",
- "locality": "string",
- "security": {
- "visibility": true,
- "scopes": [
- "string"
]
}, - "tags": [
- "string"
]
}
]
Get client code.
Returns client code used for calling the selected endpoint.
path Parameters
endpoint_id required | string Endpoint identifier. |
query Parameters
language | string Default: "curl" Enum: "curl" "java" "scala" "python" Language code, e.g. Java, Scala, Python, etc.. |
Responses
Response samples
- 200
{- "language": "curl",
- "code": "string"
}
Endpoint description.
Returns description of an endpoint.
path Parameters
endpoint_id required | string Endpoint identifier. |
header Parameters
Accept required | string defines if to show code or not |
Responses
Response samples
- 200
{- "endpointId": "string",
- "repositoryUrl": "string",
- "path": "string",
- "branch": "string",
- "title": "string",
- "description": "string",
- "locality": "string",
- "security": {
- "visibility": true,
- "scopes": [
- "string"
]
}, - "tags": [
- "string"
], - "termsOfService": "string",
- "author": "string",
- "contact": {
- "name": "string",
- "email": "user@example.com",
- "url": "string"
}, - "license": {
- "name": "string",
- "url": "string"
}, - "version": "string",
- "code": "string",
- "language": "string",
- "outputType": "string",
- "outputFormat": "csv",
- "parameters": [
- {
- "name": "string",
- "type": "string",
- "defaultValue": "string"
}
], - "type": "GET"
}
Repository events.
Returns events that occured during a repository import or refresh process.
path Parameters
repo_id required | string Repository identifier. |
query Parameters
start | integer The number of events to skip before starting to collect the results. |
limit | integer The numbers of events to return in total. |
Responses
Response samples
- 200
null
Repository event details.
Returns event details of the requested event.
path Parameters
repo_id required | string Repository event identifier. |
branch required | string Branch for which we are concerned |
repo_event_id required | string Repository event identifier. |
Responses
Response samples
- 200
{- "state": "PENDING",
- "timestamp": "2019-08-24T14:15:22Z",
- "eventId": 0,
- "eventType": "REFRESH_REPOSITORY",
- "errors": [
- "string"
]
}
Repository event detailed messages.
Returns detailed messages regarding an event during a repository import or refresh process.
path Parameters
repo_event_id required | string Repository event identifier. |
query Parameters
start | integer The number of details to skip before starting to collect the results. |
limit | integer The numbers of details to return in total. |
Responses
Response samples
- 200
null
Repository branch events.
Returns branch events for the inquired repository event id.
path Parameters
repo_event_id required | string Repository event identifier. |
query Parameters
start | integer The number of events to skip before starting to collect the results. |
limit | integer The numbers of events to return in total. |
Responses
Response samples
- 200
null
Repository branch event messages.
Returns branch messages for the inquired branch event id.
path Parameters
branch_event_id required | string Branch event identifier. |
query Parameters
start | integer The number of messages to skip before starting to collect the results. |
limit | integer The numbers of messages to return in total. |
Responses
Response samples
- 200
null
Repository branch file events.
Returns branch file events for the inquired branch event id.
path Parameters
branch_event_id required | string Branch event identifier. |
query Parameters
start | integer The number of messages to skip before starting to collect the results. |
limit | integer The numbers of messages to return in total. |
Responses
Response samples
- 200
null
Repository branch yaml event.
Returns the yaml event represented by the inquired yaml event id.
path Parameters
event_id required | string Yaml event identifier. |
Responses
Response samples
- 200
{- "messages": [
- {
- "timestamp": "2019-08-24T14:15:22Z",
- "level": "INFO",
- "message": "string",
- "positions": [
- {
- "begin": {
- "line": 0,
- "column": 0
}, - "end": {
- "line": 0,
- "column": 0
}
}
]
}
]
}
Repository branch rql event.
Returns the rql event represented by the inquired rql event id.
path Parameters
event_id required | string Rql event identifier. |
Responses
Response samples
- 200
{- "messages": [
- {
- "timestamp": "2019-08-24T14:15:22Z",
- "level": "INFO",
- "message": "string",
- "positions": [
- {
- "begin": {
- "line": 0,
- "column": 0
}, - "end": {
- "line": 0,
- "column": 0
}
}
]
}
]
}
Endpoint events.
Returns events of a given endpoint.
path Parameters
endpoint_id required | string Endpoint identifier. |
query Parameters
start | integer The number of events to skip before starting to collect the results. |
limit | integer The numbers of events to return in total. |
Responses
Response samples
- 200
null
Endpoint event messages.
Returns messages of a given endpoint event.
path Parameters
endpoint_event_id required | string Endpoint event identifier. |
query Parameters
start | integer The number of events to skip before starting to collect the results. |
limit | integer The numbers of events to return in total. |
Responses
Response samples
- 200
null
Edit permissions of a user.
Edit the permissions a user holds.
path Parameters
user_email required | string User identifier. |
Request Body schema: application/json
permissions payload
producerRoles | string |
consumerScopes | string |
Responses
Request samples
- Payload
{- "producerRoles": "string",
- "consumerScopes": "string"
}
add permissions for users.
an admin sets up users and permissions for his instance.
Request Body schema: application/json
user and permissions payload
producerRoles required | string |
consumerScopes required | string |
account required | string |
active required | boolean |
verifyAuth required | boolean |
Responses
Request samples
- Payload
[- {
- "producerRoles": "string",
- "consumerScopes": "string",
- "account": "string",
- "active": true,
- "verifyAuth": true
}
]
invites users and adds permissions.
an admin sets up users and permissions for this instance. Also sends invitation emails.
Request Body schema: application/json
user and permissions payload
producerRoles required | string |
consumerScopes required | string |
account required | string |
Responses
Request samples
- Payload
[- {
- "producerRoles": "string",
- "consumerScopes": "string",
- "account": "string"
}
]
Response samples
- 200
[- {
- "id": "string",
- "name": "string",
- "key": "string",
- "active": true,
- "created_at": "2019-08-24T14:15:22Z",
- "expires_at": "2019-08-24T14:15:22Z",
- "scopes": [
- {
- "id": "string",
- "value": "string",
- "count": 0
}
]
}
]
generate a new API key with the required properties
Request Body schema: application/json
API Key properties
expires_at required | string <date-time> |
name required | string |
active required | boolean |
Array of objects (ScopeMeta) |
Responses
Request samples
- Payload
{- "expires_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "active": true,
- "scopes": [
- {
- "id": "string",
- "value": "string",
- "count": 0
}
]
}
New repository security setting.
Create new security setting, aka user/role definition on this repository.
path Parameters
repo_id required | string Repository identifier. |
Request Body schema: application/json
security setting definition
userId required | string |
userName required | string |
repoManager required | boolean |
credentialsManager required | boolean |
developer required | boolean |
Responses
Request samples
- Payload
{- "userId": "string",
- "userName": "string",
- "repoManager": true,
- "credentialsManager": true,
- "developer": true
}
Response samples
- 201
{- "userId": "string",
- "userName": "string",
- "repoManager": true,
- "credentialsManager": true,
- "developer": true
}
Repository security setting of the given repository for the given user.
Get the security setting of the given repository for the given user.
path Parameters
repo_id required | string Repository identifier. |
user_id required | string User identified. |
Responses
Response samples
- 200
{- "userId": "string",
- "userName": "string",
- "repoManager": true,
- "credentialsManager": true,
- "developer": true
}
Repository security setting of the given repository for the given user.
Update the security setting of the given repository for the given user.
path Parameters
repo_id required | string Repository identifier. |
user_id required | string User identified. |
Request Body schema: application/json
userId required | string |
userName required | string |
repoManager required | boolean |
credentialsManager required | boolean |
developer required | boolean |
Responses
Request samples
- Payload
{- "userId": "string",
- "userName": "string",
- "repoManager": true,
- "credentialsManager": true,
- "developer": true
}
Response samples
- 201
{- "userId": "string",
- "userName": "string",
- "repoManager": true,
- "credentialsManager": true,
- "developer": true
}
Zoho credential initiation request.
Makes request to get verification url for zoho.
path Parameters
repo_id required | string Repository identifier. |
Request Body schema: application/json
credentials definition
credId | string |
name required | string |
region required | string |
object |
Responses
Request samples
- Payload
{- "credId": "string",
- "name": "string",
- "region": "string",
- "access": {
- "accessKey": "string",
- "accessSecret": "string"
}, - "repositoryType": "S3"
}
Response samples
- 200
{ }
New repository credentials.
Create new repository credentials
path Parameters
repo_id required | string Repository identifier. |
Request Body schema: application/json
credentials definition
credId | string |
name required | string |
region required | string |
object |
Responses
Request samples
- Payload
{- "credId": "string",
- "name": "string",
- "region": "string",
- "access": {
- "accessKey": "string",
- "accessSecret": "string"
}, - "repositoryType": "S3"
}
Response samples
- 201
{- "credId": "string",
- "name": "string",
- "region": "string",
- "access": {
- "accessKey": "string",
- "accessSecret": "string"
}, - "repositoryType": "S3"
}
Repository credentials with the given name.
Get repository credentials with the given name.
path Parameters
repo_id required | string Repository identifier. |
cred_id required | string Credentials identifier. |
Responses
Response samples
- 200
{- "credId": "string",
- "name": "string",
- "region": "string",
- "access": {
- "accessKey": "string",
- "accessSecret": "string"
}, - "repositoryType": "S3"
}
Repository credentials with the given name.
Update repository credentials with the given name.
path Parameters
repo_id required | string <base64> Repository identifier. |
cred_id required | string Credentials identifier. |
Request Body schema: application/json
user role definition
credId | string |
name required | string |
region required | string |
object |
Responses
Request samples
- Payload
{- "credId": "string",
- "name": "string",
- "region": "string",
- "access": {
- "accessKey": "string",
- "accessSecret": "string"
}, - "repositoryType": "S3"
}
Response samples
- 201
{- "credId": "string",
- "name": "string",
- "region": "string",
- "access": {
- "accessKey": "string",
- "accessSecret": "string"
}, - "repositoryType": "S3"
}
Response samples
- 200
[- {
- "endpointId": "string",
- "repositoryUrl": "string",
- "path": "string",
- "branch": "string",
- "title": "string",
- "description": "string",
- "locality": "string",
- "security": {
- "visibility": true,
- "scopes": [
- "string"
]
}, - "tags": [
- "string"
]
}
]
Endpoint description.
Returns description of an endpoint.
path Parameters
endpoint_id required | string Endpoint identifier. |
header Parameters
Accept required | string defines if to show code or not |
Responses
Response samples
- 200
{- "endpointId": "string",
- "repositoryUrl": "string",
- "path": "string",
- "branch": "string",
- "title": "string",
- "description": "string",
- "locality": "string",
- "security": {
- "visibility": true,
- "scopes": [
- "string"
]
}, - "tags": [
- "string"
], - "termsOfService": "string",
- "author": "string",
- "contact": {
- "name": "string",
- "email": "user@example.com",
- "url": "string"
}, - "license": {
- "name": "string",
- "url": "string"
}, - "version": "string",
- "code": "string",
- "language": "string",
- "outputType": "string",
- "outputFormat": "csv",
- "parameters": [
- {
- "name": "string",
- "type": "string",
- "defaultValue": "string"
}
], - "type": "GET"
}
Endpoint deployment settings.
Returns deployment settings of an endpoint.
path Parameters
endpoint_id required | string Endpoint identifier. |
Responses
Response samples
- 200
{- "computeClass": "string",
- "computeCacheSizeMb": 0,
- "computeLimitSeconds": 0,
- "expireSeconds": 0,
- "format": "string"
}
Execute test code.
Execute test code and returns results/errors.
Request Body schema: application/json
Program definition
required | RepositoryReferenceById (object) or RepositoryReferenceByUrl (object) (RepositoryReference) |
language required | string |
code required | string |
declaration | string |
object | |
computeClass required | string |
computeLimitSeconds | integer <int32> >= 1 |
outputFormat required | string (MediaTypes) Enum: "csv" "json" "hjson" "xml" "text" "binary" |
Responses
Request samples
- Payload
{- "repositoryReference": {
- "repoId": 0
}, - "language": "string",
- "code": "string",
- "declaration": "string",
- "arguments": {
- "property1": "string",
- "property2": "string"
}, - "computeClass": "string",
- "computeLimitSeconds": 1,
- "outputFormat": "csv"
}
Response samples
- 202
- 400
{- "id": "string"
}
Retrieves program logs.
Retrieves program logs.
path Parameters
programId required | string Program ID. |
query Parameters
level | string (LogLevel) Enum: "trace" "debug" "info" "warn" "error" Log level to filter. |
start | integer <int32> Default: 0 Index of first log to retrieve. Default: 0. |
limit | integer <int32> Default: 100 How many log entries to return. Default: 100. |
Responses
Response samples
- 200
{- "start": 0,
- "size": 0,
- "logs": [
- {
- "level": "trace",
- "message": "string"
}
]
}
Validate test code.
Validate test code and returns the validation result.
Request Body schema: application/json
Program definition
required | RepositoryReferenceById (object) or RepositoryReferenceByUrl (object) (RepositoryReference) |
language required | string |
code required | string |
Responses
Request samples
- Payload
{- "repositoryReference": {
- "repoId": 0
}, - "language": "string",
- "code": "string"
}
Response samples
- 200
- 400
{- "declarations": {
- "property1": [
- {
- "parameters": [
- {
- "identifier": "string",
- "tipe": "string",
- "required": true
}
], - "outputType": "string",
- "comment": "string"
}
], - "property2": [
- {
- "parameters": [
- {
- "identifier": "string",
- "tipe": "string",
- "required": true
}
], - "outputType": "string",
- "comment": "string"
}
]
}, - "tipe": "string",
- "comment": "string"
}
Does an LSP code validation request.
Sends the code to be validated, and returns a collection of errors
Request Body schema: application/json
Code and needed parameters,
required | object (LspRequestProperties) | ||||||||
|
Responses
Request samples
- Payload
{- "lspRequestProperties": {
- "repositoryReference": {
- "repoId": 0
}, - "language": "string",
- "code": "string",
- "options": {
- "property1": "string",
- "property2": "string"
}
}
}
Response samples
- 200
- 400
{- "declarations": {
- "property1": [
- {
- "parameters": [
- {
- "identifier": "string",
- "tipe": "string",
- "required": true
}
], - "outputType": "string",
- "comment": "string"
}
], - "property2": [
- {
- "parameters": [
- {
- "identifier": "string",
- "tipe": "string",
- "required": true
}
], - "outputType": "string",
- "comment": "string"
}
]
}, - "tipe": "string",
- "comment": "string"
}
Does an LSP formatting request.
Sends the code to be formatted, and receives the formatted code.
Request Body schema: application/json
Code and needed parameters,
required | object (LspRequestProperties) |
numberOfSpaces required | integer |
useTabs required | boolean |
Responses
Request samples
- Payload
{- "lspRequestProperties": {
- "repositoryReference": {
- "repoId": 0
}, - "language": "string",
- "code": "string",
- "options": {
- "property1": "string",
- "property2": "string"
}
}, - "numberOfSpaces": 0,
- "useTabs": true
}
Response samples
- 200
- 400
{- "formattedCode": "string",
- "errors": [
- {
- "message": "string",
- "positions": [
- {
- "begin": {
- "line": 0,
- "column": 0
}, - "end": {
- "line": 0,
- "column": 0
}
}
]
}
]
}
Does the autocompletion LSP request.
Given the code and the trigger type, it returns the list of possible autocompletion items.
Request Body schema: application/json
Code and the triggering character,
object (LspRequestProperties) | |
triggeringChar | string |
required | object (Position) |
Responses
Request samples
- Payload
{- "lspRequestProperties": {
- "repositoryReference": {
- "repoId": 0
}, - "language": "string",
- "code": "string",
- "options": {
- "property1": "string",
- "property2": "string"
}
}, - "triggeringChar": "string",
- "position": {
- "line": 0,
- "column": 0
}
}
Response samples
- 200
- 400
{- "autocompletionItems": [
- {
- "name": "string",
- "autoCompleteType": 0,
- "lspTooltip": {
- "name": "string",
- "description": "string",
- "info": "string",
- "warning": "string",
- "danger": "string"
}
}
], - "errors": [
- {
- "message": "string",
- "positions": [
- {
- "begin": {
- "line": 0,
- "column": 0
}, - "end": {
- "line": 0,
- "column": 0
}
}
]
}
]
}
Does the hover LSP request.
Given a code position, returns its type or documentation description.
Request Body schema: application/json
The position of the hover
required | object (LspRequestProperties) |
required | object (Position) |
Responses
Request samples
- Payload
{- "lspRequestProperties": {
- "repositoryReference": {
- "repoId": 0
}, - "language": "string",
- "code": "string",
- "options": {
- "property1": "string",
- "property2": "string"
}
}, - "position": {
- "line": 0,
- "column": 0
}
}
Response samples
- 200
- 400
{- "errors": [
- {
- "message": "string",
- "positions": [
- {
- "begin": {
- "line": 0,
- "column": 0
}, - "end": {
- "line": 0,
- "column": 0
}
}
]
}
], - "lspTooltip": {
- "name": "string",
- "description": "string",
- "info": "string",
- "warning": "string",
- "danger": "string"
}
}
Does the go to definition LSP request.
Given a code position, returns the position of its definition.
Request Body schema: application/json
The position of token which definition is to be found
required | object (LspRequestProperties) |
required | object (Position) |
Responses
Request samples
- Payload
{- "lspRequestProperties": {
- "repositoryReference": {
- "repoId": 0
}, - "language": "string",
- "code": "string",
- "options": {
- "property1": "string",
- "property2": "string"
}
}, - "position": {
- "line": 0,
- "column": 0
}
}
Response samples
- 200
- 400
{- "errors": [
- {
- "message": "string",
- "positions": [
- {
- "begin": {
- "line": 0,
- "column": 0
}, - "end": {
- "line": 0,
- "column": 0
}
}
]
}
], - "position": {
- "line": 0,
- "column": 0
}
}
Does the rename LSP request.
Given the position of the token to be renamed returns the list of positions where this token is used.
Request Body schema: application/json
A name - type pair
required | object (LspRequestProperties) |
required | object (Position) |
Responses
Request samples
- Payload
{- "lspRequestProperties": {
- "repositoryReference": {
- "repoId": 0
}, - "language": "string",
- "code": "string",
- "options": {
- "property1": "string",
- "property2": "string"
}
}, - "position": {
- "line": 0,
- "column": 0
}
}
Response samples
- 200
- 400
{- "errors": [
- {
- "message": "string",
- "positions": [
- {
- "begin": {
- "line": 0,
- "column": 0
}, - "end": {
- "line": 0,
- "column": 0
}
}
]
}
], - "positions": [
- {
- "line": 0,
- "column": 0
}
]
}