mirror of
https://github.com/KevinMidboe/moviedb.git
synced 2026-01-06 01:15:36 +00:00
clean endpoints
This commit is contained in:
@@ -7,72 +7,44 @@
|
|||||||
}
|
}
|
||||||
, "methods" : {
|
, "methods" : {
|
||||||
"search" : {
|
"search" : {
|
||||||
"get" : {
|
"Movie" : { "resource": "search/movie", "method": "get" }
|
||||||
"Movie" : "search/movie"
|
, "Person" : { "resource": "search/person", "method": "get" }
|
||||||
, "Person" : "search/person"
|
|
||||||
}
|
|
||||||
, "post" : {
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
, "collection" : {
|
, "collection" : {
|
||||||
"get" : {
|
"Info" : { "resource": "collection/:id", "method": "get" }
|
||||||
"Info" : "collection/:id"
|
|
||||||
}
|
|
||||||
, "post" : {
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
, "movie" : {
|
, "movie" : {
|
||||||
"get" : {
|
"Info" : { "resource": "movie/:id", "method": "get" }
|
||||||
"Info" : "movie/:id"
|
, "AlternativeTitles" : { "resource": "movie/:id/alternative_titles", "method": "get" }
|
||||||
, "AlternativeTitles" : "movie/:id/alternative_titles"
|
, "Casts" : { "recource": "movie/:id/casts", "method": "get" }
|
||||||
, "Casts" : "movie/:id/casts"
|
, "Images" : { "resource": "movie/:id/images", "method": "get" }
|
||||||
, "Images" : "movie/:id/images"
|
, "Keywords" : { "resource": "movie/:id/keywords", "method": "get" }
|
||||||
, "Keywords" : "movie/:id/keywords"
|
, "Releases" : { "resourse":"movie/:id/releases", "method": "get" }
|
||||||
, "Releases" : "movie/:id/releases"
|
, "Trailers" : { "resource": "movie/:id/trailers", "method": "get" }
|
||||||
, "Trailers" : "movie/:id/trailers"
|
, "Translations" : { "resource": "movie/:id/translations", "method": "get" }
|
||||||
, "Translations" : "movie/:id/translations"
|
, "Similar" : { "resource": "movie/:id/similar_movies", "method": "get" }
|
||||||
, "Similar" : "movie/:id/similar_movies"
|
|
||||||
}
|
|
||||||
, "post" : {
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
, "person" : {
|
, "person" : {
|
||||||
"get" : {
|
"Info" : { "resource": "person/:id", "method": "get" }
|
||||||
"Info" : "person/:id"
|
, "Credits" : { "resource": "person/:id/credits", "method": "get" }
|
||||||
, "Credits" : "person/:id/credits"
|
, "Images" : { "resource": "person/:id/images", "method": "get" }
|
||||||
, "Images" : "person/:id/images"
|
|
||||||
}
|
|
||||||
, "post" : {
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
, "misc" : {
|
, "misc" : {
|
||||||
"get" : {
|
"LatestMovie" : { "resource": "latest/movie", "method": "get" }
|
||||||
"LatestMovie" : "latest/movie"
|
, "NowPlaying" : { "resource": "movie/now-playing", "method": "get" }
|
||||||
, "NowPlaying" : "movie/now-playing"
|
, "PopularMovies" : { "resource": "movie/popular", "method": "get" }
|
||||||
, "PopularMovies" : "movie/popular"
|
, "TopRatedMovies" : { "resource": "movie/top-rated", "method": "get" }
|
||||||
, "TopRatedMovies" : "movie/top-rated"
|
, "AddMovieRating" : { "resource": "movie/:id/rating", "method": "post" }
|
||||||
}
|
|
||||||
, "post" : {
|
|
||||||
"AddMovieRating" : "movie/:id/rating"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
, "company" : {
|
, "company" : {
|
||||||
"get" : {
|
"Info" : { "resource": "company/:id", "method": "get" }
|
||||||
"Info" : "company/:id"
|
, "Movies" : { "resource": "company/:id/movies", "method": "get" }
|
||||||
, "Movies" : "company/:id/movies"
|
|
||||||
}
|
|
||||||
, "post" : {
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
, "account" : {
|
, "account" : {
|
||||||
"get" : {
|
"Info" : { "resource": "account", "method": "get" }
|
||||||
"Info" : "account"
|
, "FavoriteMovies" : { "resource": "account/:id/favorite_movies", "method": "get" }
|
||||||
, "FavoriteMovies" : "account/:id/favorite_movies"
|
, "RatedMovies" : { "resource": "account/:id/rated_movies", "method": "get" }
|
||||||
, "RatedMovies" : "account/:id/rated_movies"
|
, "AddFavorite" : { "resource": "account/:id/favorite", "method": "post" }
|
||||||
}
|
|
||||||
, "post" : {
|
|
||||||
"AddFavorite" : "account/:id/favorite"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user