I created this project for my personal study. This is under development and the readme is not detailed yet.
OMADA-API is a NodeJS+TypeScript+ExpressJS project that request OMADA SDN Controller api. I'm using Omada_SDN_Controller_v5.9.31.
- clone this project
- cd OMADA-API/
$npm install
- create
.env
file and follow.env.sample
file (modify the value base on your setup.) npm run dev
- Install API tester (postman or insomnia)
- generate
controllerId
using/info
and getomadacId
value - get
token
andcookie
using/login
- get
siteKey
using/infoSite
- use
token, cookie, controllerId, and siteKey
to other endpoints
GET Method:
- /info
- /infoStatus
- /infoSite
- /vouchers
POST Method:
- /login
- /vouchers