Editor
how to set knowledge configuration ApiHug Api design Copilot.
How to configure team-shared knowledge for domain with ApiHug Api design Copilot.
🎁 Team-Shared Design Standards Consensus
Since IDEA Plugin 0.5.4
+ we move maintain of the knowledge as Project framework metadata, so you:
The knowledge base configuration will host {WIRE_MODULE}/src/main/resources/hope-knowledge.json
, please refer to this sample.
{
"knowledge" : [ {
"name" : "user_name",
"description" : "name of user",
"attributeType" : "STRING",
"notNull" : false,
"notEmpty" : false,
"notBlank" : true,
"pattern" : "",
"minLength" : 1,
"maxLength" : 64,
"sample" : "jake",
"trackId" : "04b01f17-dc5b-44ce-b7ad-da7744dae723",
"usage" : "BOTH"
} ],
"name" : "apihug-demo-proto",
"application" : "apihug-demo",
"packageName" : "com.apihug.sample",
"domain" : "sample",
"identifier" : "apihug-demo-proto",
"module" : "apihug-demo-proto"
}
All other behavior keep same(except you don’t need go to the IDEA settings to set the knowledge, in each project module instead)!
⚠️This menu removed after 0.5.4⚠️ just open the hope-knowledge.json
to edit;
ApiHug > Settings
Knowledge
tab