GithubHelp home page GithubHelp logo

jemputkuy-api's Introduction

jemputkuy-api

API Specs

Base url

https://jemputkuy-api.herokuapp.com

Table endpoints

User Customer

Name Endpoint Method JWT token Body and response
Register customer /api/v1/user/customer/register POST no
Login customer /api/v1/user/customer/login POST no
Get customer info /api/v1/user/customer/customer GET yes

User Driver

Name Endpoint Method JWT token Body and response
Register driver api/user/driver/register POST no
Login driver api/user/driver/login POST no
Get driver info api/user/driver GET yes


Table Role

Name Role Keterangan
1 Customer
2 Driver

User Customer Examples

User Customer - Register

POST /api/v1/user/customer/register

Body

{
    "username":"4",
    "password":"1234",
    "email":"[email protected]",
    "address":"jl raya tagok",
    "phone_number":"08999222",
    "first_name": "fannan",
    "last_name" : "fauzan"
}

Response

{
    "status": true,
    "message": "Success",
    "data": true
}

User Customer - Login

POST /api/user/customer/login

Body

{
    "username" : "4",
    "password" : "1234"
}

Response

{
    "status": true,
    "message": "Success",
    "data": {
        "token": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIzZGM3MmRmYi05OTU1LTQ0NDMtYTEyYi1hMGMyYWIxMmZiZmMiLCJhdXRoIjpbIjQiXSwiZXhwIjoxNjU2Njk3NDk2fQ.nA....
    }
}

User Customer - Get customer info

GET /api/user/customer
HEADER Authorization eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIzZGM3MmRmYi05OTU1LTQ0NDMtYTEyYi1hMGMyYWIxMmZiZmMiLCJhdXRoIjpbIjQiXSwiZXhwIjoxNjU2Njk3NDk2fQ.nA....

Response

{
    "status": true,
    "message": "Success",
    "data": {
        "id": "3dc72dfb-9955-4443-a12b-a0c2ab12fbfc",
        "username": "4",
        "password": "null",
        "email": "[email protected]",
        "address": "jl raya tagok",
        "first_name": "fannan",
        "last_name": "fauzan",
        "phone_number": "08999222",
        "role": 1
    }
}

User Driver Examples

User Driver - Register

POST /api/v1/user/driver/register

Body

{
    "username":"4",
    "password":"1234",
    "email":"[email protected]",
    "address":"jl raya tagok",
    "phone_number":"08999222",
    "first_name": "fannan",
    "last_name" : "fauzan"
}

Response

{
    "status": true,
    "message": "Success",
    "data": true
}

User Driver - Login

POST /api/user/driver/login

Body

{
    "username" : "4",
    "password" : "1234"
}

Response

{
    "status": true,
    "message": "Success",
    "data": {
        "token": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIzZGM3MmRmYi05OTU1LTQ0NDMtYTEyYi1hMGMyYWIxMmZiZmMiLCJhdXRoIjpbIjQiXSwiZXhwIjoxNjU2Njk3NDk2fQ.nA....
    }
}

User Driver - Get Driver info

GET /api/user/driver
HEADER Authorization eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIzZGM3MmRmYi05OTU1LTQ0NDMtYTEyYi1hMGMyYWIxMmZiZmMiLCJhdXRoIjpbIjQiXSwiZXhwIjoxNjU2Njk3NDk2fQ.nA....

Response

{
    "status": true,
    "message": "Success",
    "data": {
        "id": "3dc72dfb-9955-4443-a12b-a0c2ab12fbfc",
        "username": "4",
        "password": "null",
        "email": "[email protected]",
        "address": "jl raya tagok",
        "first_name": "fannan",
        "last_name": "fauzan",
        "phone_number": "08999222",
        "role": 2
    }
}

jemputkuy-api's People

Contributors

fannan-fauzan-fardhurohman 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.