Schedular
  1. Auth
Schedular
Actual Apis Schedula
  • Actual Apis Schedula
  • Dev Cases For Schedula
  • Auth
    • Register For Doctor
      POST
    • Register For Patients
      POST
    • Registration For Admin
      POST
    • Registration Error Username & Email should be unique
      POST
  • Login
    • Log in for Doctor
      POST
    • Admin Log in
      POST
    • Log in Error
      POST
  • Roles
    • Get roles related to a role
      POST
    • Permissions for roles
      POST
    • Delete Permissions
      POST
    • Add permission for roles
      POST
  • Patient
    • Get all patients details
      POST
    • get single patient details
      POST
    • Modify patient details
      POST
    • Delete patient
      POST
  • Timings
    • Get all timings for a doctor
      POST
    • add timings for doctor
      POST
    • Update timings
      POST
    • Delete timings
      POST
  • Support ticket
    • Get all support Tickets
      POST
    • Add support ticket
      POST
    • update support ticket
      POST
    • Delete Support Ticket
      POST
  • feedback
    • Get feedback
    • Create Feedback
    • Update Feedback
    • Delete Feedback
  • Chat
    • Get all chat
    • Create chat
    • Update chat
    • Delete chat
    • Chat Subscription
  • Doctor
    • Get all Doctors
    • get single doctor
    • Update doctor details
    • Delete Doctor details
    • search doctor
    • Search Appointment
    • Get all appointmet slots
  • Appointment
    • get all appointment for patient
    • get appointment for doctor
    • Create appointment
    • Delete appointment
    • Update Appointment
    • Bulk update Appointment
  1. Auth

Registration Error Username & Email should be unique

Developing
POST
http://localhost:3000/graphql
Mutation
Variables
{
  "register": {
    "username": "dev",
    "email": "dev@po.com",
    "role": "admin",
    "password": "Pass@123",
    "phone": "9657970148",
    "sex": "male",
    "age": 20
  }
}

Request

Header Params
Authorization
string 
optional
Default:
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImRldjEiLCJ1c2VySWQiOjQsInVzZXJfYXNzaWdubWVudCI6ImFkbWluIiwiaWF0IjoxNzI3MzYxMDk0LCJleHAiOjE3MjczNjQ2OTR9.Zckr61S0kHq7ZogL6aI7FTeF45rSMqZM74YQ1_MAqoA

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:3000/graphql' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImRldjEiLCJ1c2VySWQiOjQsInVzZXJfYXNzaWdubWVudCI6ImFkbWluIiwiaWF0IjoxNzI3MzYxMDk0LCJleHAiOjE3MjczNjQ2OTR9.Zckr61S0kHq7ZogL6aI7FTeF45rSMqZM74YQ1_MAqoA'

Responses

🟢200Success
application/json
Body
object {0}
Example
{
    "errors": [
        {
            "message": "duplicate key value violates unique constraint \"UQ_a000cca60bcf04454e727699490\"",
            "locations": [
                {
                    "line": 2,
                    "column": 3
                }
            ],
            "path": [
                "register"
            ],
            "extensions": {
                "code": "INTERNAL_SERVER_ERROR",
                "stacktrace": [
                    "QueryFailedError: duplicate key value violates unique constraint \"UQ_a000cca60bcf04454e727699490\"",
                    "    at PostgresQueryRunner.query (/home/siddharth/drive/Intern_2024_Logic_Legends/src/driver/postgres/PostgresQueryRunner.ts:331:19)",
                    "    at processTicksAndRejections (node:internal/process/task_queues:105:5)",
                    "    at InsertQueryBuilder.execute (/home/siddharth/drive/Intern_2024_Logic_Legends/src/query-builder/InsertQueryBuilder.ts:163:33)",
                    "    at SubjectExecutor.executeInsertOperations (/home/siddharth/drive/Intern_2024_Logic_Legends/src/persistence/SubjectExecutor.ts:435:42)",
                    "    at SubjectExecutor.execute (/home/siddharth/drive/Intern_2024_Logic_Legends/src/persistence/SubjectExecutor.ts:137:9)",
                    "    at EntityPersistExecutor.execute (/home/siddharth/drive/Intern_2024_Logic_Legends/src/persistence/EntityPersistExecutor.ts:182:21)",
                    "    at UsersService.createUser (/home/siddharth/drive/Intern_2024_Logic_Legends/src/modules/users/users.service.ts:41:23)",
                    "    at AuthService.register (/home/siddharth/drive/Intern_2024_Logic_Legends/src/modules/auth/auth.service.ts:23:23)",
                    "    at target (/home/siddharth/drive/Intern_2024_Logic_Legends/node_modules/@nestjs/core/helpers/external-context-creator.js:74:28)",
                    "    at Object.register (/home/siddharth/drive/Intern_2024_Logic_Legends/node_modules/@nestjs/core/helpers/external-proxy.js:9:24)"
                ]
            }
        }
    ],
    "data": null
}
Modified at 2024-09-24 12:24:16
Previous
Registration For Admin
Next
Log in for Doctor
Built with