Skip to content

Johnler/omada-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OMADA-API

I created this project for my personal study. This is under development and the readme is not detailed yet.

Description

OMADA-API is a NodeJS+TypeScript+ExpressJS project that request OMADA SDN Controller api. I'm using Omada_SDN_Controller_v5.9.31.

Installation

  1. clone this project
  2. cd OMADA-API/
  3. $npm install
  4. create .env file and follow .env.sample file (modify the value base on your setup.)
  5. npm run dev

How to use this project?

  1. Install API tester (postman or insomnia)
  2. generate controllerId using /info and get omadacId value
  3. get token and cookie using /login
  4. get siteKey using /infoSite
  5. use token, cookie, controllerId, and siteKey to other endpoints

Available endpoints

GET Method:

  • /info
  • /infoStatus
  • /infoSite
  • /vouchers

POST Method:

  • /login
  • /vouchers

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published