This repository has been archived by the owner on Sep 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
接口设计及实现
fuhaiwei edited this page Mar 3, 2018
·
15 revisions
接口: /session @get
实现: sessionQuery()
接口: /session @post
实现: sessionLogin(String username, String password)
接口: /session @delete
实现: sessionLogout()
接口: /api/sakuras @get
实现: findAll() => Sakura[]
接口: /api/sakuras/key/{key} @get
实现: findOne(String key) => Sakura
接口: /api/sakuras/key/{key}/discs
实现: findDiscs(String key) => Disc[]
接口: /api/sakuras @post
实现: addOne(Body t) => Sakura
接口: /api/sakuras/{id} @put
实现: setOne(Long id, Body t) => Sakura
接口: /api/sakuras @delete
实现: delOne(String key) => Sakura
接口: /api/sakuras/{id}/discs/{discId} @post
实现: pushDiscs(Long id, Long discId) => Disc
接口: /api/sakuras/{id}/discs/{discId} @delete
实现: dropDiscs(Long id, Long discId) => Disc
接口: /api/discs/search @get
实现: search(String name) => Disc[]
接口: /api/discs/amazon @post
实现: amazon(String asin) => Disc
接口: /api/users @get
实现: findAll() => User[]
接口: /api/users @post
实现: addOne(Body t) => User
接口: /api/users/{id} @get
实现: getOne(Long id) => User
接口: /api/users/{id} @put
实现: setOne(Long id, Body t) => User
接口: /api/users/{id} @delete
实现: delOne(Long id) => User