Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@rrgayhart
Last active February 14, 2019 16:17
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save rrgayhart/9fe4ae599968ebccb2b5aaab8e954d1f to your computer and use it in GitHub Desktop.
Save rrgayhart/9fe4ae599968ebccb2b5aaab8e954d1f to your computer and use it in GitHub Desktop.
API Best Practices

The JSON API Standard

What is the JSON API Standard

The Specification

  • The History
  • Why does it exist?
    • Bike Shedding/LookingFor
  • Do we have to use it?
  • What are the important takeaways?

Document Structure

Typically implemented through libraries

Some Implementations of Note*

Returning Data

Pagination

Your Turn

  • Spend the next ten minutes reading the pagination spec to see if our application meets the JSON api standard.

Error Objects

Your Turn

  • Look through your Ideabox projects
    • What would you have needed to add to your API to render error messages in your view?

Digging Deeper

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment