TestAnalysisComments
Create comment¶
Attempt to create a test analysis comment
Request¶
Request body¶
Attribute | Type | Required | Notes |
---|---|---|---|
testAnalysisId | integer | yes | defines the test analysis id |
userId | object | yes | object containing id (integer) that defines the user id |
description | string | yes | the description of a comment |
Request body example¶
import requests
import json
url = "https://example.juno.one/testanalysiscomments"
payload = json.dumps({
"testAnalysisId": 1,
"userId": {
"id": 1
},
"description": "description"
})
headers = {
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
val client = OkHttpClient()
val mediaType = "application/json".toMediaType()
val body = "{\n \"testAnalysisId\": 1,\n \"userId\": {\n \"id\": 1\n },\n \"description\": \"description\"\n}".toRequestBody(mediaType)
val request = Request.Builder()
.url("https://example.juno.one/testanalysiscomments")
.post(body)
.addHeader("Content-Type", "application/json")
.build()
val response = client.newCall(request).execute()
Response¶
Successful response of create test analysis comment has the status 200
with following response body:
{
"id": 1,
"userId": {
"id": 2,
"firstname": "test",
"lastname": "test",
"email": "test@juno.one",
"avatar": "9",
"deleted": false
},
"description": "description",
"deleted": false,
"deleted_at": "2023-03-16T10:17:04.000Z",
"created_at": "2023-03-16T10:17:04.000Z",
"updated_at": "2023-03-16T10:17:04.000Z"
}
400
Bad Request
404
Not found
406
Insufficient permision
412
Precondition failed
Update comment¶
Attempt to update a test analysis comment specified by an id
Request¶
Parameters¶
Parameter | Path/Query | Type | Required | Notes |
---|---|---|---|---|
id | path | integer | yes | defines the id of a test analysis comment |
Request body¶
Attribute | Type | Required | Notes |
---|---|---|---|
description | string | yes | a description of the comment |
Request body example¶
val client = OkHttpClient()
val mediaType = "application/json".toMediaType()
val body = "{\n\n \"description\": \"description\"\n}".toRequestBody(mediaType)
val request = Request.Builder()
.url("https://example.juno.one/testanalysiscomments")
.put(body)
.addHeader("Content-Type", "application/json")
.build()
val response = client.newCall(request).execute()
Response¶
Successful response of update test analysis comment has the status 200
with following response body:
{
"id": 1,
"userId": {
"id": 2,
"firstname": "test",
"lastname": "test",
"email": "test@juno.one",
"avatar": "9",
"deleted": false
},
"description": "description",
"deleted": false,
"deleted_at": "2023-03-16T10:17:04.000Z",
"created_at": "2023-03-16T10:17:04.000Z",
"updated_at": "2023-03-16T10:17:04.000Z"
}
400
Bad Request
404
Not found
406
Insufficient permision
412
Precondition failed
Delete comment¶
Attempt to delete a test analysis comment specified by an id
Request¶
Parameters¶
Parameter | Path/Query | Type | Required | Notes |
---|---|---|---|---|
id | path | integer | yes | defines the id of a comment |
Request body¶
This endpoint does not have a request body
Request body example¶
Response¶
Successful response of delete test analysis comment has the status 200
with no response body
404
Not found
406
Insufficient permision
Undelete comment¶
Attempt to undelete a test analysis comment specified by an id
Request¶
Parameters¶
Parameter | Path/Query | Type | Required | Notes |
---|---|---|---|---|
id | path | integer | yes | defines the id of a comment |
Request body¶
This endpoint does not have a request body
Request body example¶
Response¶
Successful response of undelete test analysis comment has the status 200
with following response body:
{
"id": 1,
"userId": {
"id": 2,
"firstname": "test",
"lastname": "test",
"email": "test@juno.one",
"avatar": "9",
"deleted": false
},
"description": "description",
"deleted": false,
"deleted_at": "2023-03-16T10:17:04.000Z",
"created_at": "2023-03-16T10:17:04.000Z",
"updated_at": "2023-03-16T10:17:04.000Z"
}
404
Not found
406
Insufficient permision