S
spring-boot-rest-api-standards
by @giuseppe-trisciuogliov1.0.0
0.0(0)
提供 Spring Boot REST API 的开发标准和最佳实践,确保接口设计规范和高效。
安装方式
npx skills add giuseppe-trisciuoglio/developer-kit --skill spring-boot-rest-api-standardscompare_arrows
Before / After 效果对比
1 组使用前
1在没有Spring Boot REST API Standards技能指导时,API端点可能命名不规范、HTTP方法使用不当、响应结构不一致,导致API难以理解和使用。
2```java
3// 不规范的API设计
4@RestController
5@RequestMapping("/api")
6public class UserController {
7 @GetMapping("/getUsers")
8 public List<User> getAllUsers() { /* ... */ }
9
10 @PostMapping("/createUser")
11 public User saveUser(@RequestBody User user) { /* ... */ }
12}
13```使用后
1通过Spring Boot REST API Standards技能,可以遵循行业最佳实践设计API,确保端点命名、HTTP方法、状态码和响应结构的一致性和可预测性,提高API的可用性和可维护性。
2```java
3// 遵循REST API标准的API设计
4@RestController
5@RequestMapping("/api/users") // 资源集合名词复数
6public class UserController {
7 @GetMapping // 获取所有用户
8 public List<User> getUsers() { /* ... */ }
9
10 @GetMapping("/{id}") // 获取特定用户
11 public User getUserById(@PathVariable Long id) { /* ... */ }
12
13 @PostMapping // 创建用户
14 @ResponseStatus(HttpStatus.CREATED)
15 public User createUser(@RequestBody User user) { /* ... */ }
16}
17```description SKILL.md
spring-boot-rest-api-standards
spring boot rest api standards from giuseppe-trisciuoglio/developer-kit
forum用户评价 (0)
发表评价
效果
易用性
文档
兼容性
暂无评价,来写第一条吧
统计数据
安装量0
评分0.0 / 5.0
版本1.0.0
更新日期2026年3月17日
对比案例1 组
用户评分
0.0(0)
5
0%
4
0%
3
0%
2
0%
1
0%
为此 Skill 评分
0.0
兼容平台
🔧Claude Code
时间线
创建2026年3月17日
最后更新2026年3月17日