Loading repository data…
Loading repository data…
dalemoncayo / repository
This repository showcases a straightforward Android Kotlin project demonstrating the implementation of Retrofit for seamless API calls, providing a concise and practical example for developers to integrate this powerful networking library into their Android applications.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
This Android Kotlin project demonstrates simple API calls using the Retrofit library. The project includes implementations for the following API calls:
Before running the project, make sure you have the following set up:
/api/post
Example output:[
{
"id": "3m3NHikj6FxTMG83cYJR",
"description": "The quick brown fox jumped over the lazy dog. Because its all about the dog!"
},
{
"id": "GCko3aV28C8icVMRAPFf",
"description": "I know what kind of God i should be for you, for all of us. This is a Loki quote."
},
{
"id": "pl74LaFa9LTSreQvuW0s",
"description": "We are the world, we are the children, we are the ones who can make a brighter day so lets start giving.",
}
]
/api/post/{id}
Example output:{
"id": "3m3NHikj6FxTMG83cYJR",
"description": "The quick brown fox jumped over the lazy dog. Because its all about the dog!"
}
/api/post
Example input:{
"description": "I know what kind of God i should be for you, for all of us."
}
Clone the repository from GitHub.
Open the project in Android Studio.
Update the value of Constants.API in the Constants class with the appropriate API base URL since it is currently empty.
Run the app on an emulator or physical device.
Explore the code in the following activities:
ListActivity: Displays a list of posts.CreatePostActivity: Allows the user to create a new post.PostActivity: Displays details of a specific post.This project is licensed under the MIT License.