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
.envfile and follow.env.samplefile (modify the value base on your setup.) npm run dev
- Install API tester (postman or insomnia)
- generate
controllerIdusing/infoand getomadacIdvalue - get
tokenandcookieusing/login - get
siteKeyusing/infoSite - use
token, cookie, controllerId, and siteKeyto other endpoints
GET Method:
- /info
- /infoStatus
- /infoSite
- /vouchers
POST Method:
- /login
- /vouchers