Skip to content

Commit

Permalink
implement following logic (#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mubangizi authored Jun 12, 2024
1 parent 8c2b4ab commit c055069
Show file tree
Hide file tree
Showing 8 changed files with 362 additions and 29 deletions.
129 changes: 126 additions & 3 deletions api_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,130 @@ paths:
500:
description: "Internal Server Error"

"/users/{user_id}/following":
get:
tags:
- users
consumes:
- application/json
produces:
- application/json
parameters:
- in: header
name: Authorization
required: true
description: "Bearer [token]"
- in: path
name: user_id
required: true
type: string
- in: query
name: page
type: integer
description: Page number
- in: query
name: per_page
type: integer
description: Number of items per page
responses:
200:
description: "Success"
404:
description: "User not found"
400:
description: "Bad request"
500:
description: "Internal Server Error"

post:
tags:
- users
consumes:
- application/json
produces:
- application/json
parameters:
- in: header
name: Authorization
required: true
description: "Bearer [token]"
type: string
- in: path
name: user_id
required: true
type: string
responses:
201:
description: "Success"
404:
description: "User not found"
400:
description: "Bad request"
500:
description: "Internal Server Error"

delete:
tags:
- users
consumes:
- application/json
produces:
- application/json
parameters:
- in: header
name: Authorization
required: true
description: "Bearer [token]"
type: string
- in: path
name: user_id
required: true
type: string
responses:
200:
description: "Success"
404:
description: "User not found"
400:
description: "Bad request"
500:
description: "Internal Server Error"

"/users/{user_id}/followers":
get:
tags:
- users
consumes:
- application/json
produces:
- application/json
parameters:
- in: header
name: Authorization
required: true
description: "Bearer [token]"
- in: path
name: user_id
required: true
type: string
- in: query
name: page
type: integer
description: Page number
- in: query
name: per_page
type: integer
description: Number of items per page
responses:
200:
description: "Success"
404:
description: "User not found"
400:
description: "Bad request"
500:
description: "Internal Server Error"

"/clusters":
post:
tags:
Expand Down Expand Up @@ -3705,7 +3829,7 @@ paths:
description: "Bad request"
500:
description: "Internal Server Error"

"/apps/{app_id}/revisions":
get:
tags:
Expand Down Expand Up @@ -3886,7 +4010,6 @@ paths:
500:
description: "Internal Server Error"


"/projects/{project_id}/apps/{app_id}/logs":
post:
tags:
Expand Down Expand Up @@ -3956,4 +4079,4 @@ components:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
bearerFormat: JWT
2 changes: 1 addition & 1 deletion app/controllers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from .index import IndexView
from .users import (
UsersView, UserLoginView, UserEmailVerificationView,
UsersView, UserLoginView, UserEmailVerificationView, UserFollowersView, UserFollowView,
EmailVerificationRequest, ForgotPasswordView, ResetPasswordView, UserDisableView, UserEnableView,
UserDetailView, AdminLoginView, OAuthView, UserDataSummaryView, UserAdminUpdateView, UserActivitesView, InActiveUsersView)
from .deployments import DeploymentsView
Expand Down
Loading

0 comments on commit c055069

Please sign in to comment.