Giter VIP home page Giter VIP logo

learn-raw-nodejs's Introduction

UpTime Monitoring API - Raw NodeJS

All credit goes to โค๏ธ "Learn with sumit"

#User- CRUD

  • URL: /user

  • Method : POST

  • Body: { "firstName": "sohag", "lastName": "mahin", "phone": "01712300000", "password": "123456", "tosAgreement": true. }

  • Header: Content-Type: application/json

  • URL /user?phone=[phoneNumber]

  • Method : GET

  • URL Params: phoneNumber =[string]

  • Header:

    • Content-Type: application/json
    • token: 6aiegr0lunh9y8whs6mt
  • URL: /user

  • Method : PUT

  • Body: { "phone": "01712300000", "firstName": "Jahan", }

  • Header:

    • Content-Type: application/json
  • URL: /user?phone=[phoneNumber]

  • Method : DELETE

  • URL Params: phoneNumber =[string]

  • Header:

    • Content-Type: application/json
    • token: 6aiegr0lunh9y8whs6mt

#Token- CRUD

  • URL /token

  • Method : POST

  • Body: { "phone": "01767566678", "password":"123456" }

  • Header:

    • Content-Type: application/json
  • URL: token?id=[id]

  • Method : GET

  • URL Params: id =[string]

  • Header:

    • Content-Type: application/json
  • URL: /token

  • Method : PUT

  • Body: { "id": "3naxnx26lz0c1o1yzcy4", "extend": true }

  • Header:

    • Content-Type: application/json
  • URL: token?id=[id]

  • Method : DELETE

  • URL Params: id =[string]

  • Header:

    • Content-Type: application/json

#Checks- CRUD

  • URL: /check

  • Method : POST

  • Body: { "protocol": "https", "url": "google.com", "method": "GET", "successCodes": [200,201,301], "timeoutSeconds": 5 }

  • Header:

    • Content-Type: application/json
  • URL: /check?id=[id]

  • Method : GET

  • URL Params: id =[string]

  • Header:

    • Content-Type: application/json
    • token: 6aiegr0lunh9y8whs6mt
  • URL: /user

  • Method : PUT

  • Body: { "id": "x5iok4k2g0uz7px8f4fz", "successCodes": [200,201,301] }

  • Header:

    • Content-Type: application/json
    • token: 6aiegr0lunh9y8whs6mt
  • URL: /check?id=[id]

  • Method : DELETE

  • URL Params: id =[string]

  • Header:

    • Content-Type: application/json
    • token: 6aiegr0lunh9y8whs6mt

END ๐Ÿ”š

learn-raw-nodejs's People

Contributors

sohagmahin avatar

Stargazers

 avatar

Watchers

 avatar  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.