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:
n.nakhostin
2025-08-12 10:02:47 +03:30
parent e3ee3d64ce
commit 047850cca3
5 changed files with 2 additions and 184 deletions
-35
View File
@@ -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