Skip to content

High level API tools

Daniel Frantik edited this page Mar 5, 2016 · 7 revisions

There are tool for that could help with creating custom entities.

  • tik4net.entitygenerator.exe - creates entity code by parsing loaded result from mikrotik
  • tik4net.entityWikiImporter.exe - creates entity code by parsing mikrotik wiki html. (currently used)

Both tools are just helper - you have to finalize entity code yourself.

##tik4net.entitygenerator.exe Main goal of this helper application is support for semi-automatic creating tik entities (C# source code generator) from youd mikrotik router. Just prepare entity on router, start application, fill entity path and generate source.

NOTE: you could edit tik4net.entitygenerator.exe.config configuration and prepare your credential.

  • Prepare entity on mikrotik router
  • fill entity API path (with /print)
  • Press Load and generate

##tik4net.entityWikiImporter.exe Main goal of this helper application is support for semi-automatic creating tik entities (C# source code generator) from official mikrotik wiki. Just start application, fill wiki page url, parse it (you can manually fill html of property tables (table tag) into textboxes if parser does not work properly) and generate source.

  • Find mikrotik wiki documentation page
  • Put its url into textbox of wiki imported app
  • Press Load and Resolve
  • Optionaly fill manually Html with properties and Html with R/O properties with html of the mikrotik wiki (copy/paste table tag of property list.
  • Optionaly fill List of unset properties by result of the mikrotik command (above)
  • Press Generate code

NOTE: this application uses HtmlAgility pack (as nuGet package).

###Advanced usage tutorial ... comming soon ...

Clone this wiki locally