MyGit

v2.0

Massad/gin-boilerplate

版本发布时间: 2020-05-13 01:23:11

Massad/gin-boilerplate最新发布版本:v2.0(2020-05-13 01:23:11)

Changes:

$ sh generate-certificate.sh
- SSL=TRUE | FALSE in .env
- SSL implementation in the server in **main.go**

Capture both access_token & refresh_token and put it in the global variable from the Login API in Tests tab

requests.

pm.test("Status code is 200", function () {
    pm.response.to.have.status(200);
    
    var jsonData = JSON.parse(responseBody);
    pm.globals.set("token", jsonData.token.access_token);
    pm.globals.set("refresh_token", jsonData.token.refresh_token);

});

To be used in: 
Authorization -> Bearer Token Value: {{token}} (Comes from global variables)

Those are added to updated_at and created_at columns to update the latest timestamp automatically in both user and article tables. You can explore the tables and public schema for more info.

相关地址:原始地址 下载(tar) 下载(zip)

查看:2020-05-13发行的版本