/sakamichi-bot

☂️ Sakamichi Group Members Data Info API Serve.

Primary LanguageHTML

SAKAMICHI-BOT

☂️ Sakamichi Group Members Data Info Serve.

Nogizaka46/Kiyakizaka46/Hinatazaka46/Sakurazaka46

fetch('api/nogizaka/members')

fetch('api/nogizaka/member/:unique')

fetch('api/nogizaka/member', {
  unique: 'id' | 'name' | 'nickname' | 'romanized' | 'kana',
  filters?: keyof Member[]
})

Process Resolve

nogi

  • 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

kiyaki / hinata / sakura

  • 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

Info Field Interface

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
}

License

MIT License © 2022 Akashi Sai