Welcome to the VVnT API documentation, showcasing the innovative backend code developed by Saurabh Maurya for VVnT Organization. Powered by SpringBoot, this code reflects precision and excellence, offering a seamless and robust experience. Dive into the realm of VVnT and witness Saurabh Maurya's vision, where every line of code signifies dedication, brilliance, and a commitment to unparalleled performance.
- Developer: Saurabh Maurya
- Website: VVnT
- Email: saurabhmaurya.in@gmail.com
- License: OPEN License
For additional information, please refer to our external documentation.
http://vvnt.up.railway.app - Generated server URL.
- UserController
- AuthController
- Login
- Login with Google
- ... (The rest of the AuthController operations follow a similar pattern)
- Endpoint:
/users/{userId}
- Method:
GET
- Parameters:
{userId}
: User ID (String)
- Response:
{ // UserDto details }
- Endpoint:
/users/{userId}
- Method:
PUT
- Parameters:
{userId}
: User ID (String)
- Request Body:
{ // UserDto details }
- Response:
{ // Updated UserDto details }
- Endpoint:
/users/{userId}
- Method:
DELETE
- Parameters:
{userId}
: User ID (String)
- Response:
{ "message": "User deleted successfully", "success": true, "status": "200 OK" }
- Endpoint:
/users
- Method:
GET
- Parameters:
pageNumber
(Optional): Page number (Integer, default: 0)pageSize
(Optional): Page size (Integer, default: 10)sortBy
(Optional): Sort field (String, default: "name")sortDir
(Optional): Sort direction (String, default: "asc")
- Response:
{ // PageableResponseUserDto details }
- Endpoint:
/users
- Method:
POST
- Request Body:
{ // UserDto details }
- Response:
{ // New UserDto details }
- Endpoint:
/users/image/{userId}
- Method:
GET
- Parameters:
{userId}
: User ID (String)
- Response:
{ // User image details }
- Endpoint:
/users/image/{userId}
- Method:
POST
- Parameters:
{userId}
: User ID (String)
- Request Body:
{ "userImage": "base64EncodedImage" }
- Response:
{ // ImageResponse details }
- Endpoint:
/users/search/{keywords}
- Method:
GET
- Parameters:
{keywords}
: Search keywords (String)pageNumber
(Optional): Page number (Integer, default: 0)pageSize
(Optional): Page size (Integer, default: 10)sortBy
(Optional): Sort field (String, default: "name")sortDir
(Optional): Sort direction (String, default: "asc")
- Response:
{ // PageableResponseUserDto details }
- Endpoint:
/users/email/{email}
- Method:
GET
- Parameters:
{email}
: User email (String)
- Response:
{ // UserDto details }
- Endpoint:
/auth/current
- Method:
GET
- Response:
{ // UserDto details }
- Endpoint:
/auth/login
- Method:
POST
- Request Body:
{ "email": "user@example.com", "password": "password123" }
- Response:
{ "jwtToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "user": { // UserDto details } }
- Security: Bearer Token (
JWT
)
- Endpoint:
/auth/google
- Method:
POST
- Request Body:
{ // Google Sign-In response }
- Response:
{ "jwtToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "user": { // UserDto details } }
- Security: Bearer Token (
JWT
)
... (The rest of the AuthController operations follow a similar pattern)
This documentation provides a comprehensive guide to the VVnT API. Explore and integrate to experience the seamless blend of innovation and expertise.
This version includes the specified addition. Feel free to use and modify it as needed
.