+
Skip to content
/ KanaAPI Public

KanaAPI is a simple API built with Express.js that provides information about Japanese Kana characters (Hiragana and Katakana).

License

Notifications You must be signed in to change notification settings

crizmo/KanaAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KanaAPI

KanaAPI is a simple API built with Express.js that provides information about Japanese Kana characters (Hiragana and Katakana).

  • data/kana.json: Contains the Kana characters data.
  • index.js: Main server file that sets up the API endpoints.

Installation

  1. Clone the repository:

    git clone https://github.com/crizmo/KanaAPI
    cd kanaapi
  2. Install dependencies:

    npm install

Usage

  1. Start the server:

    npm start
  2. The server will run on http://localhost:3000 by default.

API Endpoints

  • Get Kana data by character

    GET /api/kana/:character
    

    Example: GET /api/kana/あ

  • Get Kana data by type

    GET /api/:type
    

    Example: GET /api/hiragana

  • Get Kana chart by type

    GET /api/chart/:type
    

    Example: GET /api/chart/hiragana Response:

    {
      "a": ["", "", "", "", "", "", "", "", "", ""],
      "i": ["", "", "", "", "", "", "", ""],
      "u": ["", "", "", "", "", "", "", "", ""],
      "e": ["", "", "", "", "", "", "", ""],
      "o": ["", "", "", "", "", "", "", "", "", ""]
    }

About

KanaAPI is a simple API built with Express.js that provides information about Japanese Kana characters (Hiragana and Katakana).

Topics

Resources

License

Stars

Watchers

Forks

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载