Remove deprecated /api/v1/profile/with-companies endpoint and update related documentation
- Deleted the `/api/v1/profile/with-companies` endpoint from the API documentation, Swagger files, and router to streamline the API structure. - Updated the `GetProfile` handler to utilize the `GetProfileWithCompanies` service method for improved data retrieval. - Enhanced overall API documentation consistency by removing obsolete references and ensuring accurate representation of the current API structure.
This commit is contained in:
@@ -3762,41 +3762,6 @@ paths:
|
||||
summary: Refresh customer access token
|
||||
tags:
|
||||
- Authorization
|
||||
/api/v1/profile/with-companies:
|
||||
get:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Retrieve current customer profile information along with their
|
||||
assigned companies.
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: Profile retrieved successfully
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/response.APIResponse'
|
||||
- properties:
|
||||
data:
|
||||
$ref: '#/definitions/customer.CustomerResponse'
|
||||
type: object
|
||||
"401":
|
||||
description: Unauthorized - Invalid or missing token
|
||||
schema:
|
||||
$ref: '#/definitions/response.APIResponse'
|
||||
"404":
|
||||
description: Not found - Customer not found
|
||||
schema:
|
||||
$ref: '#/definitions/response.APIResponse'
|
||||
"500":
|
||||
description: Internal server error
|
||||
schema:
|
||||
$ref: '#/definitions/response.APIResponse'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Get customer profile with companies
|
||||
tags:
|
||||
- Authorization
|
||||
securityDefinitions:
|
||||
BearerAuth:
|
||||
description: 'Type "Bearer" followed by a space and JWT token. Example: "Bearer
|
||||
|
||||
Reference in New Issue
Block a user