Beego based Restful API service
Switch branches/tags
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
conf fixed the init.* doesnot work issue Jun 1, 2018
controllers fixed the init.* doesnot work issue Jun 1, 2018
database add AUTO_INCREMENT for sql Sep 21, 2018
logs restructured main.go to enable Cache/Template/BootStrap/Sql Jun 1, 2018
models add redis_password config support for cache Jun 1, 2018
pictures updated swagger.json and added airad_swagger.png to pictures folder Apr 17, 2018
routers fixed the init.* doesnot work issue Jun 1, 2018
swagger updated swagger.json and added airad_swagger.png to pictures folder Apr 17, 2018
tests POST to create a new device is ready now Dec 12, 2017
utils fixed the init.* doesnot work issue Jun 1, 2018
views initial commit Nov 25, 2017
.DS_Store
.gitignore
README.md
main.go updated README.md for airad import Jun 4, 2018

README.md

AirAd

Beego based RestFul API service

which supports mobile app as cloud service

特性

  • RestFul API
  • Access Token, User Auth

依赖

如何开始

   mysql -uroot -pYOURROOTPASSWORD  -h 127.0.0.1 -e "CREATE DATABASE IF NOT EXISTS airad DEFAULT CHARSET utf8 COLLATE utf8_general_ci;"
  • 创建(并授权给)用户(gouser)和密码(gopassword)
    mysql -uroot -pYOURROOTPASSWORD  -h 127.0.0.1 -e "grant all privileges on airad.* to gouser@'%' identified by 'gopass';"
  • 导入airad.sql
    mysql -uroot -pROOTPASSWORD  airad < database/airad.sql

查看和调试

请通过 http://localhost:9080/swagger/ 试用API,界面如下

注意

  • SWagger的路由页面待更新