Internal API for fetching custom email templates and images from core server
Code Insight REST API Documentation (v1)
The Code Insight REST APIs provide a standardized interface for interacting with the application.
An authorization JWT token must be included in the HTTP Authorization header using the Bearer schema. The token can be obtained from the Code Insight Web UI under the Preferences menu. To set the token, click the Authorize button below on the right, enter the JWT token in the Value field, then click Authorize and close the dialog. Once authorized, the token will be automatically included in the HTTP Authorization header for all API requests made through the Swagger UI.
Note: If accessing the REST APIs through external tools such as curl or Postman, include the token manually in the HTTP header using the following format: Authorization: Bearer JWT_TOKEN. "Bearer" must precede the actual JWT token value.
- Mock serverhttps://codeinsightapi.redocly.app/_mock/swagger/users/{loginId}/activate
- Code Insight REST API Serverhttps://codeinsightapi.redocly.app/codeinsight/api/users/{loginId}/activate
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://codeinsightapi.redocly.app/_mock/swagger/users/{loginId}/activate' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'To create a user the login, First Name, Last Name, Email, Password, Question, Answer field is required.
password
- Mock serverhttps://codeinsightapi.redocly.app/_mock/swagger/users
- Code Insight REST API Serverhttps://codeinsightapi.redocly.app/codeinsight/api/users
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://codeinsightapi.redocly.app/_mock/swagger/users \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"login": "admin",
"firstName": "John",
"lastName": "Miller",
"email": "john@yahoomail.com",
"password": "Password123",
"question": "What is your best friend name?",
"answer": "Jim"
}'- Mock serverhttps://codeinsightapi.redocly.app/_mock/swagger/users/{loginId}/deactivate
- Code Insight REST API Serverhttps://codeinsightapi.redocly.app/codeinsight/api/users/{loginId}/deactivate
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://codeinsightapi.redocly.app/_mock/swagger/users/{loginId}/deactivate' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Request
Manage User Permission for the existing user in the system. This will remove the permission mapped earlier and the current request permissions will be considered always.
list of permission is a required field. Allowable permission are system_admin, edit_policy, create_project, library_manager
- Mock serverhttps://codeinsightapi.redocly.app/_mock/swagger/users/{loginId}/permission
- Code Insight REST API Serverhttps://codeinsightapi.redocly.app/codeinsight/api/users/{loginId}/permission
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://codeinsightapi.redocly.app/_mock/swagger/users/{loginId}/permission' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"permissions": [
"string"
]
}'- Mock serverhttps://codeinsightapi.redocly.app/_mock/swagger/users/search
- Code Insight REST API Serverhttps://codeinsightapi.redocly.app/codeinsight/api/users/search
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://codeinsightapi.redocly.app/_mock/swagger/users/search?id=1&login=admin&email=admin%40gmail.com' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'