Skip to content

capstone-bangkeith/validin-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bangkit Capstone C22-KY05 Cloud Computing

This project is using Fastify as the server.

Stack

Development

  • Run yarn install to install dependencies and generate node_modules.
  • Run yarn dev to run the server.
  • Visit /documentation route to view the Swagger Documentation. Or see the pdf docs.

Routes

  • /kode-wilayah: Get all kode wilayah, maximum 10 items per page (can be changed).

Query

limit: modify the limit of items per page, default: 10. Example: /kode-wilayah?limit=69

page: navigate through the sea of kode wilayahs, default: 1. Example: /kode-wilayah?page=3

kode: filters the kode wilayah based on kode. Example: /kode-wilayah?kode=110110

Path

/kode-wilayah/{kode}: To get specific items for kode wilayah. Example: /kode-wilayah/110110

TODO

  • Unit test using Jest
  • Implement KTP submission endpoint