Create Or Update
Update code comment of specified id in request body, or create new if id property not provided
- Http Method
- POST
- End Point
-
/api/code-comments
- Request Body
-
- Content Type
- application/json
- Example
-
{
"id" : 1 ,"projectId" : 1 ,"userId" : 1 ,"content" : "string" ,"lastUpdate" : { } ,"replyCount" : 1 ,"mark" : {"commitHash" : "string" ,"path" : "string" ,"range" : {"fromRow" : 1 ,"fromColumn" : 1 ,"toRow" : 1 ,"toColumn" : 1 ,"tabWidth" : 1"compareContext" : {"pullRequestId" : 1 ,"oldCommitHash" : "string" ,"newCommitHash" : "string" ,"pathFilter" : "string" ,"currentFile" : "string" ,"resolved" : true ,"uuid" : "string"
- Response
- cURL Example
-
$ curl -u <login name>:<password or access token> [email protected] -H "Content-Type: application/json" https://git.crazyhackgut.ru/api/code-comments