Skip to content

defri-ansyah/Ankasa-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ankasa Ticketing

Node JS GitHub repo size GitHub contributors GitHub stars GitHub forks

Table of Contents

Prerequiste

Installation

Clone

$ git clone https://github.com/defri-ansyah/Ankasa-API.git
$ cd Ankasa-API
$ npm install

Create Environment Variable

DB_HOST=YOUR_DB_HOST
DB_USER=YOUR_DB_USER
DB_PASSWORD=YOUR_DB_PASSWORD
DB_NAME=YOUR_TABLE_NAME
PORT=YOUR_PORT
SECRET_KEY = YOUR_SECRET_KEY
URL_EMAIL_CONFIRM = YOUR_EMAIL_VALIDATION_PAGE_FRONTEND
EMAIL = YOUR_EMAIL_CONFIRMATION
PASSWORD = YOUR_EMAIL_PASSWORD

Start Development Server

$ npm run serve

Link Collection Postman

Run in Postman

API Endpoint

Auth Endpoint

No HTTP Method URI Operation
1 POST /api/auth/signup Register new user
2 POST /api/auth/login login user
3 POST /api/auth/forgot-password/request Request forgot password via email
4 POST /api/auth/forgot-password/new-password/:token Forgot password
5 PATCH /api/auth/edit-password Edit password from profile user

User Endpoint

No HTTP Method URI Operation
1 PATCH /api/user/edit-profile Edit profile user
2 PATCH /api/user/update-image update image user
3 DELETE /api/user/delete-image Delete image user
4 GET /api/user/detail Get detail user
5 GET /api/user/my booking Get all booking user

Ticketing Endpoint

No HTTP Method URI Operation
1 GET /api/ticketing/find Get find ticket
2 POST /api/ticketing/select-ticket Select ticket by flight route id for order
3 GET /api/ticketing/detail/:order_id Get order detail by order id & userid
4 PATCH /api/ticketing/input-flight-detail Input flight detail by order id
5 GET /api/ticketing/amount-completed-payment Get total completed payment on admin

Data look-up Endpoint

No HTTP Method URI Operation
1 GET /api/data-lookup/city Get city on find ticket

Airlines Endpoint

No HTTP Method URI Operation
1 POST /api/airlines/insert-airlines Add new airlines on admin
2 DELETE /api/airlines/delete/:id Delete airlines on admin
3 GET /api/airlines Get all airlines on admin
4 PATCH /api/airlines/update-airlines/:id Update name airlines on admin
5 GET /api/airlines/get-by-id/:id Get airlines by id on admin
6 GET /api/airlines/amount Get total airlines on admin
7 POST /api/airlines/search Search airlines on admin
8 PATCH /api/airlines/update-logo/:id Update logo airlines on admin

Airlines Endpoint

No HTTP Method URI Operation
1 POST /api/flightroute/insert-route Insert flighroutes on admin
2 DELETE /api/flighroute/delete/:id Delete flightroutes on admin
3 GET /api/flighroute Get all flightroutes on admin
4 PATCH /api/flightroute/update/:id Update flightroutes on admin
5 GET /api/flightroute/get-by-id/:id Get flightroutes by id on admin
6 GET /api/flightroute/amount Get total flightroutes on admin
7 POST /api/flightroute/search Search flightroutes on admin

About Project

Ankasa is a project inspired by one of Unicorn in Indonesia. With Ankasa Ticketing, users can search a specific flights to another countries. The App also has a Find Ticket and Filter Features that allows users to select a country as an arrival destination and explore flight prices to various regions.

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

Fork the Project

  1. Create your Feature Branch git checkout -b [feature]
  2. Commit your Changes git commit -m 'Add some feature'
  3. Push to the Branch git push origin [feature]
  4. Open a Pull Request

Related Project

Contributors

Defri Ansyah
Defri Ansyah
Gefy Aqiilah Aqshal
Gefy Aqiilah Aqshal
Arbi Dwi WIjaya
Arbi Dwi WIjaya
Trisa Safira Hasanah
Trisa Safira Hasanah

Copyright © 2021 Defri Ansyah

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published