Skip to content

A RESTful API to monitor up or down time of user define links.

Notifications You must be signed in to change notification settings

muhammad-alamin1/raw-node-monitoring-app

Repository files navigation

Monitoring API (RAW Node)

  • API Server
  • Create, Edit, Update, Delete User
  • CRUD operation without database, using file system
  • Token based authentication
  • Logout Mechanism
  • Set links & Up or Down links
  • Edit or Delete links & rate limit
  • Check up or down links per one minute

How to use this application

Clone git -> https://github.com/muhammad-alamin1/raw-node-monitoring-app.git

Postman has been used as client side for this application
This application run production & local. We run this application http://localhost:8000
This application all routes are available -->
    * http://localhost:8000/user
    * http://localhost:8000/token
    * http://localhost:8000/check

User Related routes

1. Create user :

    * url: http://localhost:8000/user
    * method: POST
    * requirements data --> firstName(string), lastName(string), phone(string), password(string),toAgreement(boolean)
    * Postman body data like this & hit enter:
        {
            "firstName": "John",
            "lastName": "Doe",
            "phone": "01311111111",
            "password": "YYYY",
            "toAgreement": true,
        }

2. Get user :

    * url: http://localhost:8000/user?phone=01311111111
    * method: GET
    * Authentication check! Create token & set headers(like dictionary) key=token, value=htb76qi7ajmkc7lq17qrtrtb6
    * Output data like this:
        {
            "firstName": "John",
            "lastName": "Doe",
            "phone": "01311111111",
            "toAgreement": true,
        }

 3. Update user :

    * url: http://localhost:8000/user
    * method: PUT
    * Phone number is primary key
    * Authentication check! Create token & set headers(like dictionary) key=token, value=htb76qi7ajmkc7lq17qrtrtb6
    * We must be send one updated field, postman body data like this:
        {
            "firstName": "Abdur",
            "lastName": "Rahman",
            "phone": "01311111111",
            "password": "XXX"
        }

 4. Delete user :

    * url: http://localhost:8000/user?phone=01311111111
    * method: DELETE
    * Phone number is primary key
    * Authentication check! Create token & set headers(like dictionary) key=token, value=htb76qi7ajmkc7lq17qrtrtb6

Token Related routes

About

A RESTful API to monitor up or down time of user define links.

Topics

Resources

Stars

Watchers

Forks