JSON Server is a handy tool for anybody working with or developing the REST/JSON APIs. It’s a ready-made “fake” API server, that is super easy to setup with your end points and your data. And the best part – it’s not just read-only. You can work with POST, PUT, PATCH, and DELETE requests too and the JSON Server will properly update your pre-configured data in the JSON files.
Tag: API
GitHub GraphQL API v4
I’ve briefly mentioned before that GitHub joined the adopters of the GraphQL for their API. Here’s the link to the full documentation and more details.
GitHub chose GraphQL for our API v4 because it offers significantly more flexibility for our integrators. The ability to define precisely the data you want—and only the data you want—is a powerful advantage over the REST API v3 endpoints. GraphQL lets you replace multiple REST requests with a single call to fetch the data you specify.
Single Sign On – You’re Probably Doing It Wrong
Arnes Blanert wrote an extensive article for the architect magazine on the subject of Single Sign On (SSO). It covers both authentication and authorization via a variety of widely and not so widely used methods, including oAuth, SAML, JSON Web Token and more.
As someone who was involved in a variety of Single Sign On implementations (see some of the posts on the subject in my blog), I wish I had an article like this in my RSS feeds much much earlier.
oEmbed specification
oEmbed has been around for a while and there are some really nice implementations of it. For example, in WordPress, where pasting a URL to YouTube video, Flickr photo, Twitter tweet, and a number of other services, will result in a nicely formatted embedded snippet from an external site. WordPress does not only consume the oEmbed, but also provides embeddable content.
For a while now, I’ve been thinking about ways to utilize it. There are quite a few applications of oEmbed that make sense for our projects at work. For now, I’ll just leave you here with the link to the oEmbed specification.
VueJS and GraphQL with Apollo
This blog post demonstrates how to tie together Vue.js and GraphQL using the Apollo Client. This is not something that I’ve tried yet, but it’s on the horizon.
If you have any other handy links for either Vue.js or GraphQL, please throw them my way.