bill-ktor/README.md

48 lines
580 B
Markdown
Raw Normal View History

# Ktor 项目
2022-10-09 13:15:00 +08:00
> Kotlin + Gradle + Ktor + Exposed + Docker
## api
2022-10-09 13:15:00 +08:00
### bill
```bash
GET /api/v1/bill/{year}/{month?}/{day?}
POST /api/v1/bill/
Body List<{
type: Int,
date: String,
money: Float,
cls: String,
label: String,
options: String,
}>
DELETE /api/v1/bill/{id}
PUT /api/v1/bill/
Body {
id: Int?,
type: Int,
date: String,
money: Float,
cls: String,
label: String,
options: String,
}
```
### label
```bash
GET /api/v1/label/
POST /api/v1/label/
Body {
type: String,
name: String,
relativeId: Int?,
}
```