Skip to content

Commit

Permalink
Merge pull request #20 from Finboost/dev-arman
Browse files Browse the repository at this point in the history
Update Docs and Reponse Id
  • Loading branch information
armandwipangestu authored Jun 12, 2024
2 parents c9104c1 + cc79b68 commit 9ddb40d
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 39 deletions.
48 changes: 24 additions & 24 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@
"status": "success",
"message": "User data updated successfully",
"data": {
"id": "d969ee14-3362-46cd-ace9-af4d7b131733"
"userId": "d969ee14-3362-46cd-ace9-af4d7b131733"
}
}
},
Expand All @@ -857,7 +857,7 @@
"status": "success",
"message": "User data updated successfully",
"data": {
"id": "f5e05c30-99ff-4693-a0aa-bc1e869dd3e5"
"userId": "f5e05c30-99ff-4693-a0aa-bc1e869dd3e5"
}
}
}
Expand Down Expand Up @@ -980,7 +980,7 @@
"status": "success",
"message": "User data partially updated successfully",
"data": {
"id": "d969ee14-3362-46cd-ace9-af4d7b131733"
"userId": "d969ee14-3362-46cd-ace9-af4d7b131733"
}
}
},
Expand All @@ -990,7 +990,7 @@
"status": "success",
"message": "User data partially updated successfully",
"data": {
"id": "f5e05c30-99ff-4693-a0aa-bc1e869dd3e5"
"userId": "f5e05c30-99ff-4693-a0aa-bc1e869dd3e5"
}
}
}
Expand Down Expand Up @@ -1079,7 +1079,7 @@
"status": "success",
"message": "Successfully delete user data",
"data": {
"id": "d969ee14-3362-46cd-ace9-af4d7b131733"
"userId": "d969ee14-3362-46cd-ace9-af4d7b131733"
}
}
},
Expand All @@ -1089,7 +1089,7 @@
"status": "success",
"message": "Successfully delete user data",
"data": {
"id": "f5e05c30-99ff-4693-a0aa-bc1e869dd3e5"
"userId": "f5e05c30-99ff-4693-a0aa-bc1e869dd3e5"
}
}
}
Expand Down Expand Up @@ -1259,7 +1259,7 @@
"status": "success",
"message": "User profile data updated successfully",
"data": {
"id": "d969ee14-3362-46cd-ace9-af4d7b131733"
"userId": "d969ee14-3362-46cd-ace9-af4d7b131733"
}
}
},
Expand All @@ -1269,7 +1269,7 @@
"status": "success",
"message": "User profile data updated successfully",
"data": {
"id": "f5e05c30-99ff-4693-a0aa-bc1e869dd3e5"
"userId": "f5e05c30-99ff-4693-a0aa-bc1e869dd3e5"
}
}
}
Expand Down Expand Up @@ -1320,7 +1320,7 @@
"status": "success",
"message": "Successfully delete user profile data",
"data": {
"id": "d969ee14-3362-46cd-ace9-af4d7b131733"
"userId": "d969ee14-3362-46cd-ace9-af4d7b131733"
}
}
},
Expand All @@ -1330,7 +1330,7 @@
"status": "success",
"message": "Successfully delete user profile data",
"data": {
"id": "f5e05c30-99ff-4693-a0aa-bc1e869dd3e5"
"userId": "f5e05c30-99ff-4693-a0aa-bc1e869dd3e5"
}
}
}
Expand Down Expand Up @@ -1401,7 +1401,7 @@
"status": "success",
"message": "Avatar user updated successfully",
"data": {
"id": "d969ee14-3362-46cd-ace9-af4d7b131733"
"userId": "d969ee14-3362-46cd-ace9-af4d7b131733"
}
}
},
Expand All @@ -1411,7 +1411,7 @@
"status": "success",
"message": "Avatar user updated successfully",
"data": {
"id": "f5e05c30-99ff-4693-a0aa-bc1e869dd3e5"
"userId": "f5e05c30-99ff-4693-a0aa-bc1e869dd3e5"
}
}
}
Expand Down Expand Up @@ -1568,7 +1568,7 @@
"status": "success",
"message": "Role created successfully",
"data": {
"id": "fdc3462c-96fb-4797-8341-cd2b1cce88bb"
"roleId": "fdc3462c-96fb-4797-8341-cd2b1cce88bb"
}
}
}
Expand Down Expand Up @@ -1694,7 +1694,7 @@
"status": "success",
"message": "Role updated successfully",
"data": {
"id": "fdc3462c-96fb-4797-8341-cd2b1cce88bb"
"roleId": "fdc3462c-96fb-4797-8341-cd2b1cce88bb"
}
}
}
Expand Down Expand Up @@ -1759,7 +1759,7 @@
"status": "success",
"message": "Role deleted successfully",
"data": {
"id": "fdc3462c-96fb-4797-8341-cd2b1cce88bb"
"roleId": "fdc3462c-96fb-4797-8341-cd2b1cce88bb"
}
}
}
Expand Down Expand Up @@ -1919,7 +1919,7 @@
"status": "success",
"message": "Work created successfully",
"data": {
"id": "6ce7e34b-93f9-406c-aa1d-09fac038b138"
"workId": "6ce7e34b-93f9-406c-aa1d-09fac038b138"
}
}
}
Expand Down Expand Up @@ -2045,7 +2045,7 @@
"status": "success",
"message": "Work updated successfully",
"data": {
"id": "6ce7e34b-93f9-406c-aa1d-09fac038b138"
"workId": "6ce7e34b-93f9-406c-aa1d-09fac038b138"
}
}
}
Expand Down Expand Up @@ -2110,7 +2110,7 @@
"status": "success",
"message": "Work deleted successfully",
"data": {
"id": "6ce7e34b-93f9-406c-aa1d-09fac038b138"
"workId": "6ce7e34b-93f9-406c-aa1d-09fac038b138"
}
}
}
Expand Down Expand Up @@ -2254,7 +2254,7 @@
"status": "success",
"message": "Education created successfully",
"data": {
"id": "8a69ef80-8d1d-4832-9c6a-fba9d9f16230"
"educationId": "8a69ef80-8d1d-4832-9c6a-fba9d9f16230"
}
}
}
Expand Down Expand Up @@ -2380,7 +2380,7 @@
"status": "success",
"message": "Education updated successfully",
"data": {
"id": "8a69ef80-8d1d-4832-9c6a-fba9d9f16230"
"educationId": "8a69ef80-8d1d-4832-9c6a-fba9d9f16230"
}
}
}
Expand Down Expand Up @@ -2445,7 +2445,7 @@
"status": "success",
"message": "Education deleted successfully",
"data": {
"id": "8a69ef80-8d1d-4832-9c6a-fba9d9f16230"
"educationId": "8a69ef80-8d1d-4832-9c6a-fba9d9f16230"
}
}
}
Expand Down Expand Up @@ -2803,7 +2803,7 @@
]
}
},
"/chats/ai/predict":{
"/chats/ai/predict": {
"post": {
"tags": ["Chat Room"],
"summary": "Predict chat message",
Expand Down Expand Up @@ -2886,7 +2886,7 @@
]
}
},
"/chats/ai/suggestions" : {
"/chats/ai/suggestions": {
"post": {
"tags": ["Chat Room"],
"summary": "Get all chat suggestions",
Expand Down Expand Up @@ -2933,7 +2933,7 @@
"Apa itu reksadana terproteksi dan bagaimana cara kerjanya?",
"Bagaimana cara menghindari penipuan dalam investasi reksadana?"
],
"probability" : 0.9,
"probability": 0.9,
"top_category": "Reksadana"
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/controller/auths.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const signUpUserHandler = async (req, res) => {
status: "success",
message: "User signup successfully",
data: {
id: newUserData.id,
userId: newUserData.id,
},
});
} catch (error) {
Expand Down
6 changes: 3 additions & 3 deletions src/controller/educations.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const insertEducationHandler = async (req, res) => {
status: "success",
message: "Education created successfully",
data: {
id: newEducationData.id,
educationId: newEducationData.id,
},
});
} catch (error) {
Expand Down Expand Up @@ -95,7 +95,7 @@ export const editEducationByIdHandler = async (req, res) => {
status: "success",
message: "Education updated successfully",
data: {
id: newEducationData.id,
educationId: newEducationData.id,
},
});
} catch (error) {
Expand All @@ -119,7 +119,7 @@ export const removeEducationByIdHandler = async (req, res) => {
status: "success",
message: "Education deleted successfully",
data: {
id: educationId,
educationId: educationId,
},
});
} catch (error) {
Expand Down
4 changes: 2 additions & 2 deletions src/controller/roles.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const editRoleByIdHandler = async (req, res) => {
status: "success",
message: "Role updated successfully",
data: {
id: newRoleData.id,
roleId: newRoleData.id,
},
});
} catch (error) {
Expand All @@ -118,7 +118,7 @@ export const removeRoleByIdHandler = async (req, res) => {
status: "success",
message: "Role deleted successfully",
data: {
id: roleId,
roleId: roleId,
},
});
} catch (error) {
Expand Down
12 changes: 6 additions & 6 deletions src/controller/users.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const editUserAllFieldByIdHandler = async (req, res) => {
status: "success",
message: "User data updated successfully",
data: {
id: user.id,
userId: user.id,
},
});
} catch (error) {
Expand Down Expand Up @@ -123,7 +123,7 @@ export const editUserPartialFieldByIdHandler = async (req, res) => {
status: "success",
message: "User data partially updated successfully",
data: {
id: user.id,
userId: user.id,
},
});
} catch (error) {
Expand Down Expand Up @@ -155,7 +155,7 @@ export const editUserProfilePartialFieldByUserIdHandler = async (req, res) => {
status: "success",
message: "User profile data updated successfully",
data: {
id: user.id,
userId: user.id,
},
});
} catch (error) {
Expand Down Expand Up @@ -202,7 +202,7 @@ export const removeUserProfileByUserIdHandler = async (req, res) => {
status: "success",
message: "Successfully delete user profile data",
data: {
id: userId,
userId: userId,
},
});
} catch (error) {
Expand Down Expand Up @@ -240,7 +240,7 @@ export const removeUserByIdHandler = async (req, res) => {
status: "success",
message: "Successfully delete user data",
data: {
id: userId,
userId: userId,
},
});
} catch (error) {
Expand Down Expand Up @@ -306,7 +306,7 @@ export const editAvatarUserHandler = async (req, res) => {
status: "success",
message: "Avatar user updated successfully",
data: {
id: newAvatarUserData.userId,
userId: newAvatarUserData.userId,
},
});
} catch (error) {
Expand Down
6 changes: 3 additions & 3 deletions src/controller/works.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const insertWorkHandler = async (req, res) => {
status: "success",
message: "Work created successfully",
data: {
id: newWorkData.id,
workId: newWorkData.id,
},
});
} catch (error) {
Expand Down Expand Up @@ -92,7 +92,7 @@ export const editWorkByIdHandler = async (req, res) => {
status: "success",
message: "Work updated successfully",
data: {
id: newWorkData.id,
workId: newWorkData.id,
},
});
} catch (error) {
Expand All @@ -119,7 +119,7 @@ export const removeWorkByIdHandler = async (req, res) => {
status: "success",
message: "Work deleted successfully",
data: {
id: workId,
workId: workId,
},
});
} catch (error) {
Expand Down

0 comments on commit 9ddb40d

Please sign in to comment.