AUDIO APP
- Get Novel List By Name And Tag
GET: api/app/novel-list/?{name: string}&{tag_index: number[]}
- Get Novel By Id
GET: api/app/novel/{id: string}
- Get Novel Chapter List By Novel Id
GET: api/app/novel-chapter-list/{novel_id: string}
- Get Novel Tag List
GET: api/app/novel-tag-list/{index}
index == 0: All
index == 1: Dashboard only
index == 2: Search only
ADMIN
- Post Novel
POST: api/admin/novel
body:
{
author: string;
introduction: string;
tag: number[];
imageUrl: string;
}
- Put Novel
PUT: api/admin/novel
body:
{
id: string;
author: string;
introduction: string;
tag: number[];
imageUrl: string;
}
- Post New Chapter
POST: api/admin/novel-chapter
body:
{
novel_id: string;
index: number;
name: string;
source: string;
}
- Put New Chapter
PUT: api/admin/novel-chapter
body:
{
id: string;
novel_id: string;
index: number;
name: string;
source: string;
}
MODEL
Novel {
id: string;
author: string;
introduction: string;
tag: number[];
imageUrl: string;
}
NovelChapter {
id: string;
novel_id: string;
index: number;
name: string;
source: string;
}
NovelTag {
name: string;
index: number;
}