From e1ea2cdf679d474f82fad5d7f473598477b9cd47 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Fri, 9 Feb 2024 22:02:43 -0500 Subject: [PATCH] format api annotations --- .../web/storyteller_web/src/api_doc.rs | 122 +++++++++++++----- 1 file changed, 88 insertions(+), 34 deletions(-) diff --git a/crates/service/web/storyteller_web/src/api_doc.rs b/crates/service/web/storyteller_web/src/api_doc.rs index c0fddc6a71..92aef028ce 100644 --- a/crates/service/web/storyteller_web/src/api_doc.rs +++ b/crates/service/web/storyteller_web/src/api_doc.rs @@ -111,55 +111,109 @@ use crate::http_server::web_utils::response_success_helpers::*; UserDetailsLight, Visibility, - // Inference + // Endpoint API types + BatchGetUserBookmarksError, + BatchGetUserBookmarksQueryParams, + BatchGetUserBookmarksResponse, + BatchGetUserRatingError, + BatchGetUserRatingQueryParams, + BatchGetUserRatingResponse, + BookmarkRow, + CreateUserBookmarkError, + CreateUserBookmarkRequest, + CreateUserBookmarkSuccessResponse, + DeleteMediaFileError, + DeleteMediaFilePathInfo, + DeleteMediaFileRequest, + DeleteUserBookmarkError, + DeleteUserBookmarkPathInfo, + DeleteUserBookmarkRequest, + DeleteWeightError, + DeleteWeightError, + DeleteWeightPathInfo, + DeleteWeightRequest, + DeleteWeightRequest, EnqueueFbxToGltfRequest, EnqueueFbxToGltfRequestError, EnqueueFbxToGltfRequestSuccessResponse, EnqueueTTSRequest, EnqueueTTSRequestError, EnqueueTTSRequestSuccessResponse, - // Media Files - DeleteMediaFileError, - DeleteMediaFilePathInfo, - DeleteMediaFileRequest, GetMediaFileError, GetMediaFileModelInfo, GetMediaFilePathInfo, GetMediaFileSuccessResponse, - MediaFileInfo, - // Model Weights - GetWeightPathInfo,GetWeightResponse,GetWeightError, - UpdateWeightRequest,UpdateWeightRequest,UpdateWeightPathInfo,UpdateWeightRequest,UpdateWeightError, - SetModelWeightCoverImageRequest,SetModelWeightCoverImageResponse,SetModelWeightCoverImagePathInfo,SetModelWeightCoverImageError, - DeleteWeightPathInfo,DeleteWeightRequest,DeleteWeightError,DeleteWeightRequest,DeleteWeightError, - UploadMediaSuccessResponse,MediaFileUploadError, GetProfilePathInfo, - ProfileError, - UserProfileModeratorFields, - UserProfileRecordForResponse, - UserProfileUserBadge, - ListWeightError,ModelWeightForList,ListWeightError, - ListAvailableWeightsQuery,ListAvailableWeightsSuccessResponse,ModelWeightForList, - ListWeightsByUserError,ListWeightsByUserSuccessResponse,ListWeightsByUserPathInfo,Weight, - WeightsData,MediaFileData, + GetUserRatingError, + GetUserRatingResponse, + GetWeightError, + GetWeightPathInfo, + GetWeightResponse, + ListAvailableWeightsQuery, + ListAvailableWeightsSuccessResponse, ListDatasetsByUserError, ListDatasetsByUserPathInfo, ListDatasetsByUserSuccessResponse, + ListFeaturedMediaFilesError, + ListFeaturedMediaFilesSuccessResponse, + ListMediaFilesError, + ListMediaFilesForUserError, + ListMediaFilesForUserPathInfo, + ListMediaFilesForUserQueryParams, + ListMediaFilesForUserSuccessResponse, + ListMediaFilesQueryParams, + ListMediaFilesSuccessResponse, + ListUserBookmarksForEntityError, + ListUserBookmarksForEntityPathInfo, + ListUserBookmarksForEntitySuccessResponse, + ListUserBookmarksForUserError, + ListUserBookmarksForUserSuccessResponse, + ListUserBookmarksPathInfo, + ListWeightError, + ListWeightError, + ListWeightsByUserError, + ListWeightsByUserPathInfo, + ListWeightsByUserSuccessResponse, + MediaFile, + MediaFileData, + MediaFileForUserListItem, + MediaFileForUserListItem, + MediaFileInfo, + MediaFileListItem, + MediaFileUploadError, + ModelWeightForList, + ModelWeightForList, + ModelWeightSearchResult, + ProfileError, + RatingRow, + SearchModelWeightsError, + SearchModelWeightsRequest, + SearchModelWeightsSuccessResponse, + SetModelWeightCoverImageError, + SetModelWeightCoverImagePathInfo, + SetModelWeightCoverImageRequest, + SetModelWeightCoverImageResponse, + SetUserRatingError, + SetUserRatingRequest, + SetUserRatingResponse, + UpdateWeightError, + UpdateWeightPathInfo, + UpdateWeightRequest, + UpdateWeightRequest, + UpdateWeightRequest, + UploadMediaSuccessResponse, + UserBookmarkDetailsForUserList, + UserBookmarkEntityType, + UserBookmarkForEntityListItem, + UserBookmarkListItem, + UserProfileModeratorFields, + UserProfileRecordForResponse, + UserProfileUserBadge, + UserRatingEntityType, + UserRatingValue, + Weight, + WeightsData, ZsDatasetRecord, - SearchModelWeightsRequest,SearchModelWeightsSuccessResponse,ModelWeightSearchResult,SearchModelWeightsError, - BatchGetUserRatingQueryParams,BatchGetUserRatingResponse,BatchGetUserRatingError,RatingRow, - BatchGetUserBookmarksQueryParams,BatchGetUserBookmarksResponse,BatchGetUserBookmarksError,BookmarkRow, - ListFeaturedMediaFilesSuccessResponse,MediaFile, ListFeaturedMediaFilesError, - ListMediaFilesSuccessResponse, ListMediaFilesError, MediaFileListItem, ListMediaFilesQueryParams, - ListMediaFilesForUserSuccessResponse,ListMediaFilesForUserQueryParams,ListMediaFilesForUserError,ListMediaFilesForUserPathInfo, - MediaFileForUserListItem, MediaFileForUserListItem, - UserBookmarkDetailsForUserList,UserBookmarkEntityType, - CreateUserBookmarkRequest,CreateUserBookmarkError,CreateUserBookmarkSuccessResponse, - DeleteUserBookmarkPathInfo,DeleteUserBookmarkError,DeleteUserBookmarkRequest, - ListUserBookmarksPathInfo,ListUserBookmarksForUserError,ListUserBookmarksForUserSuccessResponse,UserBookmarkListItem, - ListUserBookmarksForEntityPathInfo,ListUserBookmarksForEntityError,ListUserBookmarksForEntitySuccessResponse,UserBookmarkForEntityListItem, - GetUserRatingError,GetUserRatingResponse,UserRatingValue,UserRatingEntityType, - SetUserRatingError,SetUserRatingRequest,SetUserRatingResponse, )) )] pub struct ApiDoc;