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操作。
筆記: