Last updated 1 month ago
Was this helpful?
The name of the space you whish to query the practices from
Your Packmind API key
curl -L \ --url '/public/practices/for-space/{spaceName}' \ --header 'Packmind-api-key: text'
[ { "id": "text", "name": "text", "description": "text", "link": "text", "categories": [ "text" ] } ]
SuggestionService.java,
.java
import module; private const int = 4;
curl -L \ --request POST \ --url '/api/plugin/ide/suggestion/regex/negative' \ --header 'Packmind-api-key: text' \ --header 'Content-Type: application/json' \ --data '{ "path": "SuggestionService.java,", "extension": ".java", "content": "import module; private const int = 4; " }'
[ { "_id": "622f638c4e73049622301106", "name": "An example of best practice", "space": { "_id": "61fa9e160065d3192de01d52", "name": "Back-end space" }, "lines": [ 0, 4 ] } ]
curl -L \ --request POST \ --url '/api/plugin/cli/suggestion/batch/negative' \ --header 'Packmind-api-key: text' \ --header 'Content-Type: application/json' \ --data '{ "files": [ { "fileId": "src/main/java/SuggestionService.java", "data": { "path": "SuggestionService.java,", "extension": ".java", "content": "import module; private const int = 4; " } } ] }'
[ { "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 ] } } ]