openapi: 3.1.0 info: title: Api version: 0.1.0 description: Marketplace de Servicios API servers: - url: /api description: Base API path tags: - name: health description: Health operations - name: auth description: Authentication - name: users description: User management - name: admin description: Admin operations - name: listings description: Service and product listings - name: categories description: Categories - name: industries description: Industries (rubros) - name: messages description: Internal messaging - name: conversations description: Conversations - name: jobs description: Job postings and applications - name: cvs description: Public CVs paths: /healthz: get: operationId: healthCheck tags: [health] summary: Health check responses: "200": description: Healthy content: application/json: schema: $ref: "#/components/schemas/HealthStatus" /auth/register: post: operationId: register tags: [auth] summary: Register a new user requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/RegisterBody" responses: "201": description: User created content: application/json: schema: $ref: "#/components/schemas/AuthResponse" "400": description: Validation error content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /auth/login: post: operationId: login tags: [auth] summary: Login requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/LoginBody" responses: "200": description: Login successful content: application/json: schema: $ref: "#/components/schemas/AuthResponse" "401": description: Invalid credentials content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /auth/logout: post: operationId: logout tags: [auth] summary: Logout responses: "200": description: Logged out content: application/json: schema: $ref: "#/components/schemas/SuccessResponse" /auth/me: get: operationId: getMe tags: [auth] summary: Get current user responses: "200": description: Current user content: application/json: schema: $ref: "#/components/schemas/User" "401": description: Not authenticated content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" patch: operationId: updateProfile tags: [auth] summary: Update current user's profile requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UpdateProfileBody" responses: "200": description: Updated user content: application/json: schema: $ref: "#/components/schemas/User" "401": description: Not authenticated content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /auth/forgot-password: post: operationId: forgotPassword tags: [auth] summary: Request a password reset email requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/ForgotPasswordBody" responses: "200": description: Reset email sent (always returns success) content: application/json: schema: $ref: "#/components/schemas/SuccessResponse" /auth/reset-password: post: operationId: resetPassword tags: [auth] summary: Reset password using token from email requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/ResetPasswordBody" responses: "200": description: Password reset successful content: application/json: schema: $ref: "#/components/schemas/SuccessResponse" "400": description: Invalid or expired token content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /auth/verify-email: post: operationId: verifyEmail tags: [auth] summary: Verify email using token requestBody: required: true content: application/json: schema: type: object properties: email: type: string token: type: string required: - email - token responses: "200": description: Email verified content: application/json: schema: $ref: "#/components/schemas/SuccessResponse" "400": description: Invalid token content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /auth/resend-verification: post: operationId: resendVerification tags: [auth] summary: Resend verification email responses: "200": description: Verification email sent content: application/json: schema: $ref: "#/components/schemas/SuccessResponse" "401": description: Not authenticated content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /categories: get: operationId: getCategories tags: [categories] summary: List all categories responses: "200": description: List of categories content: application/json: schema: type: array items: $ref: "#/components/schemas/Category" /listings: get: operationId: getListings tags: [listings] summary: List all active listings parameters: - name: categoryId in: query schema: type: ["integer", "null"] - name: type in: query schema: type: ["string", "null"] enum: [service, product, null] - name: search in: query schema: type: ["string", "null"] - name: locality in: query schema: type: ["string", "null"] responses: "200": description: List of listings content: application/json: schema: type: array items: $ref: "#/components/schemas/ListingWithProvider" post: operationId: createListing tags: [listings] summary: Create a new listing (providers only) requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CreateListingBody" responses: "201": description: Listing created content: application/json: schema: $ref: "#/components/schemas/Listing" "400": description: Validation error content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /listings/{id}: get: operationId: getListing tags: [listings] summary: Get listing by ID parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Listing details content: application/json: schema: $ref: "#/components/schemas/ListingWithProvider" "404": description: Not found content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" patch: operationId: updateListing tags: [listings] summary: Update a listing parameters: - name: id in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UpdateListingBody" responses: "200": description: Updated listing content: application/json: schema: $ref: "#/components/schemas/Listing" delete: operationId: deleteListing tags: [listings] summary: Delete a listing parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Deleted content: application/json: schema: $ref: "#/components/schemas/SuccessResponse" /listings/my: get: operationId: getMyListings tags: [listings] summary: Get current provider's listings responses: "200": description: My listings content: application/json: schema: type: array items: $ref: "#/components/schemas/MyListing" /listings/featured: get: operationId: getFeaturedListings tags: [listings] summary: Get featured/top listings per category responses: "200": description: Featured listings grouped by category content: application/json: schema: type: array items: $ref: "#/components/schemas/CategoryWithListings" /conversations: get: operationId: getConversations tags: [conversations] summary: Get current user's conversations responses: "200": description: List of conversations content: application/json: schema: type: array items: $ref: "#/components/schemas/ConversationWithDetails" post: operationId: createConversation tags: [conversations] summary: Start a conversation with a provider about a listing requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CreateConversationBody" responses: "201": description: Conversation created content: application/json: schema: $ref: "#/components/schemas/Conversation" /conversations/{id}/messages: get: operationId: getMessages tags: [messages] summary: Get messages for a conversation parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Messages content: application/json: schema: type: array items: $ref: "#/components/schemas/Message" post: operationId: sendMessage tags: [messages] summary: Send a message in a conversation parameters: - name: id in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/SendMessageBody" responses: "201": description: Message sent content: application/json: schema: $ref: "#/components/schemas/Message" /upload/image: post: operationId: uploadImage tags: [listings] summary: Upload an image and get URL requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UploadImageBody" responses: "200": description: Image URL content: application/json: schema: $ref: "#/components/schemas/UploadImageResponse" /admin/users: get: operationId: adminGetUsers tags: [admin] summary: Get all users (admin only) responses: "200": description: List of all users content: application/json: schema: type: array items: $ref: "#/components/schemas/User" /admin/users/{id}: patch: operationId: adminUpdateUser tags: [admin] summary: Update a user (admin only) parameters: - name: id in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/AdminUpdateUserBody" responses: "200": description: Updated user content: application/json: schema: $ref: "#/components/schemas/User" "404": description: User not found content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" delete: operationId: adminDeleteUser tags: [admin] summary: Delete a user (admin only) parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Deleted content: application/json: schema: $ref: "#/components/schemas/SuccessResponse" "400": description: Cannot delete content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /admin/listings: get: operationId: adminGetListings tags: [admin] summary: Get all listings (admin only) responses: "200": description: List of all listings content: application/json: schema: type: array items: $ref: "#/components/schemas/ListingWithProvider" /admin/listings/{id}: delete: operationId: adminDeleteListing tags: [admin] summary: Delete any listing (admin only) parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Deleted content: application/json: schema: $ref: "#/components/schemas/SuccessResponse" /admin/listings/{id}/approve: patch: operationId: adminApproveListing tags: [admin] summary: Approve or reject a listing (admin only) parameters: - name: id in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: type: object properties: approved: type: boolean required: - approved responses: "200": description: Listing approval status updated content: application/json: schema: $ref: "#/components/schemas/SuccessResponse" /admin/jobs: get: operationId: adminGetJobs tags: [admin] summary: Get all job postings (admin only) responses: "200": description: List of all job postings content: application/json: schema: type: array items: $ref: "#/components/schemas/JobPostingWithCompany" /admin/jobs/{id}/approve: patch: operationId: adminApproveJob tags: [admin] summary: Approve or reject a job posting (admin only) parameters: - name: id in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: type: object properties: approved: type: boolean required: - approved responses: "200": description: Job approval status updated content: application/json: schema: $ref: "#/components/schemas/SuccessResponse" /admin/stats: get: operationId: adminGetStats tags: [admin] summary: Get platform stats (admin only) responses: "200": description: Platform statistics content: application/json: schema: $ref: "#/components/schemas/AdminStats" /admin/categories: post: operationId: adminCreateCategory tags: [admin] summary: Create a category (admin only) requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CreateCategoryBody" responses: "201": description: Category created content: application/json: schema: $ref: "#/components/schemas/Category" "400": description: Validation error content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /admin/categories/{id}: patch: operationId: adminUpdateCategory tags: [admin] summary: Update a category (admin only) parameters: - name: id in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UpdateCategoryBody" responses: "200": description: Updated category content: application/json: schema: $ref: "#/components/schemas/Category" delete: operationId: adminDeleteCategory tags: [admin] summary: Delete a category (admin only) parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Deleted content: application/json: schema: $ref: "#/components/schemas/SuccessResponse" "400": description: Category in use content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /support/conversation: post: operationId: createSupportConversation tags: [conversations] summary: Create or get support conversation with admin responses: "200": description: Support conversation content: application/json: schema: $ref: "#/components/schemas/Conversation" "201": description: Support conversation created content: application/json: schema: $ref: "#/components/schemas/Conversation" /bookings: get: operationId: getMyBookings tags: [bookings] summary: Get current user's bookings (as client or provider) responses: "200": description: List of bookings content: application/json: schema: type: array items: $ref: "#/components/schemas/BookingWithDetails" post: operationId: createBooking tags: [bookings] summary: Create a booking for a listing requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CreateBookingBody" responses: "201": description: Booking created content: application/json: schema: $ref: "#/components/schemas/Booking" "400": description: Validation error content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /bookings/{id}/status: patch: operationId: updateBookingStatus tags: [bookings] summary: Update booking status (confirm, start, complete, deliver) parameters: - name: id in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UpdateBookingStatusBody" responses: "200": description: Updated booking content: application/json: schema: $ref: "#/components/schemas/Booking" "400": description: Invalid status transition content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /bookings/{id}: patch: operationId: updateBooking tags: [bookings] summary: Edit booking details (scheduledDate, notes) - provider only parameters: - name: id in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UpdateBookingBody" responses: "200": description: Updated booking content: application/json: schema: $ref: "#/components/schemas/Booking" "403": description: Not authorized content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /reviews: post: operationId: createReview tags: [reviews] summary: Leave a review after booking completion requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CreateReviewBody" responses: "201": description: Review created content: application/json: schema: $ref: "#/components/schemas/Review" "400": description: Validation error content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /listings/{id}/reviews: get: operationId: getListingReviews tags: [reviews] summary: Get reviews for a listing parameters: - name: id in: path required: true schema: type: integer responses: "200": description: List of reviews content: application/json: schema: type: array items: $ref: "#/components/schemas/ReviewWithUser" # ── Jobs ────────────────────────────────────────────────────────── /jobs: get: operationId: getJobs tags: [jobs] summary: List active job postings parameters: - name: search in: query schema: type: ["string", "null"] - name: locality in: query schema: type: ["string", "null"] - name: industry in: query schema: type: ["string", "null"] responses: "200": description: List of job postings content: application/json: schema: type: array items: $ref: "#/components/schemas/JobPostingWithCompany" post: operationId: createJob tags: [jobs] summary: Create a job posting (company only) requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CreateJobBody" responses: "201": description: Job created content: application/json: schema: $ref: "#/components/schemas/JobPosting" "400": description: Validation error content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /jobs/my: get: operationId: getMyJobs tags: [jobs] summary: Get company's own job postings responses: "200": description: My jobs content: application/json: schema: type: array items: $ref: "#/components/schemas/JobPosting" /jobs/my-applications: get: operationId: getMyApplications tags: [jobs] summary: Get client's own job applications responses: "200": description: My applications content: application/json: schema: type: array items: $ref: "#/components/schemas/JobApplicationWithJob" /jobs/{id}: get: operationId: getJob tags: [jobs] summary: Get job posting detail with questions parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Job detail content: application/json: schema: $ref: "#/components/schemas/JobPostingDetail" "404": description: Not found content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" patch: operationId: updateJob tags: [jobs] summary: Update a job posting parameters: - name: id in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UpdateJobBody" responses: "200": description: Updated job content: application/json: schema: $ref: "#/components/schemas/JobPosting" delete: operationId: deleteJob tags: [jobs] summary: Delete a job posting parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Deleted content: application/json: schema: $ref: "#/components/schemas/SuccessResponse" /jobs/{id}/apply: post: operationId: applyToJob tags: [jobs] summary: Apply to a job posting parameters: - name: id in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/ApplyJobBody" responses: "201": description: Application submitted content: application/json: schema: $ref: "#/components/schemas/JobApplication" "400": description: Already applied or error content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /jobs/{id}/applications: get: operationId: getJobApplications tags: [jobs] summary: Get applications for a job (company only) parameters: - name: id in: path required: true schema: type: integer responses: "200": description: List of applications content: application/json: schema: type: array items: $ref: "#/components/schemas/JobApplicationWithDetails" /jobs/applications/{id}/status: patch: operationId: updateApplicationStatus tags: [jobs] summary: Update application status (company only) parameters: - name: id in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UpdateApplicationStatusBody" responses: "200": description: Updated application content: application/json: schema: $ref: "#/components/schemas/JobApplication" /cvs/public: get: operationId: getPublicCvs tags: [cvs] summary: Get public CVs (company only) parameters: - name: search in: query schema: type: ["string", "null"] - name: locality in: query schema: type: ["string", "null"] - name: categoryId in: query schema: type: ["integer", "null"] responses: "200": description: List of public CVs content: application/json: schema: type: array items: $ref: "#/components/schemas/PublicCv" /industries: get: operationId: getIndustries tags: [industries] summary: List all industries (rubros) responses: "200": description: List of industries content: application/json: schema: type: array items: $ref: "#/components/schemas/Industry" /admin/industries: post: operationId: adminCreateIndustry tags: [admin] summary: Create an industry (admin only) requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CreateIndustryBody" responses: "201": description: Industry created content: application/json: schema: $ref: "#/components/schemas/Industry" "409": description: Duplicate name content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /admin/industries/{id}: patch: operationId: adminUpdateIndustry tags: [admin] summary: Update an industry (admin only) parameters: - name: id in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CreateIndustryBody" responses: "200": description: Updated industry content: application/json: schema: $ref: "#/components/schemas/Industry" "404": description: Not found content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" delete: operationId: adminDeleteIndustry tags: [admin] summary: Delete an industry (admin only) parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Deleted content: application/json: schema: $ref: "#/components/schemas/SuccessResponse" "404": description: Not found content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /jobs/{id}/check-applied: get: operationId: checkApplied tags: [jobs] summary: Check if current user already applied to a job parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Applied status content: application/json: schema: $ref: "#/components/schemas/CheckAppliedResponse" /admin/companies: get: operationId: adminGetCompanies tags: [admin] summary: Get all company accounts (admin only) responses: "200": description: List of companies content: application/json: schema: type: array items: $ref: "#/components/schemas/CompanyAccount" /admin/companies/{id}/approve: patch: operationId: adminApproveCompany tags: [admin] summary: Approve or reject a company account (admin only) parameters: - name: id in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: type: object properties: approved: type: boolean required: - approved responses: "200": description: Company status updated content: application/json: schema: $ref: "#/components/schemas/SuccessResponse" components: schemas: HealthStatus: type: object properties: status: type: string required: - status ErrorResponse: type: object properties: error: type: string required: - error SuccessResponse: type: object properties: success: type: boolean required: - success RegisterBody: type: object properties: name: type: string email: type: string password: type: string role: type: string enum: [provider, client, admin, company] phone: type: ["string", "null"] locality: type: ["string", "null"] companyName: type: ["string", "null"] cuit: type: ["string", "null"] companyAddress: type: ["string", "null"] companyIndustry: type: ["string", "null"] required: - name - email - password - role LoginBody: type: object properties: email: type: string password: type: string required: - email - password User: type: object properties: id: type: integer name: type: string email: type: string role: type: string enum: [provider, client, admin, company] phone: type: ["string", "null"] avatarUrl: type: ["string", "null"] locality: type: ["string", "null"] whatsapp: type: ["string", "null"] notifyEmail: type: boolean emailVerified: type: boolean companyName: type: ["string", "null"] cuit: type: ["string", "null"] companyAddress: type: ["string", "null"] companyIndustry: type: ["string", "null"] companyApproved: type: boolean cvUrl: type: ["string", "null"] cvPublic: type: boolean cvCategories: oneOf: - type: array items: type: integer - type: string enum: ["all"] - type: "null" createdAt: type: string required: - id - name - email - role - notifyEmail - emailVerified - companyApproved - cvPublic - createdAt AuthResponse: type: object properties: user: $ref: "#/components/schemas/User" required: - user Category: type: object properties: id: type: integer name: type: string icon: type: ["string", "null"] type: type: string enum: [service, product] description: type: ["string", "null"] required: - id - name - type Listing: type: object properties: id: type: integer providerId: type: integer categoryId: type: integer title: type: string description: type: string type: type: string enum: [service, product] price: type: number imageUrl: type: ["string", "null"] images: type: array items: type: string whatsapp: type: ["string", "null"] paymentMethods: type: array items: type: string isActive: type: boolean adminApproved: type: boolean quantity: type: ["integer", "null"] status: type: string enum: [active, sold, paused] pricingType: type: string enum: [unit, per_kilo] weightKg: type: ["number", "null"] sizes: type: ["array", "null"] items: type: object properties: name: type: string price: type: number stock: type: ["integer", "null"] required: - name - price variantLabel: type: ["string", "null"] requiresSchedule: type: boolean createdAt: type: string required: - id - providerId - categoryId - title - description - type - price - paymentMethods - isActive - adminApproved - status - pricingType - requiresSchedule - createdAt MyListing: allOf: - $ref: "#/components/schemas/Listing" - type: object properties: category: $ref: "#/components/schemas/Category" ListingWithProvider: type: object properties: id: type: integer providerId: type: integer categoryId: type: integer title: type: string description: type: string type: type: string enum: [service, product] price: type: number imageUrl: type: ["string", "null"] images: type: array items: type: string whatsapp: type: ["string", "null"] paymentMethods: type: array items: type: string isActive: type: boolean adminApproved: type: boolean quantity: type: ["integer", "null"] status: type: string enum: [active, sold, paused] pricingType: type: string enum: [unit, per_kilo] weightKg: type: ["number", "null"] sizes: type: ["array", "null"] items: type: object properties: name: type: string price: type: number stock: type: ["integer", "null"] required: - name - price variantLabel: type: ["string", "null"] requiresSchedule: type: boolean createdAt: type: string provider: $ref: "#/components/schemas/User" category: $ref: "#/components/schemas/Category" required: - id - providerId - categoryId - title - description - type - price - paymentMethods - isActive - adminApproved - status - pricingType - requiresSchedule - createdAt - provider - category CreateListingBody: type: object properties: categoryId: type: integer title: type: string description: type: string type: type: string enum: [service, product] price: type: number imageUrl: type: ["string", "null"] images: type: array items: type: string whatsapp: type: ["string", "null"] paymentMethods: type: array items: type: string quantity: type: ["integer", "null"] pricingType: type: string enum: [unit, per_kilo] weightKg: type: ["number", "null"] sizes: type: ["array", "null"] items: type: object properties: name: type: string price: type: number stock: type: ["integer", "null"] required: - name - price variantLabel: type: ["string", "null"] requiresSchedule: type: ["boolean", "null"] required: - categoryId - title - description - type - price - paymentMethods UpdateListingBody: type: object properties: categoryId: type: ["integer", "null"] title: type: ["string", "null"] description: type: ["string", "null"] type: type: ["string", "null"] enum: [service, product, null] price: type: ["number", "null"] imageUrl: type: ["string", "null"] images: type: ["array", "null"] items: type: string whatsapp: type: ["string", "null"] paymentMethods: type: ["array", "null"] items: type: string isActive: type: ["boolean", "null"] quantity: type: ["integer", "null"] status: type: ["string", "null"] enum: [active, sold, paused, null] pricingType: type: ["string", "null"] enum: [unit, per_kilo, null] weightKg: type: ["number", "null"] sizes: type: ["array", "null"] items: type: object properties: name: type: string price: type: number stock: type: ["integer", "null"] required: - name - price variantLabel: type: ["string", "null"] requiresSchedule: type: ["boolean", "null"] CategoryWithListings: type: object properties: category: $ref: "#/components/schemas/Category" listings: type: array items: $ref: "#/components/schemas/ListingWithProvider" required: - category - listings Conversation: type: object properties: id: type: integer clientId: type: integer providerId: type: integer listingId: type: ["integer", "null"] createdAt: type: string required: - id - clientId - providerId - createdAt ConversationWithDetails: type: object properties: id: type: integer clientId: type: integer providerId: type: integer listingId: type: ["integer", "null"] createdAt: type: string client: $ref: "#/components/schemas/User" provider: $ref: "#/components/schemas/User" listing: $ref: "#/components/schemas/ListingWithProvider" lastMessage: $ref: "#/components/schemas/Message" unreadCount: type: integer required: - id - clientId - providerId - createdAt - client - provider - unreadCount Message: type: object properties: id: type: integer conversationId: type: integer senderId: type: integer content: type: string isRead: type: boolean createdAt: type: string sender: $ref: "#/components/schemas/User" required: - id - conversationId - senderId - content - isRead - createdAt - sender SendMessageBody: type: object properties: content: type: string required: - content CreateConversationBody: type: object properties: providerId: type: integer listingId: type: ["integer", "null"] required: - providerId UploadImageBody: type: object properties: base64: type: string filename: type: string required: - base64 - filename UploadImageResponse: type: object properties: url: type: string required: - url AdminStats: type: object properties: totalUsers: type: integer totalProviders: type: integer totalClients: type: integer totalListings: type: integer activeListings: type: integer totalConversations: type: integer totalMessages: type: integer required: - totalUsers - totalProviders - totalClients - totalListings - activeListings - totalConversations - totalMessages AdminUpdateUserBody: type: object properties: name: type: ["string", "null"] email: type: ["string", "null"] password: type: ["string", "null"] role: type: ["string", "null"] enum: [provider, client, admin, null] phone: type: ["string", "null"] locality: type: ["string", "null"] CreateCategoryBody: type: object properties: name: type: string icon: type: ["string", "null"] type: type: string enum: [service, product] description: type: ["string", "null"] required: - name - type UpdateCategoryBody: type: object properties: name: type: ["string", "null"] icon: type: ["string", "null"] type: type: ["string", "null"] enum: [service, product, null] description: type: ["string", "null"] Booking: type: object properties: id: type: integer listingId: type: integer clientId: type: integer providerId: type: integer status: type: string enum: [pending, confirmed, in_progress, completed, delivered, cancelled] scheduledDate: type: ["string", "null"] notes: type: ["string", "null"] quantity: type: integer createdAt: type: string updatedAt: type: string required: - id - listingId - clientId - providerId - status - quantity - createdAt - updatedAt BookingWithDetails: type: object properties: id: type: integer listingId: type: integer clientId: type: integer providerId: type: integer status: type: string enum: [pending, confirmed, in_progress, completed, delivered, cancelled] scheduledDate: type: ["string", "null"] notes: type: ["string", "null"] quantity: type: integer createdAt: type: string updatedAt: type: string listing: $ref: "#/components/schemas/Listing" client: $ref: "#/components/schemas/User" provider: $ref: "#/components/schemas/User" required: - id - listingId - clientId - providerId - status - quantity - createdAt - updatedAt - listing - client - provider CreateBookingBody: type: object properties: listingId: type: integer scheduledDate: type: ["string", "null"] notes: type: ["string", "null"] quantity: type: integer required: - listingId UpdateBookingStatusBody: type: object properties: status: type: string enum: [confirmed, in_progress, completed, delivered, cancelled] required: - status UpdateBookingBody: type: object properties: scheduledDate: type: ["string", "null"] notes: type: ["string", "null"] Review: type: object properties: id: type: integer bookingId: type: integer listingId: type: integer reviewerId: type: integer providerId: type: integer rating: type: integer comment: type: ["string", "null"] createdAt: type: string required: - id - bookingId - listingId - reviewerId - providerId - rating - createdAt # ── Job schemas ─────────────────────────────────────────────────── JobPosting: type: object properties: id: type: integer companyId: type: integer title: type: string description: type: string industry: type: ["string", "null"] locality: type: ["string", "null"] modality: type: string enum: [presencial, remoto, hibrido] contractType: type: string enum: [full_time, part_time, freelance, pasantia] salaryMin: type: ["integer", "null"] salaryMax: type: ["integer", "null"] requirements: type: ["string", "null"] benefits: type: ["string", "null"] isActive: type: boolean adminApproved: type: boolean createdAt: type: string required: - id - companyId - title - description - modality - contractType - isActive - adminApproved - createdAt JobQuestion: type: object properties: id: type: integer jobId: type: integer questionText: type: string questionType: type: string enum: [text, single_choice, multiple_choice] options: type: ["array", "null"] items: type: string required: type: boolean sortOrder: type: integer required: - id - jobId - questionText - questionType - required - sortOrder JobCompanySummary: type: object properties: id: type: integer name: type: string companyName: type: ["string", "null"] avatarUrl: type: ["string", "null"] locality: type: ["string", "null"] companyIndustry: type: ["string", "null"] required: - id - name JobPostingWithCompany: allOf: - $ref: "#/components/schemas/JobPosting" - type: object properties: company: $ref: "#/components/schemas/JobCompanySummary" required: - company JobPostingDetail: allOf: - $ref: "#/components/schemas/JobPosting" - type: object properties: company: $ref: "#/components/schemas/JobCompanySummary" questions: type: array items: $ref: "#/components/schemas/JobQuestion" required: - company - questions CreateJobBody: type: object properties: title: type: string description: type: string industry: type: ["string", "null"] locality: type: ["string", "null"] modality: type: string enum: [presencial, remoto, hibrido] contractType: type: string enum: [full_time, part_time, freelance, pasantia] salaryMin: type: ["integer", "null"] salaryMax: type: ["integer", "null"] requirements: type: ["string", "null"] benefits: type: ["string", "null"] questions: type: array items: type: object properties: questionText: type: string questionType: type: string enum: [text, single_choice, multiple_choice] options: type: ["array", "null"] items: type: string required: type: boolean required: - questionText required: - title - description UpdateJobBody: type: object properties: title: type: ["string", "null"] description: type: ["string", "null"] industry: type: ["string", "null"] locality: type: ["string", "null"] modality: type: ["string", "null"] enum: [presencial, remoto, hibrido, null] contractType: type: ["string", "null"] enum: [full_time, part_time, freelance, pasantia, null] salaryMin: type: ["integer", "null"] salaryMax: type: ["integer", "null"] requirements: type: ["string", "null"] benefits: type: ["string", "null"] isActive: type: ["boolean", "null"] questions: type: ["array", "null"] items: type: object properties: questionText: type: string questionType: type: string enum: [text, single_choice, multiple_choice] options: type: ["array", "null"] items: type: string required: type: boolean required: - questionText JobApplication: type: object properties: id: type: integer jobId: type: integer applicantId: type: integer coverLetter: type: ["string", "null"] status: type: string enum: [pending, visto, rechazado, finalista] createdAt: type: string required: - id - jobId - applicantId - status - createdAt ApplyJobBody: type: object properties: coverLetter: type: ["string", "null"] answers: type: array items: type: object properties: questionId: type: integer answerText: type: ["string", "null"] required: - questionId JobAnswer: type: object properties: id: type: integer applicationId: type: integer questionId: type: integer answerText: type: ["string", "null"] question: $ref: "#/components/schemas/JobQuestion" required: - id - applicationId - questionId JobApplicantSummary: type: object properties: id: type: integer name: type: string email: type: string phone: type: ["string", "null"] avatarUrl: type: ["string", "null"] locality: type: ["string", "null"] cvUrl: type: ["string", "null"] required: - id - name - email JobApplicationWithDetails: allOf: - $ref: "#/components/schemas/JobApplication" - type: object properties: applicant: $ref: "#/components/schemas/JobApplicantSummary" answers: type: array items: $ref: "#/components/schemas/JobAnswer" required: - applicant - answers JobApplicationWithJob: allOf: - $ref: "#/components/schemas/JobApplication" - type: object properties: job: $ref: "#/components/schemas/JobPosting" company: $ref: "#/components/schemas/JobCompanySummary" required: - job - company UpdateApplicationStatusBody: type: object properties: status: type: string enum: [pending, visto, rechazado, finalista] required: - status PublicCv: type: object properties: id: type: integer name: type: string email: type: string phone: type: ["string", "null"] avatarUrl: type: ["string", "null"] locality: type: ["string", "null"] cvUrl: type: ["string", "null"] cvCategories: oneOf: - type: array items: type: integer - type: string enum: ["all"] - type: "null" createdAt: type: string required: - id - name - email - createdAt CompanyAccount: type: object properties: id: type: integer name: type: string email: type: string companyName: type: ["string", "null"] cuit: type: ["string", "null"] companyAddress: type: ["string", "null"] companyIndustry: type: ["string", "null"] companyApproved: type: boolean locality: type: ["string", "null"] createdAt: type: string required: - id - name - email - companyApproved - createdAt ReviewWithUser: type: object properties: id: type: integer bookingId: type: integer listingId: type: integer reviewerId: type: integer providerId: type: integer rating: type: integer comment: type: ["string", "null"] createdAt: type: string reviewer: $ref: "#/components/schemas/User" required: - id - bookingId - listingId - reviewerId - providerId - rating - createdAt - reviewer CreateReviewBody: type: object properties: bookingId: type: integer rating: type: integer comment: type: ["string", "null"] required: - bookingId - rating UpdateProfileBody: type: object properties: name: type: ["string", "null"] phone: type: ["string", "null"] avatarUrl: type: ["string", "null"] locality: type: ["string", "null"] whatsapp: type: ["string", "null"] notifyEmail: type: ["boolean", "null"] cvUrl: type: ["string", "null"] cvPublic: type: ["boolean", "null"] cvCategories: oneOf: - type: array items: type: integer - type: string enum: ["all"] - type: "null" companyName: type: ["string", "null"] cuit: type: ["string", "null"] companyAddress: type: ["string", "null"] companyIndustry: type: ["string", "null"] ForgotPasswordBody: type: object properties: email: type: string required: - email ResetPasswordBody: type: object properties: email: type: string token: type: string newPassword: type: string required: - email - token - newPassword Industry: type: object properties: id: type: integer name: type: string required: - id - name CreateIndustryBody: type: object properties: name: type: string required: - name CheckAppliedResponse: type: object properties: applied: type: boolean required: - applied