The main idea of the application is create a endpoint to search a movie using a OMDb API.
- Go
- Chi
Get an API key from the OMDb website, then create a .env file.
OMDB_KEY=[your api key]
- GET
/, Search for movies that match the filter.
Query Parameters
- s: film name.
Example
/?s=gone girl/?s=batman
{ "Search":
[
{
"Title":"Gone Girl",
"Year":"2014","imdbID":"tt2267998",
"Type":"movie",
"Poster":"https://m.media-amazon.com/images/M/MV5BMTk0MDQ3MzAzOV5BMl5BanBnXkFtZTgwNzU1NzE3MjE@._V1_SX300.jpg"
}
]
}Create an endpoint that integrates with an external API in Go.