ตั้งค่าที่อยู่ db
. ให้ที่อยู่การเชื่อมต่อ DB ที่เหมาะสมในไฟล์ SRC/Aircto/Model/Init.go
ข. sql.Open("mysql", "homestead:secret@tcp([192.168.11.11]:3306)/")
ค. แทนที่ที่อยู่การเชื่อมต่อ DB ของคุณที่นี่
เรียกใช้การโยกย้ายฐานข้อมูลในทันทีทันที
. นำทางไปยัง mani@Mani:~/aircto-assignments-16_08/src$ Directory Project Directory
ข. Run go run aircto/migration/run_migration.go
ค. ตอนนี้ฐานข้อมูลและ user issues ตารางที่สร้างขึ้นด้วยผู้ใช้และออกข้อมูลเมล็ดพันธุ์ d. ไม่มี API ในการสร้างผู้ใช้โปรดใช้ข้อมูลผู้ใช้เมล็ดพันธุ์ คุณสามารถค้นหารายชื่อผู้ใช้ทั้งหมดได้จากที่นี่ http://localhost:3011/api/users
เรียกใช้รหัส
. นำทางไปยัง mani@Mani:~/aircto-assignments-16_08/src$ Directory Project Directory
ข. Run go run aircto/main.go
ข. ตอนนี้เซิร์ฟเวอร์เริ่มให้บริการใน 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 โปรดดูเอกสาร Postman ต่อไปนี้
หมายเหตุ: อายุการใช้งานที่ จำกัด ในเอกสารนี้
โปรดติดต่อฉันเพื่อขอคำชี้แจงเพิ่มเติม @ [email protected], 9578628779, Skype: Manigandan.dharmalingam
การออกแบบ: ระบบจะมีสองรุ่นที่เรียกว่าผู้ใช้และปัญหา ด้วยข้อมูลต่อไปนี้
#1. ผู้ใช้
. อีเมล b. ชื่อผู้ใช้ค. FirstName d. นามสกุล e. รหัสผ่าน f. accesstoken
#2. ปัญหา
คำชี้แจงปัญหา: เปิดเผย API ที่เหลือเพื่อดำเนินการ CRUD ของทรัพยากรปัญหา
บันทึก: