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.
-
Clone the repository:
git clone https://github.com/crizmo/KanaAPI cd kanaapi
-
Install dependencies:
npm install
-
Start the server:
npm start
-
The server will run on
http://localhost:3000
by default.
-
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": ["お", "こ", "そ", "と", "の", "ほ", "も", "よ", "ろ", "を"] }