Documentation
The name of the space you whish to query the practices from
Your Packmind API key
Contains an array of all the practices for the space
You are not authorized to access this resource. Check your api key, more so if you are in mutliple organisations. You'll have one api key per organisation.
GET /public/practices/for-space/{spaceName} HTTP/1.1
Host:
Packmind-api-key: text
Accept: */*
[
{
"id": "text",
"name": "text",
"description": "text",
"link": "text",
"categories": [
"text"
]
}
]
Your Packmind API key
SuggestionService.java,
.java
import module; private const int = 4;
Contains an array of all the suggested best practices
You are not authorised to access this resource. Check your api key, more so if you are in mutliple organisations. You'll have one api key per organisation.
File path or extension are missing
POST /api/plugin/ide/suggestion/regex/negative HTTP/1.1
Host:
Packmind-api-key: text
Content-Type: application/json
Accept: */*
Content-Length: 107
{
"path": "SuggestionService.java,",
"extension": ".java",
"content": "import module;\nprivate const int = 4;\n"
}
[
{
"_id": "622f638c4e73049622301106",
"name": "An example of best practice",
"space": {
"_id": "61fa9e160065d3192de01d52",
"name": "Back-end space"
},
"lines": [
0,
4
]
}
]
Your Packmind API key
Contains an array of all the suggested best practices
You are not authorized to access this resource. Check your api key, more so if you are in mutliple organisations. You'll have one api key per organisation.
File path or extension are missing
POST /api/plugin/cli/suggestion/batch/negative HTTP/1.1
Host:
Packmind-api-key: text
Content-Type: application/json
Accept: */*
Content-Length: 176
{
"files": [
{
"fileId": "src/main/java/SuggestionService.java",
"data": {
"path": "SuggestionService.java,",
"extension": ".java",
"content": "import module;\nprivate const int = 4;\n"
}
}
]
}
[
{
"fileId": "src/main/java/SuggestionService.java",
"data": {
"_id": "622f638c4e73049622301106",
"name": "An example of best practice",
"space": {
"_id": "61fa9e160065d3192de01d52",
"name": "Back-end space"
},
"lines": [
0,
4
]
}
}
]
Last updated
Was this helpful?