Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

h3z/dx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

  1. 在项目根目录执行mvn clean package
  2. 在项目根目录执行java -jar target/hzzz-1.0-SNAPSHOT.jar server启动服务

API

  1. 查询类别下所有商品 http://localhost:8080/category/{category}
  2. 查询商品所属类别 http://localhost:8080/commodity/{id} (只构造了4个数据,id分别1,2,3,4)
  3. 为了方便第一个api使用,简单加了一个借口列出所有类别 http://localhost:8080/allcategories

Test

测试只写了单元测试,测根据类别查商品和根据商品查类别。

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%