Coder Social home page Coder Social logo

scheduler's Introduction

Scheduler

The Scheduler API is a versatile tool that enables seamless integration of appointment scheduling functionality into applications. It offers features for creating, managing, and deleting appointments, as well as defining availability and scheduling rules. . The API supports user authentication, customization, and seamless integration with existing systems, making it an ideal.

Appointment

It entails every CRUD application for appointments. It can only be access by authenticated users

Authorization: Bearer {{token}}

GET GetById Get appointment by id Request curl --location 'https://localhost:7225/api/Appointment/5'

Response

{
  "data": {
    "id": 0,
    "title": "string",
    "description": "string",
    "createdDate": "2023-05-30T11:03:39.189Z",
    "appointmentDate": "2023-05-30T11:03:39.189Z",
    "userId": 0
  },
  "success": true,
  "message": "string"
}

GET GetAll Get all appointments created by an authenticated user Request curl --location 'https://localhost:7225/api/Appointment/getAll'

Response

{
  "data":[ 
  {
    "id": 0,
    "title": "string",
    "description": "string",
    "createdDate": "2023-05-30T11:02:51.977Z",
    "appointmentDate": "2023-05-30T11:02:51.977Z",
    "userId": 0
  }
  ],
  "success": true,
  "message": "string"
}

POST Add Appointments Request curl --location 'https://localhost:7225/api/Appointment'

Body

{
  "title": "string",
  "description": "string",
  "appointmentDate": "2023-05-30T11:10:08.362Z"
}

Response

{
  "data": {
    "id": 0,
    "title": "string",
    "description": "string",
    "createdDate": "2023-05-30T11:12:27.571Z",
    "appointmentDate": "2023-05-30T11:12:27.571Z",
    "userId": 0
  },
  "success": true,
  "message": "string"
}

PUT Update Appointment

Request curl --location 'https://localhost:7225/api/Appointment'

Body

{
  "id": 0,
  "title": "string",
  "description": "string",
  "appointmentDate": "2023-05-30T11:12:27.576Z"
}

Response

{
  "data": [
    {
      "id": 0,
      "title": "string",
      "description": "string",
      "createdDate": "2023-05-30T11:12:27.607Z",
      "appointmentDate": "2023-05-30T11:12:27.607Z",
      "userId": 0
    }
  ],
  "success": true,
  "message": "string"
}

Delete Delete Appointment Request curl --location 'https://localhost:7225/api/Appointment?id=5' Query id 5 Response

{
  "data": [
    {
      "id": 0,
      "title": "string",
      "description": "string",
      "createdDate": "2023-05-30T11:15:18.891Z",
      "appointmentDate": "2023-05-30T11:15:18.891Z",
      "userId": 0
    }
  ],
  "success": true,
  "message": "string"
}

Authentication

Authentication Endpoint to add and login users

POST Login Request curl --location 'https://localhost:7225/api/Authentication/Login'

Body

{
  "username": "string",
  "email": "[email protected]",
  "password": "string",
  "role": "string"
}

Response

{
  "data": 0,
  "success": true,
  "message": "string"
}

POST Register Request curl --location 'https://localhost:7225/api/Authentication/Register'

Body

{
  "username": "string",
  "password": "string"
}

Response

{
  "data": 0,
  "success": true,
  "message": "string"
}

User

Entails all CRUD application for user endpoint

Authorization: Bearer {{token}}

GET GetById Get user by id Request curl --location 'https://localhost:7225/api/user/5'

Response

{
  "data": {
    "id": 0,
    "username": "string",
    "email": "string",
    "isAdmin": "string",
    "passwordHash": "string",
    "passwordSalt": "string",
    "appointments": [
      {
        "id": 0,
        "title": "string",
        "description": "string",
        "createdDate": "2023-05-30T11:21:24.887Z",
        "appointmentDate": "2023-05-30T11:21:24.887Z",
        "userId": 0
      }
    ]
  },
  "success": true,
  "message": "string"
}

GET GetUsers Get all appointments created by an authenticated user Request curl --location 'https://localhost:7225/api/User'

Response

{
  "data": [
    {
      "id": 0,
      "username": "string",
      "email": "string",
      "isAdmin": "string",
      "passwordHash": "string",
      "passwordSalt": "string",
      "appointments": [
        {
          "id": 0,
          "title": "string",
          "description": "string",
          "createdDate": "2023-05-30T11:21:57.440Z",
          "appointmentDate": "2023-05-30T11:21:57.440Z",
          "userId": 0
        }
      ]
    }
  ],
  "success": true,
  "message": "string"
}

POST Add User Request curl --location 'https://localhost:7225/api/User'

Body

{
  "username": "string",
  "email": "[email protected]",
  "password": "string",
  "role": "string"
}

Response

{
  "data": {
    "id": 0,
    "title": "string",
    "description": "string",
    "createdDate": "2023-05-30T11:23:10.539Z",
    "appointmentDate": "2023-05-30T11:23:10.539Z",
    "userId": 0
  },
  "success": true,
  "message": "string"
}

scheduler's People

Contributors

mayowasodipo avatar mayorhack avatar

Stargazers

 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.