Getting started - 英文版 - English Version

embedded/2024/10/18 22:35:00/

    🤗 ApiHug × {Postman|Swagger|Api...} = 快↑ 准√ 省↓

  1. GitHub - apihug/apihug.com: All abou the Apihug   
  2. apihug.com: 有爱,有温度,有质量,有信任
  3. ApiHug - API design Copilot - IntelliJ IDEs Plugin | Marketplace

api-hug-contact

 

This page outlines how you can use ApiHug to create quick demos in 15 minutes.

Prerequisites​

  1. JDK 17+ OpenJDK or Oracle's
  2. Gradle 8+
  3. IDEA 2022+
  4. ApiHug - API design Copilot

Plugin Install​

  1. File
  2. Settings
  3. Plugin
  4. Search ApiHug
  5. Install & Restart

Project Wizard​

ApiHug - API design Copilot provides a highly friendly and intuitive project template to kickstart your API development. It guides you through step-by-step creation of API projects that adhere to best practices.

01-Start ApiHug Project​

  1. File
  2. New -> Project
  3. ApiHug

02-Project Settings​

  1. Project settings
    1. package
    2. name
    3. description
  2. SDK Settings
    1. version
    2. DB Vendor
    3. Cache
    4. Port

spring-settings">03-Spring Settings​

This is a standard Start Spring configuration:

  1. Select Type
  2. Choice the components for example Spring Web

Eventually click Create -> Open Project to open the project:

04-Start Project​

Tip

The SDK version may update while our project goes on. please check them on repository: 

.

you can update them manually:

  1. YOUR_PROJECT > gradle > libs.versions.toml
  2. apihug = "0.9.2-RELEASE" update to latest version

Follow the IDEA's instruction:

  1. load this project as Gradle, if not please manually reload(check Notification)
  2. two modules demo-app-proto & demo-app should be recognized

04.1-Wire​
  1. Open README.md > 0. Build All
  2. find the command, parse to the Terminal
  3. press Enter to execute
  4. Check the demo-app-proto path main > wire for updates:

04.2-Stub​
  1. Open README.md > 2. Build Stub (Individual)
  2. find the command, parse to the Terminal
  3. press Enter to execute
  4. Check the demo-app path main > stub for updates:

04.3-Boot​
  1. Open README.md > 3. Run Application
  2. find the command, parse to the Terminal
  3. press Enter to execute
  4. Check the log print of demo-app

shell

----------------------------------------------------------Application 'demo-app' is running! Access URLs:Local                             http://localhost:18089/
External                          http://192.168.0.115:18089/
OAS                               http://192.168.0.115:18089/v3/api-docs
Actuator                          http://192.168.0.115:18089/management
Api-Errors                        http://192.168.0.115:18089/hope/meta/errors
Api-Dictionaries                  http://192.168.0.115:18089/hope/meta/dictionaries
Api-Authorities                   http://192.168.0.115:18089/hope/meta/authorities
Profile(s)                        dev
04.4-Check OAS​
  1. copy the url from the console
  2. enter them in the Chrome

ApiHug Tool Window​

ApiHug Tool Window should dock on the right side of the IDE, if not you can also bring it up from the top menu bar: ApiHug > ApiHug Designer:

🥳 Congratulations! You have successfully finished a perfect API development joinery!

Summary​

During the last 15-minute demo, we went through the typical steps involved in API design and development. These steps often include various trivial tasks that distract us from focusing on the core business logic design. However, with ApiHug, you can leave behind all the tedious and troublesome steps.

ApiHug automates these tasks and generates high-quality designs with a user-friendly and easily understandable structure and code details. In the upcoming lessons, we will delve deeper into exploring the capabilities of ApiHug.

In fact, the techniques used by ApiHug are not entirely new inventions. Platforms like Jhipster, Spring Starter, Grails, and Ruby on Rails have paved the way for similar approaches.

ApiHug builds upon the best practices and lessons learned from these predecessors, making them more practical and straightforward for everyday use. We acknowledge and appreciate the contributions of these platforms in shaping the foundation of ApiHug.


http://www.ppmy.cn/embedded/29389.html

相关文章

5.2 进程

system命令创建一个新的进程然后有这个新的进程然后再执行相关的命令,层数多鸡肋 缺点:system层数太多,往往用fork() 优点:可以进行跨语言调用,或者是脚本完成,可以用system fork()函数父进程是返回子进…

【Linux】深入探讨 Linux 中的 `ln` 命令:创建链接的艺术

我把我唱给你听 把你纯真无邪的笑容给我吧 我们应该有快乐的 幸福的晴朗的时光 我把我唱给你听 用我炙热的感情感动你好吗 岁月是值得怀念的留恋的 害羞的红色脸庞 谁能够代替你呀 趁年轻尽情的爱吧 最最亲爱的人啊 路途遥远我们在一起吧 🎵 叶…

【并行计算】【《并行程序设计导论》笔记】第三章:用MPI进行分布式内存编程

文章目录 3.1|预备知识编译与执行打印来自进程问候语句的MPI程序编译执行 通信子SPMD程序MPI_Send()方法status_p参数MPI_Send()和MPI_Recv()的语义潜在的陷阱 个人主页:丷从心 系列专栏:并行计算 3.1|预备知识 编译与执行 打印来自进程问候语句的MPI…

小程序API wx.startLocationUpdateBackground 的使用

若使用该接口,需要在 app.json 中进行声明 requiredPrivateInfos: [getLocation,onLocationChange,startLocationUpdate,startLocationUpdateBackground],requiredBackgroundModes: [audio,location],代码: 1、使用wx.startLocationUpdateBackground需要…

【webrtc】MessageHandler 3: 基于线程的消息处理:以sctp测试为例

消息处理可以用于模拟发包处理G:\CDN\rtcCli\m98\src\net\dcsctp\socket\dcsctp_socket_network_test.cc 这个实现中,onMessage还是仅对了一种消息进行处理,就是接收则模式下,打印带宽。当然,可能程序有多个消息,分别在不同的onmessage中执行?SctpActor:以一个恒定的速率…

扭蛋机小程序带来了什么优势?扭蛋机收益攻略

在当下的潮流消费时代,人们对潮玩也日益个性化,扭蛋机作为一种新型的娱乐消费模式,深受大众喜爱。扭蛋机的价格低,各个年龄层的玩家都可以进行购买,潜在玩家量非常大。扭蛋机商品主打热门IP周边等,种类繁多…

力扣HOT100 208. 实现Trie(前缀树)

解题思路: class Trie {private Trie[] children; // 存储子节点的数组private boolean isEnd; // 记录是否为单词结尾public Trie() {children new Trie[26]; // 数组大小为26,代表26个小写字母isEnd false;}public void insert(String word) {Trie …

jvm 马士兵 01

01.JVM是什么 JVM是一个跨平台的标准 JVM只识别class文件,符合JVM规范的class文件都可以被识别