@@ -300,7 +300,7 @@ async def search_movies(
300300 - plot: Movie plot text
301301 - score: Vector search similarity score (0.0 to 1.0, higher = more similar)
302302"""
303- # Specify your Voyage API key and embedding model
303+ # Specify your Voyage AI embedding model
304304model = "voyage-3-large"
305305outputDimension = 2048 #Set to 2048 to match the dimensions of the collection's embeddings
306306
@@ -403,10 +403,6 @@ async def vector_search_movies(
403403 details = str (e )
404404 )
405405
406- #------------------------------------
407- # Place get_movie_by_id endpoint here
408- #------------------------------------
409-
410406"""
411407 GET /api/movies/{id}
412408 Retrieve a single movie by its ID.
@@ -539,10 +535,6 @@ async def get_all_movies(
539535 # Return the results wrapped in a SuccessResponse
540536 return create_success_response (movies , f"Found { len (movies )} movies." )
541537
542- #------------------------------------
543- # Place create_movie endpoint here
544- #------------------------------------
545-
546538"""
547539 POST /api/movies/
548540 Create a new movie.
@@ -600,10 +592,6 @@ async def create_movie(movie: CreateMovieRequest):
600592
601593 return create_success_response (created_movie , f"Movie '{ movie_data ['title' ]} ' created successfully" )
602594
603- #------------------------------------
604- # Place create_movies_batch endpoint here
605- #------------------------------------
606-
607595"""
608596POST /api/movies/batch
609597
@@ -670,10 +658,6 @@ async def create_movies_batch(movies: List[CreateMovieRequest]) ->SuccessRespons
670658 details = str (e )
671659 )
672660
673- #------------------------------------
674- # Place update_movie endpoint here
675- #------------------------------------
676-
677661"""
678662 PATCH /api/movies/{id}
679663
@@ -744,10 +728,6 @@ async def update_movie(
744728
745729 return create_success_response (updatedMovie , f"Movie updated successfully. Modified { len (update_dict )} fields." )
746730
747- #------------------------------------
748- # Place update_movies_by_batch endpoint here
749- #------------------------------------
750-
751731"""
752732 PATCH /api/movies
753733
@@ -810,10 +790,6 @@ async def update_movies_batch(
810790 f"Update operation completed. Matched { result .matched_count } movie(s), modified { result .modified_count } movie(s)."
811791)
812792
813- #------------------------------------
814- # Place delete_movie endpoint here
815- #------------------------------------
816-
817793"""
818794 DELETE /api/movies/{id}
819795 Delete a single movie by its ID.
@@ -860,9 +836,6 @@ async def delete_movie_by_id(id: str):
860836 "Movie deleted successfully"
861837 )
862838
863- #------------------------------------
864- # Place delete_movies_by_batch endpoint here
865- #------------------------------------
866839"""
867840 DELETE /api/movies/
868841
@@ -922,10 +895,6 @@ async def delete_movies_batch(request_body: dict = Body(...)) -> SuccessResponse
922895 f'Delete operation completed. Removed { result .deleted_count } movies.'
923896 )
924897
925- #------------------------------------
926- # Place find_and_delete_movie endpoint here
927- #------------------------------------
928-
929898"""
930899 DELETE /api/movies/{id}/find-and-delete
931900 Finds and deletes a movie in a single atomic operation.
0 commit comments