Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.93 KB

README.md

File metadata and controls

46 lines (33 loc) · 1.93 KB

FlipGive Feed Challenge

The API Endpoint details can be found below.

We'd LOVE for you to write tests!! We also value code which is clean, consistent, and easily understandable.

When you're done, be prepared to possibly review this code together and be able explain why you chose to write it the way you did.

Please share your code with us either on GitHub, or if privacy is important to you, there are free private repos with BitBucket (share with [email protected]).

Ruby on Rails

Fork/Clone this repo and implement the /feed endpoint. The goal is to render JSON for the activities which you will pull from the API. There are 2 types of activities: shared and posted... for the different activities, you will need to pull the related data using the additional endpoints provided below. The object field contains a string with the ID needed to pull.

Do your best to make it efficient. The API is written poorly (totally beyond our control), and responds in 500ms... so the fewer requests we can make the better.

The JSON being rendered should look like (changes slightly based on the activity):

[
  {
    "verb": "posted",
    "actor": "My Name",
    "content": "I am quite hungry!",
    "description": "My Name posted I am quite hungry!"
  },
  {
    "verb": "shared",
    "actor": "My Name",
    "url": "https://www.flipgive.com",
    "description": "My Name shared https://www.flipgive.com"
  }
]

Rails Bonus

Have the /feed endpoint respond in under 1 second.

Endpoints