2020-03-22 13:45:55 +03:00
2020-03-22 12:10:20 +03:00
2020-03-22 12:10:20 +03:00
2020-03-22 12:10:20 +03:00
2020-03-22 12:57:45 +03:00
2020-03-22 12:10:20 +03:00
2020-03-22 12:10:20 +03:00
2020-03-22 12:10:20 +03:00
2020-03-22 12:10:20 +03:00
2020-03-22 13:45:55 +03:00

uber4freefood

Users Api

Postgres set up

Edit the file in /models/base.go on line 28 to set local password and user before running.

Running

Run go run main.go

Api Routes

:*port/api/user/login method post body json {"email": "", "password": ""}

:*port/api/user/login method post body json {"email": "", "firstname": "", "lastname": "", "phonenumber": "", "usertype": "", "profilepicname": "","password": ""}

Response

body

{
    "account": {
        "ID": ,
        "CreatedAt": "",
        "UpdatedAt": "",
        "DeletedAt": ,
        "email": "",
        "firstname": "",
        "lastname": "",
        "phonenumber": "",
        "usertype": "",
        "profilepicname": "",
        "password": "",
        "token": ""
    },
    "message": "",
    "status": 
}
Token

Type : JWT

key: in .env file

body:

{
 alg: "HS256",
 typ: "JWT"
}.
{
 UserId: 
}.
S
Description
No description provided
Readme MIT 24 MiB
Languages
Go 72.8%
Python 21.9%
Dockerfile 5.3%