Community discussions

MikroTik App

Search found 3 matches

by gaileys
Tue Mar 26, 2024 1:26 pm
Forum: SwOS
Topic: SwOS api
Replies: 10
Views: 12897

Re: SwOS api

I haven't put this on git but could look to do that. The code is all Scala, and not very good scala at that as it was a quick and dirty solution; so you'd need to be comfortable with that. The easiest way to understand the api is to just use curl: curl --compressed --digest -u user:password -v http:...
by gaileys
Mon Mar 25, 2024 1:27 pm
Forum: SwOS
Topic: SwOS api
Replies: 10
Views: 12897

Re: SwOS api

OK I have put this up on Docker Hub and I'm using it with Homepage to give me details of my two switches. https://hub.docker.com/repository/docker/gaileys/mikrotiksw/general Just do a GET on /api/v1/getswitch/switchip/switchuser/password I know that is dreadful, putting the username and password in ...
by gaileys
Wed Mar 20, 2024 9:35 pm
Forum: SwOS
Topic: SwOS api
Replies: 10
Views: 12897

Re: SwOS api

I was inspired. I have built a small docker application to act as a reverse proxy for any number of Mikrotik switches. I then make the call to the switch to pick up their config files "link.b" "sys.b" etc. and return json. I was frustrated that my Homepage dashboard only gave me ...