aircto assignments 16_08
1.0.0
设置DB地址
一个。在src/aircto/model/init.go文件中提供适当的DB连接地址。
b。 sql.Open("mysql", "homestead:secret@tcp([192.168.11.11]:3306)/")
c。在此处替换您的数据库连接地址。
首先运行数据库迁移
一个。导航到mani@Mani:~/aircto-assignments-16_08/src$ project目录。
b。运行go run aircto/migration/run_migration.go
c。现在,数据库和user是使用某些用户创建并发出种子数据的issues表。 d。没有可创建用户的API,请使用种子用户数据。您可以从此处找到所有用户列表http://localhost:3011/api/users
运行代码。
一个。导航到mani@Mani:~/aircto-assignments-16_08/src$ project目录。
b。运行go run aircto/main.go
b。现在,服务器开始在http://localhost:3011/api/
可用于测试的API。
# The following API's no need of any authendication/access token
1. http://localhost:3011/api/
2. http://localhost:3011/api/users
3. http://localhost:3011/api/login
< br / >
# After login access token will be provided for the user, need to send access token along with the request.
1. http://localhost:3011/api/issues // get - all issues
2. http://localhost:3011/api/issue/{issueID:[0-9]+} // get - issue details
3. http://localhost:3011/api/issue // post - create issue
4. http://localhost:3011/api/issue/{issueID:[0-9]+} // put - update issue info
5. http://localhost:3011/api/issue/{issueID:[0-9]+} // delete - delete issue
6. http://localhost:3011/api/issues-by-me
7. http://localhost:3011/api/issues-for-me
Every issue created or updated mail will send to the assigned user with issue info.
Cron Job for generate report mail to all the user.需要有关API的更多信息,请参阅以下邮递员文档。
注意:此文档的寿命有限。
请与我联系以获取更多澄清 @ [email protected],9578628779,Skype:manigandan.dharmalingam
设计:系统将有两个称为用户和问题的模型。以及以下信息
#1。用户
一个。电子邮件b。用户名c。 firstName d。姓氏e。密码f。访问
#2。问题
问题陈述:揭示一个静止的API,以使问题资源的CRUD操作。
笔记: