Giter Club home page Giter Club logo

booklook's Introduction

BookLook

E-commerce Book Store

Getting Started

Default format for api list be like :

{{Controller Name}}

{{Method}}

  • Request
GET/POST/PUT/DELETE {link}
Header xxx xxx
Parameter Type
api_key xxx
  • Response
{
  "message" : xxxx,
  ....
}

Api list

Authentication

Sign-up User

  • Request
POST /api/auth/signup
Header Content-Type : applicaton/json
Parameter Type
email string
name string
numberPhone string
password string
username string
  • Response
{
  "message": "string",
  "success": boolean
}

User Sign-in

  • Request
POST /api/auth/signin
Header Content-Type : application/json
Parameter Type
email string
password string
  • Response
{
  "result": "string",
  "status": boolean,
  "tokenType": "string"
}

Admin Sign-in

  • Request
POST /api/auth/admin/signin
Header Content-Type : application/json
Parameter Type
email string
password string
  • Response
{
  "result": "string",
  "status": boolean,
  "tokenType": "string"
}

User

Get User Data

  • Request
GET /api/users
Header Authorization : Bearer [JWT_TOKEN] 
  • Response
{
  "userId": "string",
  "name": "string",
  "email": "string",
  "username": "string"
  "numberPhone": "string",
  "userPhoto": "string",
  "readKey": "string",
  "createdAt": timestamp,
  "updatedAt": timestamp
}

Get User Data From userId

  • Request
GET /api/users/{userId}
Header Authorization : Bearer [JWT_TOKEN]
Parameter Type
userId string
  • Response
{
  "userId": "string",
  "name": "string",
  "email": "string",
  "username": "string"
  "numberPhone": "string",
  "userPhoto": "string",
  "readKey": "string",
  "createdAt": timestamp,
  "updatedAt": timestamp
}

Change User Password

  • Request
PUT /api/users/edit/password
Header Authorization : Bearer [JWT_TOKEN]
Parameter Type
oldPassword string
newPassword string
  • Response
{
  "message": "string",
  "success": boolean
}

Edit User Profile

  • Request
PUT api/users/edit/profile
Header Authorization : Bearer [JWT_TOKEN]
Parameter Type
name xxx
username xxx
email xxx
numberPhone xxx
  • Response
{
  "message": "string",
  "success": boolean
}

{{Method}}

  • Request
PUT /api/users/edit/photo
Header Content-Type : multipart/form-data
Parameter Type
picture picture
  • Response
{
  "message": "string",
  "success": boolean
}

Market

Get Authenticated Market Data

  • Request
GET /api/markets
Header Authorization : Bearer [JWT_TOKEN]
  • Response
{
  "marketId": "string",
  "userID": "string",
  "marketName": "string",
  "marketBio": "string",
  "marketCode": "string",
  "marketPhoto": "string",
  "totalProduct": long,
  "createdAt": timestamp,
  "updatedAt": timestamp
}

Get Market Data From marketId

  • Request
GET /api/markets/{marketId}
  • Response
{
  "marketId": "string",
  "userID": "string",
  "marketName": "string",
  "marketBio": "string",
  "marketCode": "string",
  "marketPhoto": "string",
  "totalProduct": long,
  "createdAt": timestamp,
  "updatedAt": timestamp
}

Create new Market

  • Request
POST /api/markets/create
Header Authorization : Bearer [JWT_TOKEN]
Header Content-Type : application/json
Parameter Type
marketName string
marketBio string
  • Response
{
  "message": "string",
  "success": boolean
}

Edit Market Profile

  • Request
PUT /api/markets/edit/profile
Header Authorization : Bearer [JWT_TOKEN]
Header Content-Type : application/json
Parameter Type
marketName string
marketBio string
  • Response
{
  "message": "string",
  "success": boolean
}

Edit Market Profile

  • Request
PUT /api/markets/edit/profile/photo
Header Authorization : Bearer [JWT_TOKEN]
Header Content-Type : multipart/form-data
Parameter Type
picture picture
  • Response
{
  "message": "string",
  "success": boolean
}

Check Authenticated-Market's Product From productId

  • Request
GET /api/markets/check-book/{userId}/{key}/{fileName}
Header Authorization : Bearer [JWT_TOKEN]
Parameter Type
userId string
key string
fileName string
  • Response
Multipart Data

booklook's People

Contributors

okkamuhiba avatar handihand53 avatar

Watchers

James Cloos 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.