Skip to content

LunaTechnologies/rentalAppAPI

Repository files navigation

Rental API Endpoints

Auth

Operation Route Description Authorization Request Body Response Body
POST {{api_url}}/api/Auth/register Createa a new user - {
"userName": "string",
"email": "string",
"password": "string",
"role": "string"
}
-Registered
-Email already used
-Username already used
-Error at register
POST {{api_url}}/api/Auth/login Login - {
"email": "string",
"password": "string"
}
{
"success": bool,
"accessToken": string,
"refreshToken": string
}
POST {{api_url}}/api/Auth/refresh Get the refresh token - {
"accessToken": "string",
"refreshToken": "string"
}
refreshToken

Users

Operation Route Parameter Authorization Request Body Response Body
GET {{api_url}}/api/User/getAllUsers Admin - -
DELETE {{api_url}}/api/User/removeUser - {
"userName":"string"
}
GET {{api_url}}/api/User/emailExist email - false/true
GET {{api_url}}/api/User/usernameExist username - false/true

Service

Operation Route Parameter Authorization Request Body Response Body
POST {{api_url}}/api/Service/CreateService - {"title": "string","description":"string","phoneNumber": "string","price": 0,"username": "string","servType": "string","pictures": [{"path": "string"}]} identificationString
DELETE {{api_url}}/api/Service/DeleteService IdentificationString - success/Service Doesn't exist
GET {{api_url}}/api/Service/GetServiceByIdentificationString IdentificationString - {"title": "smecher","description": "string","phoneNumber": "string","price": int,"username": "string","servType": "string","pictures": [{"path": "string"}]}
/
Service doesn't exist

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages