Git Product home page Git Product logo

go-test-lvjian's Introduction

Mysql create Database

CREATE DATABASE `gotestdb`

Mysql create Table

Please refer to 【gotestdb.sql】 file under the 【extra】 folder

Postman job

Please refer to 【GOTest.postman_collection.json】 file under the 【extra】 folder

1. Signup API

Url : http://127.0.0.1:8080/v1/signup

Method : POST

Params : FirstName, LastName, Email, Password

Auth Required : No

Request :

{
    "FirstName" : "Baggio",
    "LastName":"Roberrt",
    "Email":"[email protected]",
    "Password":"123456789test"
}

Response :

{
    "code": 200,
    "msg": "success",
    "data": {
        "FirstName": "Baggio",
        "LastName": "Roberrt",
        "Email": "[email protected]"
    }
}

2. Signin API

Url : http://127.0.0.1:8080/v1/signin

method : POST

Params : Email, Password

Auth Required : No

request :

{
    "Email":"[email protected]",
    "Password":"123456789test"
}

response :

{
    "code": 200,
    "msg": "success",
    "data": {
        "Token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJFbWFpbCI6IjEwMDc2NDE4QHFxLmNvbSIsIlBhc3N3b3JkIjoiMTIzNDU2Nzg5dGVzdCIsImV4cCI6MTY1Mjg2NTEwMywiaWF0IjoxNjUyODY0NTAzLCJuYmYiOjE2NTI4NjQ1MDN9.tsoRAiyFmZlqNWasIxadc2FywDoVcdwik8m8EMl5pLc"
    }
}

3. Profile API

Url : http://127.0.0.1:8080/v1/profile

Method : GET

Params : NO

Auth Required : YES

KEY:  Authorization  
VALUE: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJFbWFpbCI6IjEwMDc2NDE4QHFxLmNvbSIsIlBhc3N3b3JkIjoiMTIzNDU2Nzg5dGVzdCIsImV4cCI6MTY1Mjg2NDk1MywiaWF0IjoxNjUyODY0MzUzLCJuYmYiOjE2NTI4NjQzNTN9.gvrkcbqg5R78GAR6xT5D7OIpLDxjvnD_oMGh83EGwsc

Request :

Response :

{
    "code": 200,
    "msg": "success",
    "data": {
        "FirstName": "lv",
        "LastName": "jian",
        "Email": "[email protected]"
    }
}

4. Update API

Url : http://127.0.0.1:8080/v1/profile/update

Method : POST

Params : FirstName, LastName

Auth Required : YES

KEY:  Authorization  
VALUE: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJFbWFpbCI6IjEwMDc2NDE4QHFxLmNvbSIsIlBhc3N3b3JkIjoiMTIzNDU2Nzg5dGVzdCIsImV4cCI6MTY1Mjg2NDk1MywiaWF0IjoxNjUyODY0MzUzLCJuYmYiOjE2NTI4NjQzNTN9.gvrkcbqg5R78GAR6xT5D7OIpLDxjvnD_oMGh83EGwsc

Request :

{
    "FirstName":"lv",
    "LastName":"jian"
}

Response :

{
    "code": 200,
    "msg": "success",
    "data": {
        "FirstName": "lv",
        "LastName": "jian",
        "Email": "[email protected]"
    }
}

go-test-lvjian's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.