openapi: 3.0.0 paths: /auth/otp/request: post: operationId: AuthController_requestOtp parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/RequestOtpDto' responses: '200': description: '' tags: &ref_0 - auth /auth/otp/verify: post: operationId: AuthController_verifyOtp parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/VerifyOtpDto' responses: '200': description: '' tags: *ref_0 /auth/register: post: operationId: AuthController_register parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/RegisterDto' responses: '201': description: '' tags: *ref_0 /auth/login: post: operationId: AuthController_login parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/LoginDto' responses: '200': description: '' tags: *ref_0 /auth/refresh: post: operationId: AuthController_refresh parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/RefreshDto' responses: '200': description: '' tags: *ref_0 /auth/logout: post: operationId: AuthController_logout parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/RefreshDto' responses: '204': description: '' tags: *ref_0 /users/me: get: operationId: UsersController_me parameters: [] responses: '200': description: '' tags: &ref_1 - users security: &ref_2 - bearer: [] /users/me/onboarding: patch: operationId: UsersController_completeOnboarding parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/OnboardingDto' responses: '200': description: '' tags: *ref_1 security: *ref_2 info: title: AloFarm API description: AloFarm backend API — auth module (Milestone 1) version: 0.1.0 contact: {} tags: [] servers: [] components: securitySchemes: bearer: scheme: bearer bearerFormat: JWT type: http schemas: RequestOtpDto: type: object properties: phone: type: string example: '+994501234567' required: - phone VerifyOtpDto: type: object properties: phone: type: string example: '+994501234567' otp: type: string example: '123456' required: - phone - otp RegisterDto: type: object properties: email: type: string example: farmer@example.com password: type: string example: a-strong-password required: - email - password LoginDto: type: object properties: email: type: string example: farmer@example.com password: type: string required: - email - password RefreshDto: type: object properties: refreshToken: type: string required: - refreshToken OnboardingDto: type: object properties: role: type: string enum: - farmer - agronomist region: type: string example: Bərdə primaryCrop: type: string example: Cotton required: - role - region - primaryCrop