MOVED TO DJET ORG https://github.com/DJetCloud/djet-codegen
Set of tools for the integration with https://metucat.com (previously https://difhub.com). Contains API loader, codegen and IntelliJ Idea plugin. New features and instrumentation coming soon.
Projects:
- openapi-load – API loader, connects to difhub.com, loads metadata of the selected system and converts it to the OpenAPI documents.
- codegen-cli – Codegen, takes OpenAPI specifications, settings, and generates project
- intellij-idea – Plugin for the IntellijIdea to have UX.
NOTE. Since project is in Preview, only usage in development mode available.
For new project:
- Clone repository of the project
- Run
./gradlew intellij-plugin:runIde - Select
+ Create New Project->Bootstrap from DifHub(on left nav) - Type your DifHub
UsernameandPassword,Organization Namewhere your system located. - Select required system and change defaults (optional) -> Press Next
- Choose project name and directory
- Geneate your project. Progress (or exception) you can see in the console output.
For existing projects (coming soon):
- Start plugin using the same 1. and 2. from above list
- Open existing project
- On the top (IJ) nav menu, right after the
Toolsfind theDifHubmenu item - Click
Load OpenApito start initialization or load (if all settings are present in project)- if file
.difhub-codegen/.credentials.yamlis missing – plugin will create and open one. Add right username, password, organization- Note. this file added to gitignore file by generator so each user need to provide own credentials.
- if file
.difhub-codegen/settings.yamlis missing – plugin will create and open one. Add right settings.
- if file
- When all required are present – OpenAPI files will be generated by plugin.
- Having all OpenAPI files and setting – click
Generate Codein the Plugin menu.
If any issue:
- Fix the issue and create PR
- Post issue here on GitHub