This is a small excercise to test android/kotlin programming skills.
Develop a basic android app using Android Studio with Kotlin implementing the following features:
- Implement a view to display a list of
Posts loaded from/posts- The posts must be displayed in a list
- Each item in the list consists of an image, title and excerpt.
- For the images placeholder images can be used but must not be hardcoded.
- Implement a detail view which displays the full post with a larger image when selected
- Implement a comment section which accepts a
name,emailandcommentas input and sends it to/posts/{postId}/comments- The comment section must be prefilled with comments for this post retrieved over
/post/{id}/comments - Each comment entry must display the
name,emailandcomment.
- The comment section must be prefilled with comments for this post retrieved over
- Provide proper user feedback for all interactions with the UI
The API can be found under http://excercise.born-to-create.de/ and has the following routes:
Retrieves a list of all posts
Retrieve all comments for given posts
Create a new comment
Body
email: string, required, valid email
name: string, required, allowed chars a-z\s, maxlength 100
comment: string, required, maxlength 300
| Property | Type | Description |
|---|---|---|
| id | int | |
| author | string | author full name |
| title | string | |
| thumbnail | string | thumbnail image url |
| image | string | full image url |
| content | string |
| Property | Type | Description |
|---|---|---|
| id | int | |
| post_id | int | |
| name | string | comment author full name |
| string | author email address | |
| comment | string |