Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor GET /pins response #4

Open
Tmw opened this issue Jul 14, 2017 · 0 comments
Open

Refactor GET /pins response #4

Tmw opened this issue Jul 14, 2017 · 0 comments

Comments

@Tmw
Copy link
Contributor

Tmw commented Jul 14, 2017

This is a proposal for the GET /pins response route. All excess fields have been stripped so all is left is what the front-end actually needs.

{  
   "pins":[  
      {  
         "id":"P1CDIAM4",
         "pinned_by":"Tiemen",
         "author":{  
            "name":"John",
            "avatar":"some-url"
         },
         "message":{  
            "body":"Some message body",
            "time":15000000001,
            "reactions":[  
               {  
                  "identifier":"raised_hands",
                  "count":12
               }
            ]
         }
      }
   ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant