openapi: 3.1.0 info: title: Api version: 0.1.0 description: DesiPartyHub API servers: - url: /api description: Base API path tags: - name: health description: Health operations - name: vendors description: Vendor operations - name: categories description: Category operations - name: reviews description: Review operations - name: bookings description: Booking inquiry operations - name: favorites description: Favorite operations - name: users description: User operations - name: checklist description: Event checklist operations - name: budget description: Budget planner operations - name: admin description: Admin operations - name: support description: Support operations - name: stats description: Dashboard stats - name: events description: Community event operations paths: /healthz: get: operationId: healthCheck tags: [health] summary: Health check responses: "200": description: Healthy content: application/json: schema: $ref: "#/components/schemas/HealthStatus" # AUTH /auth/register: post: operationId: registerUser tags: [users] summary: Register a new user requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UserRegisterInput" responses: "201": description: Registered (not yet logged in — a verification code was emailed) content: application/json: schema: $ref: "#/components/schemas/AuthResponse" /auth/register/verify: post: operationId: confirmSignupOtp tags: [users] summary: Confirm the signup verification code and log in requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/VerifyEmailInput" responses: "200": description: Verified and logged in content: application/json: schema: $ref: "#/components/schemas/AuthResponse" /auth/login: post: operationId: loginUser tags: [users] summary: Login description: >- Checks the password and, on success, emails a one-time login code instead of creating a session. Call /auth/login/verify with that code to actually get a session. requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UserLoginInput" responses: "200": description: Credentials valid — a login code was emailed content: application/json: schema: $ref: "#/components/schemas/LoginPendingResponse" /auth/login/verify: post: operationId: confirmLoginOtp tags: [users] summary: Confirm the login code and log in requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/VerifyEmailInput" responses: "200": description: Verified and logged in content: application/json: schema: $ref: "#/components/schemas/AuthResponse" /auth/logout: post: operationId: logoutUser tags: [users] summary: Logout responses: "200": description: Logged out content: application/json: schema: $ref: "#/components/schemas/MessageResponse" /auth/me: get: operationId: getCurrentUser tags: [users] summary: Get current user responses: "200": description: Current user content: application/json: schema: $ref: "#/components/schemas/User" /auth/forgot-password/request: post: operationId: requestPasswordResetOtp tags: [users] summary: Request a password reset code by email requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/RequestPasswordResetInput" responses: "200": description: Code sent content: application/json: schema: $ref: "#/components/schemas/MessageResponse" /auth/forgot-password/confirm: post: operationId: confirmPasswordReset tags: [users] summary: Confirm a password reset using the emailed code requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/ConfirmPasswordResetInput" responses: "200": description: Password reset content: application/json: schema: $ref: "#/components/schemas/MessageResponse" /auth/verify-email: post: operationId: verifyEmail tags: [users] summary: Verify an account's email address using the emailed code requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/VerifyEmailInput" responses: "200": description: Email verified content: application/json: schema: $ref: "#/components/schemas/VerifyEmailResponse" /auth/resend-email-otp: post: operationId: resendEmailOtp tags: [users] summary: Resend a signup or password-reset verification code requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/ResendEmailOtpInput" responses: "200": description: Code resent content: application/json: schema: $ref: "#/components/schemas/MessageResponse" /auth/profile/request-otp: post: operationId: requestProfileOtp tags: [users] summary: Send a verification code to the current user's email before allowing profile changes responses: "200": description: Code sent content: application/json: schema: $ref: "#/components/schemas/MessageResponse" /auth/profile/verify-otp: post: operationId: verifyProfileOtp tags: [users] summary: Confirm the profile-update code and receive a short-lived edit grant requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/VerifyProfileOtpInput" responses: "200": description: Verified content: application/json: schema: $ref: "#/components/schemas/VerifyProfileOtpResponse" /auth/profile: patch: operationId: updateProfile tags: [users] summary: Update name, email, phone, address, password, and/or avatar (requires a valid edit grant) requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UpdateProfileInput" responses: "200": description: Updated user content: application/json: schema: $ref: "#/components/schemas/User" /auth/theme: patch: operationId: updateTheme tags: [users] summary: Update the current user's light/dark/system theme preference requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UpdateThemeInput" responses: "200": description: Updated user content: application/json: schema: $ref: "#/components/schemas/User" /auth/email-preferences: patch: operationId: updateEmailPreferences tags: [users] summary: Update whether the current user receives non-critical account/activity emails (OTP codes are always sent) requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UpdateEmailPreferencesInput" responses: "200": description: Updated user content: application/json: schema: $ref: "#/components/schemas/User" /auth/privacy: patch: operationId: updatePrivacy tags: [users] summary: Update whether the current user's name/avatar show on reviews they've written requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UpdatePrivacyInput" responses: "200": description: Updated user content: application/json: schema: $ref: "#/components/schemas/User" /auth/sessions: get: operationId: listSessions tags: [users] summary: List the current user's active sessions (devices/browsers signed in) responses: "200": description: Sessions content: application/json: schema: $ref: "#/components/schemas/ListSessionsResponse" delete: operationId: revokeOtherSessions tags: [users] summary: Sign out of all devices/sessions except the current one responses: "200": description: Signed out of other devices content: application/json: schema: $ref: "#/components/schemas/MessageResponse" /auth/sessions/{id}: delete: operationId: revokeSession tags: [users] summary: Revoke a single session by ID parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Session revoked content: application/json: schema: $ref: "#/components/schemas/MessageResponse" /auth/account/status: patch: operationId: updateAccountStatus tags: [users] summary: Temporarily disable or reactivate the current user's own account (requires a valid edit grant) requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UpdateAccountStatusInput" responses: "200": description: Updated user content: application/json: schema: $ref: "#/components/schemas/User" /auth/account: delete: operationId: deleteAccount tags: [users] summary: Permanently delete (soft-delete/anonymize) the current user's own account (requires a valid edit grant) requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/DeleteAccountInput" responses: "200": description: Account deleted content: application/json: schema: $ref: "#/components/schemas/MessageResponse" # CATEGORIES /categories: get: operationId: listCategories tags: [categories] summary: List all categories responses: "200": description: Categories list content: application/json: schema: type: array items: $ref: "#/components/schemas/Category" # VENDORS /vendors: get: operationId: listVendors tags: [vendors] summary: List vendors with optional filters parameters: - name: category in: query schema: type: ["string", "null"] - name: city in: query schema: type: ["string", "null"] - name: minPrice in: query schema: type: ["integer", "null"] - name: maxPrice in: query schema: type: ["integer", "null"] - name: minRating in: query schema: type: ["number", "null"] - name: search in: query schema: type: ["string", "null"] - name: page in: query schema: type: ["integer", "null"] - name: limit in: query schema: type: ["integer", "null"] responses: "200": description: Vendors list content: application/json: schema: $ref: "#/components/schemas/VendorListResponse" post: operationId: createVendor tags: [vendors] summary: Create a new vendor (admin or vendor user) requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/VendorInput" responses: "201": description: Created content: application/json: schema: $ref: "#/components/schemas/Vendor" /vendors/featured: get: operationId: listFeaturedVendors tags: [vendors] summary: Get featured/top-rated vendors for homepage responses: "200": description: Featured vendors content: application/json: schema: type: array items: $ref: "#/components/schemas/Vendor" /vendors/{id}: get: operationId: getVendor tags: [vendors] summary: Get vendor by ID parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Vendor content: application/json: schema: $ref: "#/components/schemas/VendorDetail" patch: operationId: updateVendor tags: [vendors] summary: Update vendor parameters: - name: id in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/VendorUpdate" responses: "200": description: Updated content: application/json: schema: $ref: "#/components/schemas/Vendor" delete: operationId: deleteVendor tags: [vendors] summary: Delete a vendor listing (admin, or the owning vendor with a valid edit grant) parameters: - name: id in: path required: true schema: type: integer requestBody: required: false content: application/json: schema: $ref: "#/components/schemas/DeleteVendorInput" responses: "200": description: Deleted content: application/json: schema: $ref: "#/components/schemas/MessageResponse" # REVIEWS /vendors/{id}/reviews: get: operationId: listVendorReviews tags: [reviews] summary: Get reviews for a vendor parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Reviews content: application/json: schema: type: array items: $ref: "#/components/schemas/Review" post: operationId: createReview tags: [reviews] summary: Submit a review parameters: - name: id in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/ReviewInput" responses: "201": description: Created content: application/json: schema: $ref: "#/components/schemas/Review" # VENDOR CLAIMS /vendor-claims: post: operationId: createVendorClaim tags: [vendors] summary: Submit a claim request for an existing vendor listing requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/VendorClaimInput" responses: "201": description: Claim submitted content: application/json: schema: $ref: "#/components/schemas/VendorClaim" /vendor-claims/mine: get: operationId: listMyVendorClaims tags: [vendors] summary: List the current vendor user's claim requests responses: "200": description: Claims content: application/json: schema: type: array items: $ref: "#/components/schemas/VendorClaim" # EVENTS /events: get: operationId: listEvents tags: [events] summary: List approved events with optional filters parameters: - name: category in: query schema: type: string - name: city in: query schema: type: string - name: state in: query schema: type: string - name: language in: query schema: type: string - name: search in: query schema: type: string - name: upcoming in: query schema: type: boolean - name: dateFrom in: query description: Only events on or after this date (YYYY-MM-DD) schema: type: string format: date - name: dateTo in: query description: Only events on or before this date (YYYY-MM-DD) schema: type: string format: date - name: vendorId in: query schema: type: integer - name: page in: query schema: type: integer - name: limit in: query schema: type: integer responses: "200": description: Events content: application/json: schema: $ref: "#/components/schemas/ListEventsResponse" post: operationId: createEvent tags: [events] summary: Submit a new event for admin review (vendor accounts only) requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/EventInput" responses: "201": description: Event submitted, pending review content: application/json: schema: $ref: "#/components/schemas/Event" /events/upcoming: get: operationId: listUpcomingEvents tags: [events] summary: A short list of the soonest approved events, for the homepage responses: "200": description: Upcoming events content: application/json: schema: type: array items: $ref: "#/components/schemas/Event" /events/mine: get: operationId: listMyEvents tags: [events] summary: List the current user's own submitted events, any status responses: "200": description: My events content: application/json: schema: type: array items: $ref: "#/components/schemas/Event" /events/{id}: get: operationId: getEvent tags: [events] summary: Get a single event by ID (must be approved, or you must be the submitter/an admin) parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Event content: application/json: schema: $ref: "#/components/schemas/Event" delete: operationId: deleteEvent tags: [events] summary: Delete an event (the submitter, if not yet approved, or an admin) parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Deleted content: application/json: schema: $ref: "#/components/schemas/MessageResponse" # SUPPORT /support/contact: post: operationId: contactSupport tags: [support] summary: Send a support message from the current user requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/ContactSupportInput" responses: "200": description: Message sent content: application/json: schema: $ref: "#/components/schemas/ContactSupportResponse" # BOOKINGS /bookings: get: operationId: listBookings tags: [bookings] summary: List bookings for current user responses: "200": description: Bookings content: application/json: schema: type: array items: $ref: "#/components/schemas/Booking" post: operationId: createBooking tags: [bookings] summary: Submit a booking inquiry requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/BookingInput" responses: "201": description: Created content: application/json: schema: $ref: "#/components/schemas/Booking" /bookings/vendor: get: operationId: listVendorBookings tags: [bookings] summary: List booking requests against listings the current user owns responses: "200": description: Bookings content: application/json: schema: type: array items: $ref: "#/components/schemas/Booking" /bookings/{id}: patch: operationId: updateBookingStatus tags: [bookings] summary: Update booking status parameters: - name: id in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/BookingStatusUpdate" responses: "200": description: Updated content: application/json: schema: $ref: "#/components/schemas/Booking" # FAVORITES /favorites: get: operationId: listFavorites tags: [favorites] summary: Get current user's favorites responses: "200": description: Favorites content: application/json: schema: type: array items: $ref: "#/components/schemas/Vendor" /favorites/{vendorId}: post: operationId: addFavorite tags: [favorites] summary: Add vendor to favorites parameters: - name: vendorId in: path required: true schema: type: integer responses: "201": description: Added content: application/json: schema: $ref: "#/components/schemas/MessageResponse" delete: operationId: removeFavorite tags: [favorites] summary: Remove vendor from favorites parameters: - name: vendorId in: path required: true schema: type: integer responses: "200": description: Removed content: application/json: schema: $ref: "#/components/schemas/MessageResponse" /favorites/events: get: operationId: listEventFavorites tags: [favorites] summary: Get current user's favorited events responses: "200": description: Favorited events content: application/json: schema: type: array items: $ref: "#/components/schemas/Event" /favorites/events/{eventId}: post: operationId: addEventFavorite tags: [favorites] summary: Add event to favorites parameters: - name: eventId in: path required: true schema: type: integer responses: "201": description: Added content: application/json: schema: $ref: "#/components/schemas/MessageResponse" delete: operationId: removeEventFavorite tags: [favorites] summary: Remove event from favorites parameters: - name: eventId in: path required: true schema: type: integer responses: "200": description: Removed content: application/json: schema: $ref: "#/components/schemas/MessageResponse" # CHECKLIST /checklist: get: operationId: listChecklistItems tags: [checklist] summary: Get user's event checklist responses: "200": description: Checklist content: application/json: schema: type: array items: $ref: "#/components/schemas/ChecklistItem" post: operationId: createChecklistItem tags: [checklist] summary: Add checklist item requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/ChecklistItemInput" responses: "201": description: Created content: application/json: schema: $ref: "#/components/schemas/ChecklistItem" /checklist/{id}: patch: operationId: updateChecklistItem tags: [checklist] summary: Update checklist item (toggle done, edit) parameters: - name: id in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/ChecklistItemUpdate" responses: "200": description: Updated content: application/json: schema: $ref: "#/components/schemas/ChecklistItem" delete: operationId: deleteChecklistItem tags: [checklist] summary: Delete checklist item parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Deleted content: application/json: schema: $ref: "#/components/schemas/MessageResponse" # BUDGET /budget: get: operationId: getBudgetPlan tags: [budget] summary: Get user's budget plan responses: "200": description: Budget plan content: application/json: schema: $ref: "#/components/schemas/BudgetPlan" post: operationId: upsertBudgetPlan tags: [budget] summary: Create or update budget plan requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/BudgetPlanInput" responses: "200": description: Updated content: application/json: schema: $ref: "#/components/schemas/BudgetPlan" /budget/items: post: operationId: createBudgetItem tags: [budget] summary: Add a budget line item requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/BudgetItemInput" responses: "201": description: Created content: application/json: schema: $ref: "#/components/schemas/BudgetItem" /budget/items/{id}: patch: operationId: updateBudgetItem tags: [budget] summary: Update a budget item parameters: - name: id in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/BudgetItemUpdate" responses: "200": description: Updated content: application/json: schema: $ref: "#/components/schemas/BudgetItem" delete: operationId: deleteBudgetItem tags: [budget] summary: Delete a budget item parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Deleted content: application/json: schema: $ref: "#/components/schemas/MessageResponse" # STATS (wow endpoints) /stats/homepage: get: operationId: getHomepageStats tags: [stats] summary: Homepage summary stats responses: "200": description: Stats content: application/json: schema: $ref: "#/components/schemas/HomepageStats" /stats/cities: get: operationId: listCities tags: [stats] summary: List cities with vendor counts responses: "200": description: Cities content: application/json: schema: type: array items: $ref: "#/components/schemas/CityCount" # ADMIN /admin/vendors: get: operationId: adminListVendors tags: [admin] summary: Admin list all vendors responses: "200": description: Vendors content: application/json: schema: type: array items: $ref: "#/components/schemas/Vendor" /admin/bookings: get: operationId: adminListBookings tags: [admin] summary: Admin list all bookings responses: "200": description: Bookings content: application/json: schema: type: array items: $ref: "#/components/schemas/Booking" /admin/users: get: operationId: adminListUsers tags: [admin] summary: Admin list all users responses: "200": description: Users content: application/json: schema: type: array items: $ref: "#/components/schemas/User" /admin/users/{id}/verify: patch: operationId: adminVerifyVendor tags: [admin] summary: Approve a pending vendor account parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Vendor verified content: application/json: schema: type: object required: [id, isVerified, isRejected] properties: id: type: integer isVerified: type: boolean isRejected: type: boolean /admin/users/{id}/reject: patch: operationId: adminRejectVendor tags: [admin] summary: Reject a pending vendor account application parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Vendor rejected content: application/json: schema: type: object required: [id, isVerified, isRejected] properties: id: type: integer isVerified: type: boolean isRejected: type: boolean /admin/vendor-claims: get: operationId: adminListVendorClaims tags: [admin] summary: Admin list all vendor claim requests responses: "200": description: Claims content: application/json: schema: type: array items: $ref: "#/components/schemas/VendorClaim" /admin/vendor-claims/{id}/approve: patch: operationId: adminApproveVendorClaim tags: [admin] summary: Approve a vendor claim request, linking the vendor to the claiming user parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Claim approved content: application/json: schema: $ref: "#/components/schemas/VendorClaim" /admin/vendor-claims/{id}/reject: patch: operationId: adminRejectVendorClaim tags: [admin] summary: Reject a vendor claim request parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Claim rejected content: application/json: schema: $ref: "#/components/schemas/VendorClaim" /admin/events: get: operationId: adminListEvents tags: [admin] summary: Admin list all events, any status responses: "200": description: Events content: application/json: schema: type: array items: $ref: "#/components/schemas/AdminEvent" /admin/events/curated: post: operationId: adminCreateCuratedEvent tags: [admin] summary: Add a pre-approved curated event (admin/import only) requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CuratedEventInput" responses: "201": description: Curated event created content: application/json: schema: $ref: "#/components/schemas/AdminEvent" /admin/events/{id}/approve: patch: operationId: adminApproveEvent tags: [admin] summary: Approve a pending event, making it publicly visible parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Event approved content: application/json: schema: $ref: "#/components/schemas/AdminEvent" /admin/events/{id}/reject: patch: operationId: adminRejectEvent tags: [admin] summary: Reject a pending event submission parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Event rejected content: application/json: schema: $ref: "#/components/schemas/AdminEvent" /admin/stats: get: operationId: getAdminStats tags: [admin] summary: Admin dashboard statistics responses: "200": description: Admin stats content: application/json: schema: $ref: "#/components/schemas/AdminStats" components: schemas: HealthStatus: type: object properties: status: type: string required: [status] MessageResponse: type: object properties: message: type: string required: [message] ContactSupportInput: type: object required: [message] properties: message: type: string minLength: 10 maxLength: 2000 ContactSupportResponse: type: object required: [success] properties: success: type: boolean # AUTH UserRegisterInput: type: object required: [firstName, lastName, email, password, phone, agreedToTerms] properties: firstName: type: string lastName: type: string email: type: string password: type: string phone: type: string address: type: string role: type: string enum: [user, vendor] agreedToTerms: type: boolean description: Must be true. Confirms the user agreed to the Privacy Policy and Terms of Service. enum: [true] UserLoginInput: type: object required: [email, password] properties: email: type: string password: type: string AuthResponse: type: object required: [user, token] properties: user: $ref: "#/components/schemas/User" token: type: string description: >- Session token. The API also sets this as an httpOnly cookie, but clients (especially cross-origin web clients subject to third-party cookie blocking) should store this and send it as `Authorization: Bearer ` on subsequent requests. LoginPendingResponse: type: object required: [requiresOtp, email] properties: requiresOtp: type: boolean description: Always true — a login code was emailed and must be confirmed via /auth/login/verify. email: type: string RequestPasswordResetInput: type: object required: [email] properties: email: type: string ConfirmPasswordResetInput: type: object required: [email, code, newPassword] properties: email: type: string code: type: string newPassword: type: string VerifyEmailInput: type: object required: [email, code] properties: email: type: string code: type: string VerifyEmailResponse: type: object required: [emailVerified] properties: emailVerified: type: boolean ResendEmailOtpInput: type: object required: [email, purpose] properties: email: type: string purpose: type: string enum: [signup, password_reset, login, profile_update] VerifyProfileOtpInput: type: object required: [code] properties: code: type: string VerifyProfileOtpResponse: type: object required: [editGrant] properties: editGrant: type: string description: Short-lived (10 min) proof-of-verification token to include with PATCH /auth/profile UpdateProfileInput: type: object required: [editGrant] properties: editGrant: type: string name: type: string email: type: string phone: type: string address: type: string newPassword: type: string avatarUrl: type: string description: Data URL of a client-side compressed image UpdateThemeInput: type: object required: [theme] properties: theme: type: string enum: [light, dark, system] UpdateEmailPreferencesInput: type: object required: [emailNotifications] properties: emailNotifications: type: boolean UpdatePrivacyInput: type: object required: [reviewsArePublic] properties: reviewsArePublic: type: boolean SessionInfo: type: object required: [id, createdAt, lastUsedAt, isCurrent] properties: id: type: integer userAgent: type: ["string", "null"] ipAddress: type: ["string", "null"] createdAt: type: string lastUsedAt: type: string isCurrent: type: boolean ListSessionsResponse: type: object required: [sessions] properties: sessions: type: array items: $ref: "#/components/schemas/SessionInfo" UpdateAccountStatusInput: type: object required: [editGrant, status] properties: editGrant: type: string status: type: string enum: [active, disabled] DeleteAccountInput: type: object required: [editGrant] properties: editGrant: type: string DeleteVendorInput: type: object properties: editGrant: type: string description: Required when a vendor owner (not an admin) deletes their own listing. User: type: object required: [id, name, email, role, isVerified, emailVerified, isRejected, createdAt] properties: id: type: integer name: type: string email: type: string role: type: string enum: [user, vendor, admin] isVerified: type: boolean emailVerified: type: boolean isRejected: type: boolean avatarUrl: type: ["string", "null"] phone: type: ["string", "null"] address: type: ["string", "null"] themePreference: type: string enum: [light, dark, system] emailNotifications: type: boolean reviewsArePublic: type: boolean accountStatus: type: string enum: [active, disabled] createdAt: type: string # CATEGORIES Category: type: object required: [id, name, slug, icon, description, vendorCount] properties: id: type: integer name: type: string slug: type: string icon: type: string description: type: string vendorCount: type: integer # VENDORS Vendor: type: object required: [ id, name, categoryId, categoryName, city, state, description, priceMin, priceMax, rating, reviewCount, imageUrl, isActive, isClaimed, createdAt, ] properties: id: type: integer name: type: string categoryId: type: integer categoryName: type: string city: type: string state: type: string description: type: string priceMin: type: integer priceMax: type: integer rating: type: number reviewCount: type: integer imageUrl: type: string gallery: type: array items: type: string phone: type: ["string", "null"] email: type: ["string", "null"] website: type: ["string", "null"] isActive: type: boolean isFeatured: type: boolean isClaimed: type: boolean createdAt: type: string VendorDetail: type: object required: [ id, name, categoryId, categoryName, city, state, description, priceMin, priceMax, rating, reviewCount, imageUrl, isActive, createdAt, reviews, ] properties: id: type: integer name: type: string categoryId: type: integer categoryName: type: string city: type: string state: type: string description: type: string longDescription: type: ["string", "null"] priceMin: type: integer priceMax: type: integer rating: type: number reviewCount: type: integer imageUrl: type: string gallery: type: array items: type: string phone: type: ["string", "null"] email: type: ["string", "null"] website: type: ["string", "null"] isActive: type: boolean isFeatured: type: boolean createdAt: type: string reviews: type: array items: $ref: "#/components/schemas/Review" VendorListResponse: type: object required: [vendors, total, page, limit] properties: vendors: type: array items: $ref: "#/components/schemas/Vendor" total: type: integer page: type: integer limit: type: integer VendorInput: type: object required: [ name, categoryId, city, state, description, priceMin, priceMax, imageUrl, ] properties: name: type: string categoryId: type: integer city: type: string state: type: string description: type: string longDescription: type: string priceMin: type: integer priceMax: type: integer imageUrl: type: string gallery: type: array items: type: string phone: type: string email: type: string website: type: string isFeatured: type: boolean VendorUpdate: type: object properties: name: type: string categoryId: type: integer city: type: string state: type: string description: type: string longDescription: type: string priceMin: type: integer priceMax: type: integer imageUrl: type: string gallery: type: array items: type: string phone: type: string email: type: string website: type: string isActive: type: boolean isFeatured: type: boolean # REVIEWS Review: type: object required: [id, vendorId, userId, userName, rating, createdAt] properties: id: type: integer vendorId: type: integer userId: type: integer userName: type: string userAvatarUrl: type: ["string", "null"] rating: type: integer comment: type: ["string", "null"] createdAt: type: string ReviewInput: type: object required: [rating] properties: rating: type: integer comment: type: string # BOOKINGS Booking: type: object required: [ id, vendorId, vendorName, userId, userName, eventDate, eventType, guestCount, message, status, createdAt, ] properties: id: type: integer vendorId: type: integer vendorName: type: string userId: type: integer userName: type: string eventDate: type: string eventType: type: string guestCount: type: integer message: type: string status: type: string enum: [pending, confirmed, cancelled, completed] createdAt: type: string BookingInput: type: object required: [vendorId, eventDate, eventType, guestCount, message] properties: vendorId: type: integer eventDate: type: string eventType: type: string guestCount: type: integer message: type: string BookingStatusUpdate: type: object required: [status] properties: status: type: string enum: [pending, confirmed, cancelled, completed] # FAVORITES FavoriteInput: type: object required: [vendorId] properties: vendorId: type: integer # CHECKLIST ChecklistItem: type: object required: [id, userId, task, category, dueDate, isDone, createdAt] properties: id: type: integer userId: type: integer task: type: string category: type: string dueDate: type: ["string", "null"] isDone: type: boolean createdAt: type: string ChecklistItemInput: type: object required: [task, category] properties: task: type: string category: type: string dueDate: type: string ChecklistItemUpdate: type: object properties: task: type: string category: type: string dueDate: type: string isDone: type: boolean # BUDGET BudgetPlan: type: object required: [id, userId, totalBudget, eventDate, eventName, items] properties: id: type: integer userId: type: integer totalBudget: type: integer eventDate: type: ["string", "null"] eventName: type: string items: type: array items: $ref: "#/components/schemas/BudgetItem" BudgetPlanInput: type: object required: [totalBudget, eventName] properties: totalBudget: type: integer eventDate: type: string eventName: type: string BudgetItem: type: object required: [id, budgetPlanId, category, name, estimatedCost, actualCost, isPaid] properties: id: type: integer budgetPlanId: type: integer category: type: string name: type: string estimatedCost: type: integer actualCost: type: ["integer", "null"] isPaid: type: boolean notes: type: ["string", "null"] BudgetItemInput: type: object required: [category, name, estimatedCost] properties: category: type: string name: type: string estimatedCost: type: integer actualCost: type: integer notes: type: string BudgetItemUpdate: type: object properties: category: type: string name: type: string estimatedCost: type: integer actualCost: type: integer isPaid: type: boolean notes: type: string # STATS HomepageStats: type: object required: [totalVendors, totalCategories, totalCities, totalBookings] properties: totalVendors: type: integer totalCategories: type: integer totalCities: type: integer totalBookings: type: integer CityCount: type: object required: [city, state, count] properties: city: type: string state: type: string count: type: integer AdminStats: type: object required: [ totalVendors, totalUsers, totalBookings, pendingBookings, totalReviews, vendorsByCategory, ] properties: totalVendors: type: integer totalUsers: type: integer totalBookings: type: integer pendingBookings: type: integer totalReviews: type: integer vendorsByCategory: type: array items: $ref: "#/components/schemas/CategoryCount" CategoryCount: type: object required: [category, count] properties: category: type: string count: type: integer VendorClaim: type: object required: [id, vendorId, vendorName, userId, userName, userEmail, status, createdAt] properties: id: type: integer vendorId: type: integer vendorName: type: string userId: type: integer userName: type: string userEmail: type: string status: type: string enum: [pending, approved, rejected] note: type: ["string", "null"] createdAt: type: string reviewedAt: type: ["string", "null"] VendorClaimInput: type: object required: [vendorId] properties: vendorId: type: integer note: type: ["string", "null"] Event: type: object required: [id, title, description, category, city, state, eventDate, status, createdAt] properties: id: type: integer title: type: string description: type: string category: type: string city: type: string state: type: string venue: type: ["string", "null"] language: type: ["string", "null"] eventDate: type: string endDate: type: ["string", "null"] imageUrl: type: ["string", "null"] ticketUrl: type: ["string", "null"] additionalInfo: type: ["string", "null"] vendorId: type: ["integer", "null"] vendorName: type: ["string", "null"] status: type: string enum: [pending, approved, rejected] createdAt: type: string reviewedAt: type: ["string", "null"] source: type: string enum: [user, admin_curated] ListEventsResponse: type: object required: [events, total, page, limit] properties: events: type: array items: $ref: "#/components/schemas/Event" total: type: integer page: type: integer limit: type: integer EventInput: type: object required: [title, description, category, city, state, eventDate] properties: title: type: string description: type: string category: type: string city: type: string state: type: string venue: type: string language: type: string eventDate: type: string endDate: type: string imageUrl: type: string ticketUrl: type: string additionalInfo: type: string vendorId: type: integer AdminEvent: allOf: - $ref: "#/components/schemas/Event" - type: object required: [submittedByUserId, submitterName, submitterEmail] properties: submittedByUserId: type: integer submitterName: type: string submitterEmail: type: string sourceUrl: type: ["string", "null"] CuratedEventInput: type: object required: [title, description, category, city, state, eventDate, ticketUrl, sourceUrl] properties: title: type: string description: type: string category: type: string city: type: string state: type: string venue: type: string language: type: string eventDate: type: string endDate: type: string imageUrl: type: string ticketUrl: type: string additionalInfo: type: string sourceUrl: type: string