Spaces:
Runtime error
Runtime error
Commit ·
12690b4
1
Parent(s): d8cdd09
Deploy files from GitHub repository
Browse filesFiles changed (8)
23 unmodified lines2425262728293031323334353637383940411 unmodified line43444546474823 unmodified lines}}func (c *authenticationController) SignUp(ctx *gin.Context) {req := RequestJSON[dto.SignUpRequest](ctx)res, err := c.userService.Create(ctx.Request.Context(), req.Name, req.Email, req.Username, req.Password)ResponseJSON(ctx, req, res, err)}func (c *authenticationController) SignIn(ctx *gin.Context) {req := RequestJSON[dto.SignInRequest](ctx)res, err := c.userService.Validate(ctx, req.EmailorUsername, req.Password)ResponseJSON(ctx, req, res, err)}func (c *authenticationController) ChangePassword(ctx *gin.Context) {req := RequestJSON[dto.ChangePasswordRequest](ctx)userId := ParseUserId(ctx)1 unmodified lineResponseJSON(ctx, req, res, err)}func (c *authenticationController) UpdateUserRole(ctx *gin.Context) {req := RequestJSON[dto.UpdateUserRoleRequest](ctx)userId := ctx.Param("userId")23 unmodified lines24252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172731 unmodified line757677787980818283848586878889909123 unmodified lines}}// SignUp godoc// @Summary Sign Up// @Description Register a new user with name, email, username and password.// @Tags Auth// @Accept json// @Produce json// @Param request body dto.SignUpRequest true "Sign Up Data"// @Success 200 {object} entity.User// @Failure 400 {object} dto.ErrorResponse// @Router /api/v1/authentication/register [post]func (c *authenticationController) SignUp(ctx *gin.Context) {req := RequestJSON[dto.SignUpRequest](ctx)res, err := c.userService.Create(ctx.Request.Context(), req.Name, req.Email, req.Username, req.Password)ResponseJSON(ctx, req, res, err)}// SignIn godoc// @Summary Sign In// @Description Authenticate user via email/username and password.// @Tags Auth// @Accept json// @Produce json// @Param request body dto.SignInRequest true "Sign In Data"// @Success 200 {object} dto.AuthenticatedUser// @Failure 401 {object} dto.ErrorResponse// @Router /api/v1/authentication/login [post]func (c *authenticationController) SignIn(ctx *gin.Context) {req := RequestJSON[dto.SignInRequest](ctx)res, err := c.userService.Validate(ctx, req.EmailorUsername, req.Password)ResponseJSON(ctx, req, res, err)}// ChangePassword godoc// @Summary Change Password// @Description Update password for the logged-in user.// @Tags Auth// @Accept json// @Produce json// @Param request body dto.ChangePasswordRequest true "Password Change Data"// @Success 200 {object} dto.AuthenticatedUser// @Failure 400 {object} dto.ErrorResponse// @Failure 401 {object} dto.ErrorResponse// @Security BearerAuth// @Router /api/v1/authentication/change-password [put]func (c *authenticationController) ChangePassword(ctx *gin.Context) {req := RequestJSON[dto.ChangePasswordRequest](ctx)userId := ParseUserId(ctx)1 unmodified lineResponseJSON(ctx, req, res, err)}// UpdateUserRole godoc// @Summary Update User Role (Legacy)// @Description Update user role. Note: This is an older endpoint, consider using /api/v1/users/me/roles instead.// @Tags Users// @Accept json// @Produce json// @Param userId path string true "User ID"// @Param request body dto.UpdateUserRoleRequest true "Role Update Data"// @Success 200 {object} entity.User// @Failure 400 {object} dto.ErrorResponse// @Router /api/v1/authentication/role/{userId} [put]func (c *authenticationController) UpdateUserRole(ctx *gin.Context) {req := RequestJSON[dto.UpdateUserRoleRequest](ctx)userId := ctx.Param("userId")
7 unmodified lines891011121330 unmodified lines4445467 unmodified linestype ClassController interface {GetClassDetail(ctx *gin.Context)}type classController struct {30 unmodified linesres, err := c.classService.GetClassDetail(ctx.Request.Context(), params, userID)ResponseJSON(ctx, "", res, err)}7 unmodified lines89101112131430 unmodified lines4546474849505152535455565758596061626364656667686970717273747576777 unmodified linestype ClassController interface {GetClassDetail(ctx *gin.Context)CreateClass(ctx *gin.Context)}type classController struct {30 unmodified linesres, err := c.classService.GetClassDetail(ctx.Request.Context(), params, userID)ResponseJSON(ctx, "", res, err)}// CreateClass godoc// @Summary Host a Class// @Description Allows an instructor to create/host a new class. Automatically creates an instructor profile if one doesn't exist.// @Tags Classes// @Accept json// @Produce json// @Param request body dto.CreateClassRequest true "Class Creation Data"// @Success 201 {object} entities.Class// @Failure 400 {object} dto.ErrorResponse// @Failure 401 {object} dto.ErrorResponse// @Failure 403 {object} dto.ErrorResponse// @Security BearerAuth// @Router /api/v1/classes [post]func (c *classController) CreateClass(ctx *gin.Context) {req := RequestJSON[dto.CreateClassRequest](ctx)userID := ParseUserId(ctx)res, err := c.classService.HostClass(ctx.Request.Context(), userID, req)if err != nil {ResponseJSON(ctx, req, res, err)return}ctx.JSON(201, gin.H{"success": true,"message": "Class created successfully","data": res,})}
22 unmodified lines2324252627284 unmodified lines33343536373822 unmodified lines// DTOs moved to models/dto/otp_dto.gofunc (c *otpVerificationController) RequestOTP(ctx *gin.Context) {req := RequestJSON[dto.OTPRequestInput](ctx)res, err := c.otpService.RequestOTP(ctx.Request.Context(), req)4 unmodified linesResponseJSON(ctx, "OTP sent successfully via WhatsApp", res, nil)}func (c *otpVerificationController) VerifyOTP(ctx *gin.Context) {req := RequestJSON[dto.OTPVerifyInput](ctx)res, err := c.otpService.VerifyOTP(ctx.Request.Context(), req)22 unmodified lines232425262728293031323334353637384 unmodified lines4344454647484950515253545556575822 unmodified lines// DTOs moved to models/dto/otp_dto.go// RequestOTP godoc// @Summary Request OTP// @Description Trigger an OTP code via WhatsApp for phone number verification.// @Tags Auth// @Accept json// @Produce json// @Param request body dto.OTPRequestInput true "OTP Request Data"// @Success 200 {object} dto.OTPRequestResponse// @Failure 400 {object} dto.ErrorResponse// @Router /api/v1/auth/otp/request [post]func (c *otpVerificationController) RequestOTP(ctx *gin.Context) {req := RequestJSON[dto.OTPRequestInput](ctx)res, err := c.otpService.RequestOTP(ctx.Request.Context(), req)4 unmodified linesResponseJSON(ctx, "OTP sent successfully via WhatsApp", res, nil)}// VerifyOTP godoc// @Summary Verify OTP// @Description Validate the OTP code provided by the user and return authentication token.// @Tags Auth// @Accept json// @Produce json// @Param request body dto.OTPVerifyInput true "OTP Verification Data"// @Success 200 {object} dto.OTPVerifyResponse// @Failure 400 {object} dto.ErrorResponse// @Router /api/v1/auth/otp/verify [post]func (c *otpVerificationController) VerifyOTP(ctx *gin.Context) {req := RequestJSON[dto.OTPVerifyInput](ctx)res, err := c.otpService.VerifyOTP(ctx.Request.Context(), req)
22 unmodified lines2324252627282930313233343536373839401 unmodified line42434445464722 unmodified lines}}func (c *userController) GetProfile(ctx *gin.Context) {userId := ParseUserId(ctx)res, err := c.userService.GetProfile(ctx.Request.Context(), userId)ResponseJSON(ctx, "", res, err)}func (c *userController) GetUserDetails(ctx *gin.Context) {userId := ctx.Param("id")res, err := c.userService.GetProfile(ctx.Request.Context(), userId)ResponseJSON(ctx, "", res, err)}func (c *userController) UpdateAboutYou(ctx *gin.Context) {req := RequestJSON[dto.UpdateAboutYouRequest](ctx)userId := ParseUserId(ctx)1 unmodified lineResponseJSON(ctx, req, res, err)}func (c *userController) AssignRoles(ctx *gin.Context) {req := RequestJSON[dto.UpdateUserRolesRequest](ctx)userId := ParseUserId(ctx)22 unmodified lines2324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172731 unmodified line75767778798081828384858687888990919222 unmodified lines}}// GetProfile godoc// @Summary Get My Profile// @Description Get current logged-in user profile, including roles and about details.// @Tags Users// @Accept json// @Produce json// @Success 200 {object} dto.UserProfileResponse// @Failure 401 {object} dto.ErrorResponse// @Security BearerAuth// @Router /api/v1/users/me [get]func (c *userController) GetProfile(ctx *gin.Context) {userId := ParseUserId(ctx)res, err := c.userService.GetProfile(ctx.Request.Context(), userId)ResponseJSON(ctx, "", res, err)}// GetUserDetails godoc// @Summary Get User Details// @Description Get public profile and roles of another user by their ID.// @Tags Users// @Accept json// @Produce json// @Param id path string true "User ID"// @Success 200 {object} dto.UserProfileResponse// @Failure 404 {object} dto.ErrorResponse// @Security BearerAuth// @Router /api/v1/users/{id} [get]func (c *userController) GetUserDetails(ctx *gin.Context) {userId := ctx.Param("id")res, err := c.userService.GetProfile(ctx.Request.Context(), userId)ResponseJSON(ctx, "", res, err)}// UpdateAboutYou godoc// @Summary Update About You// @Description Update user's personal details like gender, dance level, and description.// @Tags Users// @Accept json// @Produce json// @Param request body dto.UpdateAboutYouRequest true "Update Profile Data"// @Success 200 {object} dto.UserProfileResponse// @Failure 400 {object} dto.ErrorResponse// @Failure 401 {object} dto.ErrorResponse// @Security BearerAuth// @Router /api/v1/users/me/about [put]func (c *userController) UpdateAboutYou(ctx *gin.Context) {req := RequestJSON[dto.UpdateAboutYouRequest](ctx)userId := ParseUserId(ctx)1 unmodified lineResponseJSON(ctx, req, res, err)}// AssignRoles godoc// @Summary Assign Role// @Description Update user's primary role (member, instructor, venue_owner).// @Tags Users// @Accept json// @Produce json// @Param request body dto.UpdateUserRolesRequest true "Role Assignment Data"// @Success 200 {object} dto.UserProfileResponse// @Failure 400 {object} dto.ErrorResponse// @Failure 401 {object} dto.ErrorResponse// @Security BearerAuth// @Router /api/v1/users/me/roles [put]func (c *userController) AssignRoles(ctx *gin.Context) {req := RequestJSON[dto.UpdateUserRolesRequest](ctx)userId := ParseUserId(ctx)
10 unmodified lines111213141510 unmodified linesclassRoute.Use(authMiddleware.VerifyAccount){classRoute.GET("/:class_id", classController.ProvideClassController().GetClassDetail)}}10 unmodified lines11121314151610 unmodified linesclassRoute.Use(authMiddleware.VerifyAccount){classRoute.GET("/:class_id", classController.ProvideClassController().GetClassDetail)classRoute.POST("", classController.ProvideClassController().CreateClass)}}
19 unmodified lines2021222324252627281 unmodified line30313233343536373839404142435 unmodified lines49505152535455565758596061621 unmodified line64656667686970717273747576771 unmodified line7980818283848586878889909192939495969798991001011021 unmodified line10410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318411 unmodified lines1961971981992002012022032042052062072082091 unmodified line2112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422431 unmodified line2452462472482492502512522531 unmodified line2552562572582592602612622632642652662672685 unmodified lines2742752762772782792802812822832842852862871 unmodified line2892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273285 unmodified lines3343353363373383393403413421 unmodified line3443453463473483493503513523533543553563573583593603613623633643653663673683695 unmodified lines3753763773783793803813823833843853863873881 unmodified line3903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534 unmodified lines4584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885891 unmodified line5915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229231 unmodified line925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133319 unmodified lines"host": "lifedebugger-danzapp-be-test.hf.space","basePath": "/","paths": {"/api/v1/class-categories": {"get": {"description": "Get master list of class categories","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Master Data"],"summary": "Get Class Categories","responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.CategoryResponseWrapper"}},"400": {5 unmodified lines}}},"/api/v1/classes/filters": {"get": {"security": [{"BearerAuth": []}],"description": "Returns available filter options for class search","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Classes"],"summary": "Get Class Filters Metadata","responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.FiltersMetadataResponse"}},"400": {1 unmodified line"schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/classes/search": {"get": {"security": [{"BearerAuth": []}],"description": "Search classes with filters and sorting options","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Classes"],"summary": "Search for Classes","parameters": [{"type": "string","description": "Search query","name": "q","in": "query"},{"type": "string","description": "Location name","name": "location_name","in": "query"},{"type": "number","description": "User latitude","name": "latitude","in": "query"},{"type": "number","description": "User longitude","name": "longitude","in": "query"},{"type": "string","default": "nearest","description": "Sort by (nearest|popular|rating|newest)","name": "sort_by","in": "query"},{"type": "integer","default": 1,"description": "Page number","name": "page","in": "query"},{"type": "integer","default": 10,"description": "Items per page","name": "limit","in": "query"},{"type": "string","default": "class","description": "View type","name": "view_type","in": "query"},{"type": "string","default": "all","description": "Category","name": "category","in": "query"},{"type": "string","description": "Dance type","name": "dance_type","in": "query"}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SearchClassesResponse"}},"400": {11 unmodified lines}}},"/api/v1/classes/{class_id}": {"get": {"security": [{"BearerAuth": []}],"description": "Return comprehensive class information needed to render the detail page.","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Classes"],"summary": "Get Class Details","parameters": [{"type": "string","description": "Class ID","name": "class_id","in": "path","required": true}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.ClassDetailResponse"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"404": {"description": "Not Found","schema": {"$ref": "#/definitions/dto.ErrorResponse"}1 unmodified line}}},"/api/v1/event-categories": {"get": {"description": "Get master list of event categories","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Master Data"],"summary": "Get Event Categories","responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.CategoryResponseWrapper"}},"400": {5 unmodified lines}}},"/api/v1/home": {"get": {"security": [{"BearerAuth": []}],"description": "Return all sections needed by the home page in one aggregated response.","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Home Dashboard"],"summary": "Get Home Page Data","parameters": [{"type": "string","description": "Selected date for schedule card section (YYYY-MM-DD)","name": "date","in": "query"},{"type": "number","description": "User latitude","name": "latitude","in": "query"},{"type": "number","description": "User longitude","name": "longitude","in": "query"},{"type": "string","description": "User city","name": "city","in": "query"}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.HomeResponseWrapper"}},"400": {5 unmodified lines}}},"/api/v1/payment/callback": {"post": {"description": "Receive and process payment status updates from Xendit","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Payment"],"summary": "Handle Xendit Payment Callback","parameters": [{"description": "Xendit Callback Payload","name": "request","in": "body","required": true,"schema": {"type": "object","additionalProperties": true}}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-any"}},"400": {5 unmodified lines}}},"/api/v1/schedules": {"get": {"security": [{"BearerAuth": []}],"description": "Get a list of class or event schedules based on date range, city, filters, etc.","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Home Dashboard"],"summary": "Get Schedule List","parameters": [{"type": "string","description": "Exact date (YYYY-MM-DD)","name": "date","in": "query"},{"type": "string","description": "Start date range (YYYY-MM-DD)","name": "start_date","in": "query"},{"type": "string","description": "End date range (YYYY-MM-DD)","name": "end_date","in": "query"},{"type": "string","description": "Filter by city","name": "city","in": "query"},{"type": "string","description": "Filter by class level (e.g., beginner)","name": "level","in": "query"},{"type": "string","description": "Filter by class category (e.g., salsa)","name": "category","in": "query"},{"type": "integer","description": "Page number (default: 1)","name": "page","in": "query"},{"type": "integer","description": "Items per page (default: 10, max: 100)","name": "limit","in": "query"}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.ScheduleListResponseWrapper"}},"400": {4 unmodified lines}}}}},"definitions": {"dto.CategoryResponse": {"type": "object","properties": {"id": {"type": "string"},"image_url": {"type": "string"},"name": {"type": "string"}}},"dto.CategoryResponseWrapper": {"type": "object","properties": {"data": {"type": "array","items": {"$ref": "#/definitions/dto.CategoryResponse"}},"success": {"type": "boolean"}}},"dto.ClassBooking": {"type": "object","properties": {"booking_type": {"type": "string"},"button_text": {"type": "string"},"is_bookable": {"type": "boolean"},"starting_price": {"$ref": "#/definitions/dto.PriceData"}}},"dto.ClassDescription": {"type": "object","properties": {"full_text": {"type": "string"},"is_truncated": {"type": "boolean"},"short_text": {"type": "string"}}},"dto.ClassDetailResponse": {"type": "object","properties": {"booking": {"$ref": "#/definitions/dto.ClassBooking"},"cancellation_policy": {"type": "array","items": {"type": "string"}},"class_id": {"type": "string"},"description": {"$ref": "#/definitions/dto.ClassDescription"},"details": {"type": "array","items": {"type": "string"}},"extra_lessons": {"$ref": "#/definitions/dto.ClassExtraLessons"},"favorite": {"$ref": "#/definitions/dto.ClassFavorite"},"gallery": {"type": "array","items": {"$ref": "#/definitions/dto.ClassGalleryItem"}},"hero_image_url": {"type": "string"},"house_dancer": {"$ref": "#/definitions/dto.ClassHouseDancer"},"instructor": {"$ref": "#/definitions/dto.ClassInstructor"},"location": {"$ref": "#/definitions/dto.ClassLocation"},"rating": {"$ref": "#/definitions/dto.ClassRating"},"share": {"$ref": "#/definitions/dto.ClassShare"},"summary": {"$ref": "#/definitions/dto.ClassSummary"},"tags": {"type": "array","items": {"$ref": "#/definitions/dto.ClassTag"}},"title": {"type": "string"},"type": {1 unmodified line}}},"dto.ClassExtraLessons": {"type": "object","properties": {"available": {"type": "boolean"},"description": {"type": "string"}}},"dto.ClassFavorite": {"type": "object","properties": {"is_favorited": {"type": "boolean"}}},"dto.ClassGalleryItem": {"type": "object","properties": {"id": {"type": "string"},"image_url": {"type": "string"},"thumbnail_url": {"type": "string"}}},"dto.ClassHouseDancer": {"type": "object","properties": {"available": {"type": "boolean"},"description": {"type": "string"},"price": {"$ref": "#/definitions/dto.PriceData"}}},"dto.ClassInstructor": {"type": "object","properties": {"avatar_url": {"type": "string"},"id": {"type": "string"},"is_message_enabled": {"type": "boolean"},"name": {"type": "string"},"subtitle": {"type": "string"},"title": {"type": "string"}}},"dto.ClassLocation": {"type": "object","properties": {"address": {"type": "string"},"area_text": {"type": "string"},"latitude": {"type": "number"},"longitude": {"type": "number"},"map_preview_url": {"type": "string"},"venue_name": {"type": "string"}}},"dto.ClassRating": {"type": "object","properties": {"average": {"type": "number"},"count": {"type": "integer"}}},"dto.ClassSearchResult": {"type": "object","properties": {"class_id": {"type": "string"},"distance_km": {"type": "number"},"is_favorited": {"type": "boolean"},"location_text": {"type": "string"},"price": {"$ref": "#/definitions/dto.PriceInfo"},"schedule_text": {"type": "string"},"thumbnail_url": {"type": "string"},"title": {"type": "string"}}},"dto.ClassShare": {"type": "object","properties": {"share_text": {"type": "string"},"share_url": {"type": "string"}}},"dto.ClassSummary": {"type": "object","properties": {"date": {"$ref": "#/definitions/dto.DateDisplay"},"location": {"$ref": "#/definitions/dto.SummaryLocation"},"starting_price": {"$ref": "#/definitions/dto.PriceData"}}},"dto.ClassTag": {"type": "object","properties": {"key": {"type": "string"},"label": {"type": "string"}}},"dto.CurrentLocation": {"type": "object","properties": {"city": {"type": "string"},"label": {"type": "string"},"latitude": {"type": "number"},"longitude": {"type": "number"}}},"dto.DateDisplay": {"type": "object","properties": {"display": {"type": "string"},"raw": {"type": "string"}}},"dto.ErrorResponse": {"type": "object","properties": {"errors": {},"message": {},"meta_data": {},"status": {"type": "string"}}},"dto.FilterOption": {"type": "object","properties": {"id": {"type": "string"},"is_default": {"type": "boolean"},"label": {"type": "string"}}},"dto.FiltersMetadataResponse": {"type": "object","properties": {"categories": {"type": "array","items": {"$ref": "#/definitions/dto.FilterOption"}},"dance_types": {"type": "array","items": {"$ref": "#/definitions/dto.FilterOption"}},"sort_options": {"type": "array","items": {"$ref": "#/definitions/dto.SortOption"}},"view_types": {"type": "array","items": {"$ref": "#/definitions/dto.FilterOption"}}}},"dto.HomeBeginnerClassSection": {"type": "object","properties": {"id": {"type": "string"},"image_url": {"type": "string"},"name": {"type": "string"},"type": {"type": "string"}}},"dto.HomeDay": {"type": "object","properties": {"date": {"type": "string"},"day_name_short": {"type": "string"},"day_number": {"type": "integer"},"has_schedule": {"type": "boolean"},"is_selected": {"type": "boolean"}}},"dto.HomeEventSection": {"type": "object","properties": {"id": {"type": "string"},"image_url": {"type": "string"},"name": {"type": "string"},"type": {"type": "string"}}},"dto.HomeHeroBanner": {"type": "object","properties": {"badge_text": {"type": "string"},"cta_target_id": {"type": "string"},"cta_text": {"type": "string"},"cta_type": {"type": "string"},"id": {"type": "string"},"image_url": {"type": "string"},"subtitle": {"type": "string"},"title": {1 unmodified line}}},"dto.HomeNotifications": {"type": "object","properties": {"unread_count": {"type": "integer"}}},"dto.HomePromoStrip": {"type": "object","properties": {"cta_target_id": {"type": "string"},"cta_text": {"type": "string"},"cta_type": {"type": "string"},"id": {"type": "string"},"text": {"type": "string"}}},"dto.HomeResponse": {"type": "object","properties": {"beginner_class_sections": {"type": "array","items": {"$ref": "#/definitions/dto.HomeBeginnerClassSection"}},"event_sections": {"type": "array","items": {"$ref": "#/definitions/dto.HomeEventSection"}},"hero_banners": {"type": "array","items": {"$ref": "#/definitions/dto.HomeHeroBanner"}},"notifications": {"$ref": "#/definitions/dto.HomeNotifications"},"promo_strip": {"$ref": "#/definitions/dto.HomePromoStrip"},"search": {"$ref": "#/definitions/dto.HomeSearch"},"user": {"$ref": "#/definitions/dto.HomeUser"},"week_schedule": {"$ref": "#/definitions/dto.HomeWeekSchedule"}}},"dto.HomeResponseWrapper": {"type": "object","properties": {"data": {"$ref": "#/definitions/dto.HomeResponse"},"message": {"type": "string"},"success": {"type": "boolean"}}},"dto.HomeSearch": {"type": "object","properties": {"placeholder": {"type": "string"}}},"dto.HomeUser": {"type": "object","properties": {"avatar_url": {"type": "string"},"first_name": {"type": "string"},"full_name": {"type": "string"},"id": {"type": "string"}}},"dto.HomeWeekSchedule": {"type": "object","properties": {"days": {"type": "array","items": {"$ref": "#/definitions/dto.HomeDay"}},"end_date": {"type": "string"},"items": {"type": "array","items": {"$ref": "#/definitions/dto.ScheduleItem"}},"selected_date": {"type": "string"},"start_date": {"type": "string"},"view_all_url": {"type": "string"},"week_label": {"type": "string"}}},"dto.Pagination": {"type": "object","properties": {"has_next_page": {"type": "boolean"},"limit": {"type": "integer"},"page": {"type": "integer"},"total_items": {"type": "integer"},"total_pages": {"type": "integer"}}},"dto.PaginationMeta": {"type": "object","properties": {"limit": {"type": "integer"},"page": {"type": "integer"},"total_items": {"type": "integer"},"total_pages": {"type": "integer"}}},"dto.PriceData": {"type": "object","properties": {"amount": {"type": "integer"},"currency": {"type": "string"},"display": {"type": "string"}}},"dto.PriceInfo": {"type": "object","properties": {"currency": {"type": "string"},"display": {"type": "string"},"max_amount": {"type": "number"},"min_amount": {"type": "number"}}},"dto.ScheduleItem": {"type": "object","properties": {"city": {"type": "string"},"class_id": {"type": "string"},"date": {"type": "string"},"display_time": {"type": "string"},"end_time": {"type": "string"},"is_booked": {"type": "boolean"},"schedule_id": {"type": "string"},"start_time": {"type": "string"},"studio_name": {"type": "string"},"teacher_name": {"type": "string"},"title": {"type": "string"}}},"dto.ScheduleListItem": {"type": "object","properties": {"address": {"type": "string"},"available_slots": {"type": "integer"},"category": {"type": "string"},"city": {"type": "string"},"class_id": {"type": "string"},"date": {"type": "string"},"display_time": {"type": "string"},"end_time": {"type": "string"},"is_booked": {"type": "boolean"},"level": {"type": "string"},"price": {"$ref": "#/definitions/dto.PriceData"},"schedule_id": {"type": "string"},"start_time": {"type": "string"},"studio_name": {"type": "string"},"teacher_name": {"type": "string"},"thumbnail_url": {"type": "string"},"title": {"type": "string"}}},"dto.ScheduleListResponse": {"type": "object","properties": {"items": {"type": "array","items": {"$ref": "#/definitions/dto.ScheduleListItem"}},"pagination": {"$ref": "#/definitions/dto.PaginationMeta"}}},"dto.ScheduleListResponseWrapper": {"type": "object","properties": {"data": {"$ref": "#/definitions/dto.ScheduleListResponse"},"message": {"type": "string"},"success": {"type": "boolean"}}},"dto.SearchClassesResponse": {"type": "object","properties": {"current_location": {"$ref": "#/definitions/dto.CurrentLocation"},"nearby_classes": {"type": "array","items": {"$ref": "#/definitions/dto.ClassSearchResult"}},"pagination": {"$ref": "#/definitions/dto.Pagination"},"previous_classes": {"type": "array","items": {"$ref": "#/definitions/dto.ClassSearchResult"}},"search_context": {"$ref": "#/definitions/dto.SearchContext"}}},"dto.SearchContext": {"type": "object","properties": {"query": {"type": "string"},"selected_filters": {"type": "object","additionalProperties": true},"sort_by": {"type": "string"},"view_type": {"type": "string"}}},"dto.SortOption": {"type": "object","properties": {"id": {"type": "string"},"is_default": {"type": "boolean"},"label": {"type": "string"}}},"dto.SuccessResponse-any": {"type": "object","properties": {"data": {},"message": {},"meta_data": {},"status": {"type": "string"}}},"dto.SummaryLocation": {"type": "object","properties": {"display": {"type": "string"},"venue_name": {"type": "string"}}19 unmodified lines2021222324252627281 unmodified line303132333435363738394041424344454647484950515253545 unmodified lines6061626364656667681 unmodified line707172737475767778798081828384858687888990919293941 unmodified line969798991001011021031041051061071081091101111121131 unmodified line11511611711811912012112212312412512612712812913013113213313413513613713813911 unmodified lines1511521531541551561571581591 unmodified line1611621631641651661671681691701711721731741751761771781791801811821831841851861871881891 unmodified line1911921931941951961971981991 unmodified line2012022032042052062072082092102112122132142152162172182192202212222232242255 unmodified lines2312322332342352362372382391 unmodified line2412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712725 unmodified lines2782792802812822832842852861 unmodified line2882892902912922932942952962972982993003015 unmodified lines3073083093103113123133143153163173183193201 unmodified line3223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825834 unmodified lines588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511 unmodified line145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011 unmodified line1903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243519 unmodified lines"host": "lifedebugger-danzapp-be-test.hf.space","basePath": "/","paths": {"/api/v1/auth/otp/request": {"post": {"description": "Trigger an OTP code via WhatsApp for phone number verification.","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Auth"],"summary": "Request OTP","parameters": [{"description": "OTP Request Data","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.OTPRequestInput"}}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.OTPRequestResponse"}},"400": {5 unmodified lines}}},"/api/v1/auth/otp/verify": {"post": {"description": "Validate the OTP code provided by the user and return authentication token.","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Auth"],"summary": "Verify OTP","parameters": [{"description": "OTP Verification Data","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.OTPVerifyInput"}}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.OTPVerifyResponse"}},"400": {1 unmodified line"schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/authentication/change-password": {"put": {"security": [{"BearerAuth": []}],"description": "Update password for the logged-in user.","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Auth"],"summary": "Change Password","parameters": [{"description": "Password Change Data","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.ChangePasswordRequest"}}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.AuthenticatedUser"}},"400": {11 unmodified lines}}},"/api/v1/authentication/login": {"post": {"description": "Authenticate user via email/username and password.","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Auth"],"summary": "Sign In","parameters": [{"description": "Sign In Data","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.SignInRequest"}}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.AuthenticatedUser"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}1 unmodified line}}},"/api/v1/authentication/register": {"post": {"description": "Register a new user with name, email, username and password.","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Auth"],"summary": "Sign Up","parameters": [{"description": "Sign Up Data","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.SignUpRequest"}}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/entities.User"}},"400": {5 unmodified lines}}},"/api/v1/authentication/role/{userId}": {"put": {"description": "Update user role. Note: This is an older endpoint, consider using /api/v1/users/me/roles instead.","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Users"],"summary": "Update User Role (Legacy)","parameters": [{"type": "string","description": "User ID","name": "userId","in": "path","required": true},{"description": "Role Update Data","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.UpdateUserRoleRequest"}}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/entities.User"}},"400": {5 unmodified lines}}},"/api/v1/class-categories": {"get": {"description": "Get master list of class categories","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Master Data"],"summary": "Get Class Categories","responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.CategoryResponseWrapper"}},"400": {5 unmodified lines}}},"/api/v1/classes": {"post": {"security": [{"BearerAuth": []}],"description": "Allows an instructor to create/host a new class. Automatically creates an instructor profile if one doesn't exist.","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Classes"],"summary": "Host a Class","parameters": [{"description": "Class Creation Data","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.CreateClassRequest"}}],"responses": {"201": {"description": "Created","schema": {"$ref": "#/definitions/entities.Class"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"403": {"description": "Forbidden","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/classes/filters": {"get": {"security": [{"BearerAuth": []}],"description": "Returns available filter options for class search","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Classes"],"summary": "Get Class Filters Metadata","responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.FiltersMetadataResponse"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/classes/search": {"get": {"security": [{"BearerAuth": []}],"description": "Search classes with filters and sorting options","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Classes"],"summary": "Search for Classes","parameters": [{"type": "string","description": "Search query","name": "q","in": "query"},{"type": "string","description": "Location name","name": "location_name","in": "query"},{"type": "number","description": "User latitude","name": "latitude","in": "query"},{"type": "number","description": "User longitude","name": "longitude","in": "query"},{"type": "string","default": "nearest","description": "Sort by (nearest|popular|rating|newest)","name": "sort_by","in": "query"},{"type": "integer","default": 1,"description": "Page number","name": "page","in": "query"},{"type": "integer","default": 10,"description": "Items per page","name": "limit","in": "query"},{"type": "string","default": "class","description": "View type","name": "view_type","in": "query"},{"type": "string","default": "all","description": "Category","name": "category","in": "query"},{"type": "string","description": "Dance type","name": "dance_type","in": "query"}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SearchClassesResponse"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/classes/{class_id}": {"get": {"security": [{"BearerAuth": []}],"description": "Return comprehensive class information needed to render the detail page.","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Classes"],"summary": "Get Class Details","parameters": [{"type": "string","description": "Class ID","name": "class_id","in": "path","required": true}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.ClassDetailResponse"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"404": {"description": "Not Found","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/event-categories": {"get": {"description": "Get master list of event categories","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Master Data"],"summary": "Get Event Categories","responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.CategoryResponseWrapper"}},"400": {4 unmodified lines}}}},"/api/v1/home": {"get": {"security": [{"BearerAuth": []}],"description": "Return all sections needed by the home page in one aggregated response.","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Home Dashboard"],"summary": "Get Home Page Data","parameters": [{"type": "string","description": "Selected date for schedule card section (YYYY-MM-DD)","name": "date","in": "query"},{"type": "number","description": "User latitude","name": "latitude","in": "query"},{"type": "number","description": "User longitude","name": "longitude","in": "query"},{"type": "string","description": "User city","name": "city","in": "query"}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.HomeResponseWrapper"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/payment/callback": {"post": {"description": "Receive and process payment status updates from Xendit","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Payment"],"summary": "Handle Xendit Payment Callback","parameters": [{"description": "Xendit Callback Payload","name": "request","in": "body","required": true,"schema": {"type": "object","additionalProperties": true}}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-any"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/schedules": {"get": {"security": [{"BearerAuth": []}],"description": "Get a list of class or event schedules based on date range, city, filters, etc.","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Home Dashboard"],"summary": "Get Schedule List","parameters": [{"type": "string","description": "Exact date (YYYY-MM-DD)","name": "date","in": "query"},{"type": "string","description": "Start date range (YYYY-MM-DD)","name": "start_date","in": "query"},{"type": "string","description": "End date range (YYYY-MM-DD)","name": "end_date","in": "query"},{"type": "string","description": "Filter by city","name": "city","in": "query"},{"type": "string","description": "Filter by class level (e.g., beginner)","name": "level","in": "query"},{"type": "string","description": "Filter by class category (e.g., salsa)","name": "category","in": "query"},{"type": "integer","description": "Page number (default: 1)","name": "page","in": "query"},{"type": "integer","description": "Items per page (default: 10, max: 100)","name": "limit","in": "query"}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.ScheduleListResponseWrapper"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/users/me": {"get": {"security": [{"BearerAuth": []}],"description": "Get current logged-in user profile, including roles and about details.","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Users"],"summary": "Get My Profile","responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.UserProfileResponse"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/users/me/about": {"put": {"security": [{"BearerAuth": []}],"description": "Update user's personal details like gender, dance level, and description.","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Users"],"summary": "Update About You","parameters": [{"description": "Update Profile Data","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.UpdateAboutYouRequest"}}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.UserProfileResponse"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/users/me/roles": {"put": {"security": [{"BearerAuth": []}],"description": "Update user's primary role (member, instructor, venue_owner).","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Users"],"summary": "Assign Role","parameters": [{"description": "Role Assignment Data","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.UpdateUserRolesRequest"}}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.UserProfileResponse"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/users/{id}": {"get": {"security": [{"BearerAuth": []}],"description": "Get public profile and roles of another user by their ID.","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Users"],"summary": "Get User Details","parameters": [{"type": "string","description": "User ID","name": "id","in": "path","required": true}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.UserProfileResponse"}},"404": {"description": "Not Found","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}}},"definitions": {"dto.AuthenticatedUser": {"type": "object","properties": {"token": {"type": "string"},"user": {"$ref": "#/definitions/entities.User"}}},"dto.CategoryResponse": {"type": "object","properties": {"id": {"type": "string"},"image_url": {"type": "string"},"name": {"type": "string"}}},"dto.CategoryResponseWrapper": {"type": "object","properties": {"data": {"type": "array","items": {"$ref": "#/definitions/dto.CategoryResponse"}},"success": {"type": "boolean"}}},"dto.ChangePasswordRequest": {"type": "object","required": ["new_password","old_password"],"properties": {"new_password": {"type": "string"},"old_password": {"type": "string"}}},"dto.ClassBooking": {"type": "object","properties": {"booking_type": {"type": "string"},"button_text": {"type": "string"},"is_bookable": {"type": "boolean"},"starting_price": {"$ref": "#/definitions/dto.PriceData"}}},"dto.ClassDescription": {"type": "object","properties": {"full_text": {"type": "string"},"is_truncated": {"type": "boolean"},"short_text": {"type": "string"}}},"dto.ClassDetailResponse": {"type": "object","properties": {"booking": {"$ref": "#/definitions/dto.ClassBooking"},"cancellation_policy": {"type": "array","items": {"type": "string"}},"class_id": {"type": "string"},"description": {"$ref": "#/definitions/dto.ClassDescription"},"details": {"type": "array","items": {"type": "string"}},"extra_lessons": {"$ref": "#/definitions/dto.ClassExtraLessons"},"favorite": {"$ref": "#/definitions/dto.ClassFavorite"},"gallery": {"type": "array","items": {"$ref": "#/definitions/dto.ClassGalleryItem"}},"hero_image_url": {"type": "string"},"house_dancer": {"$ref": "#/definitions/dto.ClassHouseDancer"},"instructor": {"$ref": "#/definitions/dto.ClassInstructor"},"location": {"$ref": "#/definitions/dto.ClassLocation"},"rating": {"$ref": "#/definitions/dto.ClassRating"},"share": {"$ref": "#/definitions/dto.ClassShare"},"summary": {"$ref": "#/definitions/dto.ClassSummary"},"tags": {"type": "array","items": {"$ref": "#/definitions/dto.ClassTag"}},"title": {"type": "string"},"type": {"type": "string"}}},"dto.ClassExtraLessons": {"type": "object","properties": {"available": {"type": "boolean"},"description": {"type": "string"}}},"dto.ClassFavorite": {"type": "object","properties": {"is_favorited": {"type": "boolean"}}},"dto.ClassGalleryItem": {"type": "object","properties": {"id": {"type": "string"},"image_url": {"type": "string"},"thumbnail_url": {"type": "string"}}},"dto.ClassHouseDancer": {"type": "object","properties": {"available": {"type": "boolean"},"description": {"type": "string"},"price": {"$ref": "#/definitions/dto.PriceData"}}},"dto.ClassInstructor": {"type": "object","properties": {"avatar_url": {"type": "string"},"id": {"type": "string"},"is_message_enabled": {"type": "boolean"},"name": {"type": "string"},"subtitle": {"type": "string"},"title": {"type": "string"}}},"dto.ClassLocation": {"type": "object","properties": {"address": {"type": "string"},"area_text": {"type": "string"},"latitude": {"type": "number"},"longitude": {"type": "number"},"map_preview_url": {"type": "string"},"venue_name": {"type": "string"}}},"dto.ClassRating": {"type": "object","properties": {"average": {"type": "number"},"count": {"type": "integer"}}},"dto.ClassSearchResult": {"type": "object","properties": {"class_id": {"type": "string"},"distance_km": {"type": "number"},"is_favorited": {"type": "boolean"},"location_text": {"type": "string"},"price": {"$ref": "#/definitions/dto.PriceInfo"},"schedule_text": {"type": "string"},"thumbnail_url": {"type": "string"},"title": {"type": "string"}}},"dto.ClassShare": {"type": "object","properties": {"share_text": {"type": "string"},"share_url": {"type": "string"}}},"dto.ClassSummary": {"type": "object","properties": {"date": {"$ref": "#/definitions/dto.DateDisplay"},"location": {"$ref": "#/definitions/dto.SummaryLocation"},"starting_price": {"$ref": "#/definitions/dto.PriceData"}}},"dto.ClassTag": {"type": "object","properties": {"key": {"type": "string"},"label": {"type": "string"}}},"dto.CreateClassRequest": {"type": "object","required": ["capacity","end_time","price","schedule_type","start_time","title"],"properties": {"capacity": {"type": "integer"},"description": {"type": "string"},"end_time": {"type": "string"},"price": {"type": "number"},"schedule_type": {"type": "string"},"start_time": {"type": "string"},"title": {"type": "string"},"venue_id": {"type": "string"}}},"dto.CurrentLocation": {"type": "object","properties": {"city": {"type": "string"},"label": {"type": "string"},"latitude": {"type": "number"},"longitude": {"type": "number"}}},"dto.DateDisplay": {"type": "object","properties": {"display": {"type": "string"},"raw": {"type": "string"}}},"dto.ErrorResponse": {"type": "object","properties": {"errors": {},"message": {},"meta_data": {},"status": {"type": "string"}}},"dto.FilterOption": {"type": "object","properties": {"id": {"type": "string"},"is_default": {"type": "boolean"},"label": {"type": "string"}}},"dto.FiltersMetadataResponse": {"type": "object","properties": {"categories": {"type": "array","items": {"$ref": "#/definitions/dto.FilterOption"}},"dance_types": {"type": "array","items": {"$ref": "#/definitions/dto.FilterOption"}},"sort_options": {"type": "array","items": {"$ref": "#/definitions/dto.SortOption"}},"view_types": {"type": "array","items": {"$ref": "#/definitions/dto.FilterOption"}}}},"dto.HomeBeginnerClassSection": {"type": "object","properties": {"id": {"type": "string"},"image_url": {"type": "string"},"name": {"type": "string"},"type": {"type": "string"}}},"dto.HomeDay": {"type": "object","properties": {"date": {"type": "string"},"day_name_short": {"type": "string"},"day_number": {"type": "integer"},"has_schedule": {"type": "boolean"},"is_selected": {"type": "boolean"}}},"dto.HomeEventSection": {"type": "object","properties": {"id": {"type": "string"},"image_url": {"type": "string"},"name": {"type": "string"},"type": {1 unmodified line}}},"dto.HomeHeroBanner": {"type": "object","properties": {"badge_text": {"type": "string"},"cta_target_id": {"type": "string"},"cta_text": {"type": "string"},"cta_type": {"type": "string"},"id": {"type": "string"},"image_url": {"type": "string"},"subtitle": {"type": "string"},"title": {"type": "string"}}},"dto.HomeNotifications": {"type": "object","properties": {"unread_count": {"type": "integer"}}},"dto.HomePromoStrip": {"type": "object","properties": {"cta_target_id": {"type": "string"},"cta_text": {"type": "string"},"cta_type": {"type": "string"},"id": {"type": "string"},"text": {"type": "string"}}},"dto.HomeResponse": {"type": "object","properties": {"beginner_class_sections": {"type": "array","items": {"$ref": "#/definitions/dto.HomeBeginnerClassSection"}},"event_sections": {"type": "array","items": {"$ref": "#/definitions/dto.HomeEventSection"}},"hero_banners": {"type": "array","items": {"$ref": "#/definitions/dto.HomeHeroBanner"}},"notifications": {"$ref": "#/definitions/dto.HomeNotifications"},"promo_strip": {"$ref": "#/definitions/dto.HomePromoStrip"},"search": {"$ref": "#/definitions/dto.HomeSearch"},"user": {"$ref": "#/definitions/dto.HomeUser"},"week_schedule": {"$ref": "#/definitions/dto.HomeWeekSchedule"}}},"dto.HomeResponseWrapper": {"type": "object","properties": {"data": {"$ref": "#/definitions/dto.HomeResponse"},"message": {"type": "string"},"success": {"type": "boolean"}}},"dto.HomeSearch": {"type": "object","properties": {"placeholder": {"type": "string"}}},"dto.HomeUser": {"type": "object","properties": {"avatar_url": {"type": "string"},"first_name": {"type": "string"},"full_name": {"type": "string"},"id": {"type": "string"}}},"dto.HomeWeekSchedule": {"type": "object","properties": {"days": {"type": "array","items": {"$ref": "#/definitions/dto.HomeDay"}},"end_date": {"type": "string"},"items": {"type": "array","items": {"$ref": "#/definitions/dto.ScheduleItem"}},"selected_date": {"type": "string"},"start_date": {"type": "string"},"view_all_url": {"type": "string"},"week_label": {"type": "string"}}},"dto.OTPAuth": {"type": "object","properties": {"access_token": {"type": "string"},"expires_in_seconds": {"type": "integer"},"refresh_token": {"type": "string"},"token_type": {"type": "string"}}},"dto.OTPRequestInput": {"type": "object","required": ["channel","phone_number","purpose"],"properties": {"app_name": {"type": "string"},"channel": {"type": "string"},"device_id": {"type": "string"},"locale": {"type": "string"},"phone_number": {"type": "string"},"purpose": {"type": "string"}}},"dto.OTPRequestResponse": {"type": "object","properties": {"channel": {"type": "string"},"expires_in_seconds": {"type": "integer"},"masked_destination": {"type": "string"},"otp_length": {"type": "integer"},"otp_request_id": {"type": "string"},"resend_available_in_seconds": {"type": "integer"}}},"dto.OTPVerifiedUser": {"type": "object","properties": {"id": {"type": "string"},"is_new_user": {"type": "boolean"},"name": {"type": "string"},"phone_number": {"type": "string"}}},"dto.OTPVerifyInput": {"type": "object","required": ["otp_code","otp_request_id","phone_number","purpose"],"properties": {"device_id": {"type": "string"},"otp_code": {"type": "string"},"otp_request_id": {"type": "string"},"phone_number": {"type": "string"},"purpose": {"type": "string"}}},"dto.OTPVerifyResponse": {"type": "object","properties": {"auth": {"$ref": "#/definitions/dto.OTPAuth"},"user": {"$ref": "#/definitions/dto.OTPVerifiedUser"}}},"dto.Pagination": {"type": "object","properties": {"has_next_page": {"type": "boolean"},"limit": {"type": "integer"},"page": {"type": "integer"},"total_items": {"type": "integer"},"total_pages": {"type": "integer"}}},"dto.PaginationMeta": {"type": "object","properties": {"limit": {"type": "integer"},"page": {"type": "integer"},"total_items": {"type": "integer"},"total_pages": {"type": "integer"}}},"dto.PriceData": {"type": "object","properties": {"amount": {"type": "integer"},"currency": {"type": "string"},"display": {"type": "string"}}},"dto.PriceInfo": {"type": "object","properties": {"currency": {"type": "string"},"display": {"type": "string"},"max_amount": {"type": "number"},"min_amount": {"type": "number"}}},"dto.ScheduleItem": {"type": "object","properties": {"city": {"type": "string"},"class_id": {"type": "string"},"date": {"type": "string"},"display_time": {"type": "string"},"end_time": {"type": "string"},"is_booked": {"type": "boolean"},"schedule_id": {"type": "string"},"start_time": {"type": "string"},"studio_name": {"type": "string"},"teacher_name": {"type": "string"},"title": {"type": "string"}}},"dto.ScheduleListItem": {"type": "object","properties": {"address": {"type": "string"},"available_slots": {"type": "integer"},"category": {"type": "string"},"city": {"type": "string"},"class_id": {"type": "string"},"date": {"type": "string"},"display_time": {"type": "string"},"end_time": {"type": "string"},"is_booked": {"type": "boolean"},"level": {"type": "string"},"price": {"$ref": "#/definitions/dto.PriceData"},"schedule_id": {"type": "string"},"start_time": {"type": "string"},"studio_name": {"type": "string"},"teacher_name": {"type": "string"},"thumbnail_url": {"type": "string"},"title": {1 unmodified line}}},"dto.ScheduleListResponse": {"type": "object","properties": {"items": {"type": "array","items": {"$ref": "#/definitions/dto.ScheduleListItem"}},"pagination": {"$ref": "#/definitions/dto.PaginationMeta"}}},"dto.ScheduleListResponseWrapper": {"type": "object","properties": {"data": {"$ref": "#/definitions/dto.ScheduleListResponse"},"message": {"type": "string"},"success": {"type": "boolean"}}},"dto.SearchClassesResponse": {"type": "object","properties": {"current_location": {"$ref": "#/definitions/dto.CurrentLocation"},"nearby_classes": {"type": "array","items": {"$ref": "#/definitions/dto.ClassSearchResult"}},"pagination": {"$ref": "#/definitions/dto.Pagination"},"previous_classes": {"type": "array","items": {"$ref": "#/definitions/dto.ClassSearchResult"}},"search_context": {"$ref": "#/definitions/dto.SearchContext"}}},"dto.SearchContext": {"type": "object","properties": {"query": {"type": "string"},"selected_filters": {"type": "object","additionalProperties": true},"sort_by": {"type": "string"},"view_type": {"type": "string"}}},"dto.SignInRequest": {"type": "object","required": ["email_or_username","password"],"properties": {"email_or_username": {"type": "string"},"password": {"type": "string"}}},"dto.SignUpRequest": {"type": "object","required": ["email","password","username"],"properties": {"email": {"type": "string"},"name": {"type": "string"},"password": {"type": "string"},"username": {"type": "string"}}},"dto.SortOption": {"type": "object","properties": {"id": {"type": "string"},"is_default": {"type": "boolean"},"label": {"type": "string"}}},"dto.SuccessResponse-any": {"type": "object","properties": {"data": {},"message": {},"meta_data": {},"status": {"type": "string"}}},"dto.SummaryLocation": {"type": "object","properties": {"display": {"type": "string"},"venue_name": {"type": "string"}}},"dto.UpdateAboutYouRequest": {"type": "object","properties": {"city": {"type": "string"},"dance_level": {"type": "string"},"description": {"type": "string"},"gender": {"type": "string"},"province": {"type": "string"}}},"dto.UpdateUserRoleRequest": {"type": "object","required": ["role"],"properties": {"role": {"type": "string"}}},"dto.UpdateUserRolesRequest": {"type": "object","required": ["role"],"properties": {"role": {"type": "string"}}},"dto.UserProfileResponse": {"type": "object","properties": {"city": {"type": "string"},"dance_level": {"type": "string"},"description": {"type": "string"},"email": {"type": "string"},"full_name": {"type": "string"},"gender": {"type": "string"},"id": {"type": "string"},"is_instructor": {"type": "boolean"},"is_member": {"type": "boolean"},"is_vo": {"type": "boolean"},"nickname": {"type": "string"},"phone_number": {"type": "string"},"profile_media": {"type": "string"},"province": {"type": "string"},"roles": {"type": "array","items": {"$ref": "#/definitions/dto.UserRoleResponse"}}}},"dto.UserRoleResponse": {"type": "object","properties": {"created_at": {"type": "string"},"role": {"type": "string"}}},"entities.Class": {"type": "object","properties": {"capacity": {"type": "integer"},"classMedia": {"type": "array","items": {"type": "integer","format": "int32"}},"createdAt": {"type": "string"},"description": {"type": "array","items": {"type": "integer","format": "int32"}},"endTime": {"type": "string"},"id": {"type": "string"},"instructor": {"$ref": "#/definitions/entities.Instructor"},"instructorID": {"type": "string"},"price": {"type": "number","format": "float64"},"scheduleType": {"type": "string"},"startTime": {"type": "string"},"title": {"type": "string"},"venue": {"$ref": "#/definitions/entities.Venue"},"venueID": {"type": "string"}}},"entities.Instructor": {"type": "object","properties": {"createdAt": {"type": "string"},"id": {"type": "string"},"introduction": {"type": "array","items": {"type": "integer","format": "int32"}},"profileMedia": {"type": "array","items": {"type": "integer","format": "int32"}},"rank": {"type": "string"},"specialization": {"type": "array","items": {"type": "integer","format": "int32"}},"user": {"$ref": "#/definitions/entities.User"},"userID": {"type": "string"}}},"entities.User": {"type": "object","properties": {"additionalDetails": {"type": "array","items": {"type": "integer","format": "int32"}},"city": {"type": "string"},"createdAt": {"type": "string"},"danceLevel": {"type": "string"},"description": {"type": "string"},"email": {"type": "string"},"fullName": {"type": "string"},"gender": {"type": "string"},"id": {"type": "string"},"interests": {"type": "array","items": {"type": "integer","format": "int32"}},"isInstructor": {"type": "boolean"},"isMember": {"type": "boolean"},"isVO": {"type": "boolean"},"nickname": {"type": "string"},"passwordHash": {"type": "string"},"phoneNumber": {"type": "string"},"prefedLanguage": {"type": "string"},"profileMedia": {"type": "string"},"province": {"type": "string"},"roles": {"type": "array","items": {"$ref": "#/definitions/entities.UserRole"}},"updatedAt": {"type": "string"}}},"entities.UserRole": {"type": "object","properties": {"createdAt": {"type": "string"},"id": {"type": "string"},"role": {"type": "string"},"user": {"$ref": "#/definitions/entities.User"},"userID": {"type": "string"}}},"entities.Venue": {"type": "object","properties": {"address": {"type": "string"},"capacity": {"type": "integer"},"city": {"type": "string"},"closingTime": {"type": "string"},"createdAt": {"type": "string"},"description": {"type": "array","items": {"type": "integer","format": "int32"}},"id": {"type": "string"},"latitude": {"type": "number","format": "float64"},"longitude": {"type": "number","format": "float64"},"minimumConsumption": {"type": "number","format": "float64"},"name": {"type": "string"},"openingTime": {"type": "string"},"owner": {"$ref": "#/definitions/entities.VenueOwner"},"ownerID": {"type": "string"},"province": {"type": "string"},"venueMedia": {"type": "array","items": {"type": "integer","format": "int32"}},"verificationStatus": {"type": "string"}}},"entities.VenueOwner": {"type": "object","properties": {"createdAt": {"type": "string"},"id": {"type": "string"},"user": {"$ref": "#/definitions/entities.User"},"userID": {"type": "string"}}
1234512 unmodified lines181920212223170 unmodified lines194195196197198199191 unmodified lines391392393394395396147 unmodified lines54454554654754854918 unmodified lines5685695705715725736 unmodified lines58058158258358458513 unmodified lines599600601602603604261 unmodified lines866867868869870871basePath: /definitions:dto.CategoryResponse:properties:id:12 unmodified linessuccess:type: booleantype: objectdto.ClassBooking:properties:booking_type:170 unmodified lineslabel:type: stringtype: objectdto.CurrentLocation:properties:city:191 unmodified linesweek_label:type: stringtype: objectdto.Pagination:properties:has_next_page:147 unmodified linesview_type:type: stringtype: objectdto.SortOption:properties:id:18 unmodified linesvenue_name:type: stringtype: objecthost: lifedebugger-danzapp-be-test.hf.spaceinfo:contact:6 unmodified linestitle: Go Boilerplate APIversion: 1.0.0paths:/api/v1/class-categories:get:consumes:13 unmodified linessummary: Get Class Categoriestags:- Master Data/api/v1/classes/{class_id}:get:consumes:261 unmodified linessummary: Get Schedule Listtags:- Home Dashboardschemes:- http- https12345678910111212 unmodified lines25262728293031323334353637383940170 unmodified lines211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242191 unmodified lines434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520147 unmodified lines66866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769818 unmodified lines7177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799806 unmodified lines98798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116113 unmodified lines1175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217261 unmodified lines1479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596basePath: /definitions:dto.AuthenticatedUser:properties:token:type: stringuser:$ref: '#/definitions/entities.User'type: objectdto.CategoryResponse:properties:id:12 unmodified linessuccess:type: booleantype: objectdto.ChangePasswordRequest:properties:new_password:type: stringold_password:type: stringrequired:- new_password- old_passwordtype: objectdto.ClassBooking:properties:booking_type:170 unmodified lineslabel:type: stringtype: objectdto.CreateClassRequest:properties:capacity:type: integerdescription:type: stringend_time:type: stringprice:type: numberschedule_type:type: stringstart_time:type: stringtitle:type: stringvenue_id:type: stringrequired:- capacity- end_time- price- schedule_type- start_time- titletype: objectdto.CurrentLocation:properties:city:191 unmodified linesweek_label:type: stringtype: objectdto.OTPAuth:properties:access_token:type: stringexpires_in_seconds:type: integerrefresh_token:type: stringtoken_type:type: stringtype: objectdto.OTPRequestInput:properties:app_name:type: stringchannel:type: stringdevice_id:type: stringlocale:type: stringphone_number:type: stringpurpose:type: stringrequired:- channel- phone_number- purposetype: objectdto.OTPRequestResponse:properties:channel:type: stringexpires_in_seconds:type: integermasked_destination:type: stringotp_length:type: integerotp_request_id:type: stringresend_available_in_seconds:type: integertype: objectdto.OTPVerifiedUser:properties:id:type: stringis_new_user:type: booleanname:type: stringphone_number:type: stringtype: objectdto.OTPVerifyInput:properties:device_id:type: stringotp_code:type: stringotp_request_id:type: stringphone_number:type: stringpurpose:type: stringrequired:- otp_code- otp_request_id- phone_number- purposetype: objectdto.OTPVerifyResponse:properties:auth:$ref: '#/definitions/dto.OTPAuth'user:$ref: '#/definitions/dto.OTPVerifiedUser'type: objectdto.Pagination:properties:has_next_page:147 unmodified linesview_type:type: stringtype: objectdto.SignInRequest:properties:email_or_username:type: stringpassword:type: stringrequired:- email_or_username- passwordtype: objectdto.SignUpRequest:properties:email:type: stringname:type: stringpassword:type: stringusername:type: stringrequired:- password- usernametype: objectdto.SortOption:properties:id:18 unmodified linesvenue_name:type: stringtype: objectdto.UpdateAboutYouRequest:properties:city:type: stringdance_level:type: stringdescription:type: stringgender:type: stringprovince:type: stringtype: objectdto.UpdateUserRoleRequest:properties:role:type: stringrequired:- roletype: objectdto.UpdateUserRolesRequest:properties:role:type: stringrequired:- roletype: objectdto.UserProfileResponse:properties:city:type: stringdance_level:type: stringdescription:type: stringemail:type: stringfull_name:type: stringgender:type: stringid:type: stringis_instructor:type: booleanis_member:type: booleanis_vo:type: booleannickname:type: stringphone_number:type: stringprofile_media:type: stringprovince:type: stringroles:items:$ref: '#/definitions/dto.UserRoleResponse'type: arraytype: objectdto.UserRoleResponse:properties:created_at:type: stringrole:type: stringtype: objectentities.Class:properties:capacity:type: integerclassMedia:items:format: int32type: integertype: arraycreatedAt:type: stringdescription:items:format: int32type: integertype: arrayendTime:type: stringid:type: stringinstructor:$ref: '#/definitions/entities.Instructor'instructorID:type: stringprice:format: float64type: numberscheduleType:type: stringstartTime:type: stringtitle:type: stringvenue:$ref: '#/definitions/entities.Venue'venueID:type: stringtype: objectentities.Instructor:properties:createdAt:type: stringid:type: stringintroduction:items:format: int32type: integertype: arrayprofileMedia:items:format: int32type: integertype: arrayrank:type: stringspecialization:items:format: int32type: integertype: arrayuser:$ref: '#/definitions/entities.User'userID:type: stringtype: objectentities.User:properties:additionalDetails:items:format: int32type: integertype: arraycity:type: stringcreatedAt:type: stringdanceLevel:type: stringdescription:type: stringemail:type: stringfullName:type: stringgender:type: stringid:type: stringinterests:items:format: int32type: integertype: arrayisInstructor:type: booleanisMember:type: booleanisVO:type: booleannickname:type: stringpasswordHash:type: stringphoneNumber:type: stringprefedLanguage:type: stringprofileMedia:type: stringprovince:type: stringroles:items:$ref: '#/definitions/entities.UserRole'type: arrayupdatedAt:type: stringtype: objectentities.UserRole:properties:createdAt:type: stringid:type: stringrole:type: stringuser:$ref: '#/definitions/entities.User'userID:type: stringtype: objectentities.Venue:properties:address:type: stringcapacity:type: integercity:type: stringclosingTime:type: stringcreatedAt:type: stringdescription:items:format: int32type: integertype: arrayid:type: stringlatitude:format: float64type: numberlongitude:format: float64type: numberminimumConsumption:format: float64type: numbername:type: stringopeningTime:type: stringowner:$ref: '#/definitions/entities.VenueOwner'ownerID:type: stringprovince:type: stringvenueMedia:items:format: int32type: integertype: arrayverificationStatus:type: stringtype: objectentities.VenueOwner:properties:createdAt:type: stringid:type: stringuser:$ref: '#/definitions/entities.User'userID:type: stringtype: objecthost: lifedebugger-danzapp-be-test.hf.spaceinfo:contact:6 unmodified linestitle: Go Boilerplate APIversion: 1.0.0paths:/api/v1/auth/otp/request:post:consumes:- application/jsondescription: Trigger an OTP code via WhatsApp for phone number verification.parameters:- description: OTP Request Datain: bodyname: requestrequired: trueschema:$ref: '#/definitions/dto.OTPRequestInput'produces:- application/jsonresponses:"200":description: OKschema:$ref: '#/definitions/dto.OTPRequestResponse'"400":description: Bad Requestschema:$ref: '#/definitions/dto.ErrorResponse'summary: Request OTPtags:- Auth/api/v1/auth/otp/verify:post:consumes:- application/jsondescription: Validate the OTP code provided by the user and return authenticationtoken.parameters:- description: OTP Verification Datain: bodyname: requestrequired: trueschema:$ref: '#/definitions/dto.OTPVerifyInput'produces:- application/jsonresponses:"200":description: OKschema:$ref: '#/definitions/dto.OTPVerifyResponse'"400":description: Bad Requestschema:$ref: '#/definitions/dto.ErrorResponse'summary: Verify OTPtags:- Auth/api/v1/authentication/change-password:put:consumes:- application/jsondescription: Update password for the logged-in user.parameters:- description: Password Change Datain: bodyname: requestrequired: trueschema:$ref: '#/definitions/dto.ChangePasswordRequest'produces:- application/jsonresponses:"200":description: OKschema:$ref: '#/definitions/dto.AuthenticatedUser'"400":description: Bad Requestschema:$ref: '#/definitions/dto.ErrorResponse'"401":description: Unauthorizedschema:$ref: '#/definitions/dto.ErrorResponse'security:- BearerAuth: []summary: Change Passwordtags:- Auth/api/v1/authentication/login:post:consumes:- application/jsondescription: Authenticate user via email/username and password.parameters:- description: Sign In Datain: bodyname: requestrequired: trueschema:$ref: '#/definitions/dto.SignInRequest'produces:- application/jsonresponses:"200":description: OKschema:$ref: '#/definitions/dto.AuthenticatedUser'"401":description: Unauthorizedschema:$ref: '#/definitions/dto.ErrorResponse'summary: Sign Intags:- Auth/api/v1/authentication/register:post:consumes:- application/jsondescription: Register a new user with name, email, username and password.parameters:- description: Sign Up Datain: bodyname: requestrequired: trueschema:$ref: '#/definitions/dto.SignUpRequest'produces:- application/jsonresponses:"200":description: OKschema:$ref: '#/definitions/entities.User'"400":description: Bad Requestschema:$ref: '#/definitions/dto.ErrorResponse'summary: Sign Uptags:- Auth/api/v1/authentication/role/{userId}:put:consumes:- application/jsondescription: 'Update user role. Note: This is an older endpoint, consider using/api/v1/users/me/roles instead.'parameters:- description: User IDin: pathname: userIdrequired: truetype: string- description: Role Update Datain: bodyname: requestrequired: trueschema:$ref: '#/definitions/dto.UpdateUserRoleRequest'produces:- application/jsonresponses:"200":description: OKschema:$ref: '#/definitions/entities.User'"400":description: Bad Requestschema:$ref: '#/definitions/dto.ErrorResponse'summary: Update User Role (Legacy)tags:- Users/api/v1/class-categories:get:consumes:13 unmodified linessummary: Get Class Categoriestags:- Master Data/api/v1/classes:post:consumes:- application/jsondescription: Allows an instructor to create/host a new class. Automaticallycreates an instructor profile if one doesn't exist.parameters:- description: Class Creation Datain: bodyname: requestrequired: trueschema:$ref: '#/definitions/dto.CreateClassRequest'produces:- application/jsonresponses:"201":description: Createdschema:$ref: '#/definitions/entities.Class'"400":description: Bad Requestschema:$ref: '#/definitions/dto.ErrorResponse'"401":description: Unauthorizedschema:$ref: '#/definitions/dto.ErrorResponse'"403":description: Forbiddenschema:$ref: '#/definitions/dto.ErrorResponse'security:- BearerAuth: []summary: Host a Classtags:- Classes/api/v1/classes/{class_id}:get:consumes:261 unmodified linessummary: Get Schedule Listtags:- Home Dashboard/api/v1/users/{id}:get:consumes:- application/jsondescription: Get public profile and roles of another user by their ID.parameters:- description: User IDin: pathname: idrequired: truetype: stringproduces:- application/jsonresponses:"200":description: OKschema:$ref: '#/definitions/dto.UserProfileResponse'"404":description: Not Foundschema:$ref: '#/definitions/dto.ErrorResponse'security:- BearerAuth: []summary: Get User Detailstags:- Users/api/v1/users/me:get:consumes:- application/jsondescription: Get current logged-in user profile, including roles and about details.produces:- application/jsonresponses:"200":description: OKschema:$ref: '#/definitions/dto.UserProfileResponse'"401":description: Unauthorizedschema:$ref: '#/definitions/dto.ErrorResponse'security:- BearerAuth: []summary: Get My Profiletags:- Users/api/v1/users/me/about:put:consumes:- application/jsondescription: Update user's personal details like gender, dance level, and description.parameters:- description: Update Profile Datain: bodyname: requestrequired: trueschema:$ref: '#/definitions/dto.UpdateAboutYouRequest'produces:- application/jsonresponses:"200":description: OKschema:$ref: '#/definitions/dto.UserProfileResponse'"400":description: Bad Requestschema:$ref: '#/definitions/dto.ErrorResponse'"401":description: Unauthorizedschema:$ref: '#/definitions/dto.ErrorResponse'security:- BearerAuth: []summary: Update About Youtags:- Users/api/v1/users/me/roles:put:consumes:- application/jsondescription: Update user's primary role (member, instructor, venue_owner).parameters:- description: Role Assignment Datain: bodyname: requestrequired: trueschema:$ref: '#/definitions/dto.UpdateUserRolesRequest'produces:- application/jsonresponses:"200":description: OKschema:$ref: '#/definitions/dto.UserProfileResponse'"400":description: Bad Requestschema:$ref: '#/definitions/dto.ErrorResponse'"401":description: Unauthorizedschema:$ref: '#/definitions/dto.ErrorResponse'security:- BearerAuth: []summary: Assign Roletags:- Usersschemes:- http- https
controllers/authentication_controller.go+43
controllers/class_controller.go+31
controllers/otp_verification_controller.go+20
controllers/user_controller.go+45
router/class_router.go+1
swagger/docs/docs.go
swagger/docs/swagger.json+1729-627
swagger/docs/swagger.yaml+725