A SwiftUI mobile application designed by usign the Rick and Morty API to showcase characters, episodes, and locations from the popular TV series. All requests being made over HTTPS and returning JSON data. Built using the MVVM architecture for clean and maintainable code.
- Character List: View a list of characters with details like name, species, and origin.
- Search Functionality: Search for characters by name, gender, status...
- Episode Guide: Explore episodes with episode-specific details.
- Locations: Browse and view information about locations featured in the series.
- SwiftUI: For building the user interface.
- MVVM Architecture: For separating business logic and UI components.
- Rick and Morty API: The backend API for retrieving characters, episodes, and locations.
- URLSession: For making network requests.
This app uses the Rick and Morty API for retrieving data. Below are some of the endpoints used:
- Characters:
https://rickandmortyapi.com/api/character - Episodes:
https://rickandmortyapi.com/api/episode - Locations:
https://rickandmortyapi.com/api/location
Refer to the API documentation for more details on the available endpoints and parameters.
The app is designed using the MVVM architecture for better separation of concerns:
- Model: Handles data structures and API responses.
- View: Displays the UI and reflects the ViewModel's state.
- ViewModel: Acts as the middleman between the Model and View, handling business logic and data transformation.