Giter VIP home page Giter VIP logo

nest-scheduling-app's Introduction

NEST-SCHEDULING-APP

Description

This is an application to create a scheduling or appointment

Tech stack

  • NestJS
  • MongoDB
  • Mongoose

How to use

Run Application

Run the application in dev mode using this command

npm run start:dev

Endpoints


GET /appointments/slots

This endpoint used to get available slot on certain date

Query Params

Field Type Required (Y/N) Description
date string Y must be in yyyy-mm-dd format

Example

{
    "date": "2024-06-05"
}

Response Body

200 OK

Array of slot time that contains

Field Type Description
date string date of slot
time string time of slot
available_slots string number of slots available at certain date and time
400 BAD REQUEST
Field Type Description
message string message of the operation
500 INTERNAL SERVER ERROR
Field Type Description
message string message of the operation

GET /appointments

This endpoint used to get appointments

Response Body

200 OK

Array of appointments that contains

Field Type Description
_id string id of appointment
date string date of appointment
time string time of appointment
400 BAD REQUEST
Field Type Description
message string message of the operation
500 INTERNAL SERVER ERROR
Field Type Description
message string message of the operation

POST /appointments

This endpoint used to create a new appointment

Body

Field Type Required (Y/N) Description
date string Y date of appointment (must be in yyyy-mm-dd format)
time string Y time of appointment (must be in HH:mm format)

Example

{
    "date": "2024-06-20",
    "time": "10:00"
}

Response Body

201 CREATED
Field Type Description
message string message of the operation
appointment appointment interface contains appointment information (date, time)
400 BAD REQUEST
Field Type Description
message string message of the operation
500 INTERNAL SERVER ERROR
Field Type Description
message string message of the operation

nest-scheduling-app's People

Contributors

adhiyatmarama avatar

Watchers

 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.