☂️ Sakamichi Group Members Data Info Serve.
fetch('api/nogizaka/members')
fetch('api/nogizaka/member/:unique')
fetch('api/nogizaka/member', {
unique: 'id' | 'name' | 'nickname' | 'romanized' | 'kana',
filters?: keyof Member[]
})
- 1. fetch office website data and save to JSON
- 2. data cleaning -> split && remove redundant fields
- 3. collect && fetch wiki site to JSON and merge data
- 4. nitro cache data
- 5. design API
- 1. collect member's name map to wiki URL with JSON
- 2. fetch && data clearing
- 3. nitor cache data
- 4. continue to use API design
interface Member {
// preset
code: string
name: string
romanized: string
kana: string
cate: string
birthday: string
blood?: string
img?: string
constellation?: string
// customized
id: string
nickname: string
age: number
height: number | string
// active: boolean
birthplace: string
citizenship: string
}
MIT License © 2022 Akashi Sai