15.
Customizing (making less ugly) Embeddeds!
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
Whoops, an error! Please, try again later.
2 Comments
Awesome post @weaverryan
'Content-Type' => 'application/vnd.codebattles+json'
In the wonderful book "Build APIs you won't hate", I could see that some people also include the version of the api so that a client would ask:
'Accept' => 'application/vnd.codebattles.v3+json'
This solves the caching problem when using other headers for api versioning - I thought this might interest some people maybe who were wondering how to do versioning too! (Apparently Github does it like this)
Very good tip Anthony R.! We didn't talk about versioning, but even if you're not thinking about versioning your api, you could add a v1 at the beginning so that you have it in case you ever need it :).
Cheers!
"Houston: no signs of life"
Start the conversation!