openapi: 3.0.2 info: title: API Schema version: '' paths: /api/user/register/: post: operationId: userRegister description: '' parameters: [] requestBody: content: application/json: schema: $ref: '#/components/schemas/User' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/User' multipart/form-data: schema: $ref: '#/components/schemas/User' responses: '201': content: application/json: schema: $ref: '#/components/schemas/User' description: '' tags: - auth /api/user/: get: operationId: listUsers description: '' parameters: [] responses: '200': content: application/json: schema: type: array items: {} description: '' tags: - api /api/user/partner/: get: operationId: listPartners description: '' parameters: [] responses: '200': content: application/json: schema: type: array items: {} description: '' tags: - api /api/user/{id}/: get: operationId: retrieveUserDetailUpdateDelete description: '' parameters: - name: id in: path required: true description: '' schema: type: string responses: '200': content: application/json: schema: {} description: '' tags: - api put: operationId: updateUserDetailUpdateDelete description: '' parameters: - name: id in: path required: true description: '' schema: type: string requestBody: content: application/json: schema: {} responses: '200': content: application/json: schema: {} description: '' tags: - api delete: operationId: destroyUserDetailUpdateDelete description: '' parameters: - name: id in: path required: true description: '' schema: type: string responses: '204': description: '' tags: - api /api/user/partner/{id}/: get: operationId: retrievePartnerDetailUpdateDelete description: '' parameters: - name: id in: path required: true description: '' schema: type: string responses: '200': content: application/json: schema: {} description: '' tags: - api put: operationId: updatePartnerDetailUpdateDelete description: '' parameters: - name: id in: path required: true description: '' schema: type: string requestBody: content: application/json: schema: {} responses: '200': content: application/json: schema: {} description: '' tags: - api delete: operationId: destroyPartnerDetailUpdateDelete description: '' parameters: - name: id in: path required: true description: '' schema: type: string responses: '204': description: '' tags: - api /api/discount/: get: operationId: listDiscounts description: '' parameters: [] responses: '200': content: application/json: schema: type: array items: {} description: '' tags: - api /api/discount/favorite/{user_id}/: get: operationId: retrieveGetUserFavorite description: '' parameters: - name: user_id in: path required: true description: '' schema: type: string responses: '200': content: application/json: schema: {} description: '' tags: - api patch: operationId: partialUpdateGetUserFavorite description: '' parameters: - name: user_id in: path required: true description: '' schema: type: string requestBody: content: application/json: schema: {} application/x-www-form-urlencoded: schema: {} multipart/form-data: schema: {} responses: '200': content: application/json: schema: {} description: '' tags: - api /api/discount/favorite/: get: operationId: listFavorites description: '' parameters: [] responses: '200': content: application/json: schema: type: array items: {} description: '' tags: - api /api/discount/favorite/detail/{user_id}/: get: operationId: retrieveFavoriteDetail description: '' parameters: - name: user_id in: path required: true description: '' schema: type: string responses: '200': content: application/json: schema: {} description: '' tags: - api put: operationId: updateFavoriteDetail description: '' parameters: - name: user_id in: path required: true description: '' schema: type: string requestBody: content: application/json: schema: {} responses: '200': content: application/json: schema: {} description: '' tags: - api delete: operationId: destroyFavoriteDetail description: '' parameters: - name: user_id in: path required: true description: '' schema: type: string responses: '204': description: '' tags: - api /api/discount/addtofavorite/{user_id}/: get: operationId: retrieveFavoriteDetail description: '' parameters: - name: user_id in: path required: true description: '' schema: type: string responses: '200': content: application/json: schema: {} description: '' tags: - api put: operationId: updateFavoriteDetail description: '' parameters: - name: user_id in: path required: true description: '' schema: type: string requestBody: content: application/json: schema: {} responses: '200': content: application/json: schema: {} description: '' tags: - api delete: operationId: destroyFavoriteDetail description: '' parameters: - name: user_id in: path required: true description: '' schema: type: string responses: '204': description: '' tags: - api /api/activity_type/: get: operationId: listActivityTypes description: '' parameters: [] responses: '200': content: application/json: schema: type: array items: {} description: '' tags: - api /api/activity_type/{id}/: get: operationId: retrieveActivityTypeDetail description: '' parameters: - name: id in: path required: true description: '' schema: type: string responses: '200': content: application/json: schema: {} description: '' tags: - api put: operationId: updateActivityTypeDetail description: '' parameters: - name: id in: path required: true description: '' schema: type: string requestBody: content: application/json: schema: {} responses: '200': content: application/json: schema: {} description: '' tags: - api delete: operationId: destroyActivityTypeDetail description: '' parameters: - name: id in: path required: true description: '' schema: type: string responses: '204': description: '' tags: - api /api/activity_type/cat_list/: get: operationId: listCategorys description: '' parameters: [] responses: '200': content: application/json: schema: type: array items: {} description: '' tags: - api /api/activity_type/cat_detail/{id}: get: operationId: retrieveCategoryDetail description: '' parameters: - name: id in: path required: true description: '' schema: type: string responses: '200': content: application/json: schema: {} description: '' tags: - api put: operationId: updateCategoryDetail description: '' parameters: - name: id in: path required: true description: '' schema: type: string requestBody: content: application/json: schema: {} responses: '200': content: application/json: schema: {} description: '' tags: - api delete: operationId: destroyCategoryDetail description: '' parameters: - name: id in: path required: true description: '' schema: type: string responses: '204': description: '' tags: - api /api/cart/user_cart/{user_id}: get: operationId: retrieveGetUserCart description: '' parameters: - name: user_id in: path required: true description: '' schema: type: string responses: '200': content: application/json: schema: {} description: '' tags: - api patch: operationId: partialUpdateGetUserCart description: '' parameters: - name: user_id in: path required: true description: '' schema: type: string requestBody: content: application/json: schema: {} application/x-www-form-urlencoded: schema: {} multipart/form-data: schema: {} responses: '200': content: application/json: schema: {} description: '' tags: - api /api/cart/: get: operationId: listCarts description: '' parameters: [] responses: '200': content: application/json: schema: type: array items: {} description: '' tags: - api /api/cart/{id}/: get: operationId: retrieveCartDetail description: '' parameters: - name: id in: path required: true description: '' schema: type: string responses: '200': content: application/json: schema: {} description: '' tags: - api put: operationId: updateCartDetail description: '' parameters: - name: id in: path required: true description: '' schema: type: string requestBody: content: application/json: schema: {} responses: '200': content: application/json: schema: {} description: '' tags: - api delete: operationId: destroyCartDetail description: '' parameters: - name: id in: path required: true description: '' schema: type: string responses: '204': description: '' tags: - api /api/review/comment/{partner_id}: get: operationId: retrieveCommentList description: '' parameters: - name: partner_id in: path required: true description: '' schema: type: string responses: '200': content: application/json: schema: {} description: '' tags: - api /api/review/rating/{partner_id}: get: operationId: retrieveRatingList description: '' parameters: - name: partner_id in: path required: true description: '' schema: type: string responses: '200': content: application/json: schema: {} description: '' tags: - api /api/user/token/refresh/: post: operationId: createTokenRefresh description: 'Takes a refresh type JSON web token and returns an access type JSON web token if the refresh token is valid.' parameters: [] requestBody: content: application/json: schema: $ref: '#/components/schemas/TokenRefresh' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/TokenRefresh' multipart/form-data: schema: $ref: '#/components/schemas/TokenRefresh' responses: '201': content: application/json: schema: $ref: '#/components/schemas/TokenRefresh' description: '' tags: - api /api/user/check-email: post: operationId: createCheckEmail description: '' parameters: [] requestBody: content: application/json: schema: {} application/x-www-form-urlencoded: schema: {} multipart/form-data: schema: {} responses: '201': content: application/json: schema: {} description: '' tags: - api /api/discount/create/: post: operationId: createDiscount description: '' parameters: [] requestBody: content: application/json: schema: $ref: '#/components/schemas/Discount' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/Discount' multipart/form-data: schema: $ref: '#/components/schemas/Discount' responses: '201': content: application/json: schema: $ref: '#/components/schemas/Discount' description: '' tags: - api /api/discount/favorite/create/: post: operationId: createFavorite description: '' parameters: [] requestBody: content: application/json: schema: {} application/x-www-form-urlencoded: schema: {} multipart/form-data: schema: {} responses: '201': content: application/json: schema: {} description: '' tags: - api /api/activity_type/create/: post: operationId: createActivityType description: '' parameters: [] requestBody: content: application/json: schema: {} application/x-www-form-urlencoded: schema: {} multipart/form-data: schema: {} responses: '201': content: application/json: schema: {} description: '' tags: - api /api/activity_type/cat_create/: post: operationId: createCategory description: '' parameters: [] requestBody: content: application/json: schema: {} application/x-www-form-urlencoded: schema: {} multipart/form-data: schema: {} responses: '201': content: application/json: schema: {} description: '' tags: - api /api/cart/create/: post: operationId: createCart description: '' parameters: [] requestBody: content: application/json: schema: {} application/x-www-form-urlencoded: schema: {} multipart/form-data: schema: {} responses: '201': content: application/json: schema: {} description: '' tags: - api /api/review/rating/create/: post: operationId: createRating description: '' parameters: [] requestBody: content: application/json: schema: {} responses: '201': content: application/json: schema: {} description: '' tags: - api /api/user/follow/{id}/: patch: operationId: partialUpdateUserAddFollowing description: '' parameters: - name: id in: path required: true description: '' schema: type: string requestBody: content: application/json: schema: {} application/x-www-form-urlencoded: schema: {} multipart/form-data: schema: {} responses: '200': content: application/json: schema: {} description: '' tags: - api components: schemas: TokenRefresh: type: object properties: refresh: type: string access: type: string readOnly: true required: - refresh Discount: type: object properties: id: type: integer readOnly: true name: type: string maxLength: 255 contacts: type: string maxLength: 500 social_link: type: string operating_mode: type: string maxLength: 255 image: type: string format: binary nullable: true category_id: type: integer nullable: true partner_id: type: string discount_type_id: type: integer nullable: true required: - name - contacts - social_link - operating_mode - partner_id User: type: object properties: id: type: integer readOnly: true email: type: string maxLength: 255 name: type: string maxLength: 255 second_name: type: string maxLength: 255 date_of_birth: type: string maxLength: 255 phone_number: type: string maxLength: 255 image: type: string format: binary nullable: true password: type: string maxLength: 255 password2: type: string maxLength: 255 required: - name - email - second_name - date_of_birth - phone_number - image - password - password2