COURTS
  1. Vendor
COURTS
  • Auth
    • Login
      POST
    • Login as User
      POST
    • Forgot Password
      POST
    • Reset Password
      PUT
    • Validate Session
      GET
    • Logout
      DELETE
    • Login With Google
      POST
  • Admin
    • Vendor
      • Add Vendors
        POST
      • Update Vendor
        PUT
      • Get Vendor Detail
        GET
      • Delete Vendor
        DELETE
      • Get All Vendors
        GET
    • Update Admin
      PUT
    • Get Admin Detail
      GET
  • Users
    • Update User
      PUT
    • Add User
      POST
    • Get User Detail
      GET
    • Delete User
      DELETE
  • Vendors
    • Delete Vendor
      DELETE
    • Get Vendors Detail Detail
      GET
    • Update Vendor
      PUT
  1. Vendor

Add Vendors

Developing
POST
/admin/vendors
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:3000/api/admin/vendors' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "id": "string",
    "firstName": "string",
    "lastName": "string",
    "email": "string",
    "password": "string",
    "roleType": true,
    "isActive": true,
    "imgUrl": "string"
}'
Response Response Example
{
    "responseMessage": [
        "string"
    ],
    "responseCode": "string",
    "responseData": {
        "vendor": {}
    }
}

Request

Header Params
Authorization
string 
optional
Bearer Token
Body Params application/json
id
string 
required
firstName
string 
required
lastName
string 
required
email
string 
required
password
string 
required
roleType
boolean 
required
0 => admin
1 => vendor
2 => user
isActive
boolean 
required
1 => Active
0 => Blocked
imgUrl
string 
optional
Examples

Responses

🟢201Created
application/json
Body
responseMessage
array[string]
required
responseCode
string 
required
responseData
object 
required
vendor
object 
required
Modified at 2025-05-23 12:56:10
Previous
Login With Google
Next
Update Vendor
Built with