4337 links
  • Arnaud's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
page 1 / 1
6 results tagged rest x
  • thumbnail
    Feathers | Instant Realtime and REST APIs for Node.js
    21 avril 2018 à 13:04:56 UTC+2 - permalink - archive.org - https://feathersjs.com/
    js rest
  • Routing ( FOS Rest Bundle Docs)

    this is insane

    17 avril 2018 à 14:35:34 UTC+2 - permalink - archive.org - https://symfony.com/doc/current/bundles/FOSRestBundle/5-automatic-route-generation_single-restful-controller.html
    rest symfony
  • thumbnail
    Principles for Standardized REST Authentication - O'Reilly Broadcast

    Stateless auth for rest api

    Query Authentication

    All REST queries must be authenticated by signing the query parameters sorted in lower-case, alphabetical order using the private credential as the signing token. Signing should occur before URL encoding the query string.

    In other words, you don't pass the shared secret component of the API key as part of the query, but instead use it to sign the query. Your queries end up looking like this:

    GET /object?timestamp=1261496500&apiKey=Qwerty2010&signature=abcdef0123456789

    The string being signed is "/object?apikey=Qwerty2010×tamp=1261496500" and the signature is the HMAC-SHA256 hash of that string using the private component of the API key.

    The main objection to this approach is that the private API key devolves into a kind of password for static calls. For example, if the query were instead:

    GET /object?apiKey=Qwerty2010

    The signature would be the same every time you made that specific query. However, you are using SSL, right? Furthermore, adding in a timestamp makes each query differ. For extra security, you can make the timestamp a more formal date-time value with time zone information and disallow queries outside of the query range.

    The real controversy is whether signing should occur before or after URL encoding values. There is no "right" answer. I lean towards signing before encoding because most programming tools make it easier on the server side to get the unencoded values versus the encoded values. I'm sure good arguments can be made the other way. What I really care about is this: let's pick one and stick with it.

    18 janvier 2017 à 10:38:03 UTC+1 - permalink - archive.org - http://broadcast.oreilly.com/2009/12/principles-for-standardized-rest-authentication.html
    auth rest
  • Consuming JSON REST resource through HTTP - Ruby Intro
    18 avril 2014 à 15:17:58 UTC+2 - permalink - archive.org - http://nizhu.github.io/ruby-intro-site/blog/2013/07/31/consuming-json-rest-resource-through-http/
    api puppetdb rest ruby
  • POST vs. PUT : la confusion | Blog Xebia France

    Article intéressant sur l'implementation d'api REST et que faire/ne pas faire concernant le mapping CRUD <=> http methods

    18 mars 2014 à 14:02:37 UTC+1 - permalink - archive.org - http://blog.xebia.fr/2014/03/17/post-vs-put-la-confusion/
    api crud rest
  • Designing a RESTful API with Python and Flask - miguelgrinberg.com

    je me mets ça de côté pour plus tard.

    via https://arnaudb.net/shaarli

    10 janvier 2014 à 13:24:11 UTC+1 - permalink - archive.org - http://blog.miguelgrinberg.com/post/designing-a-restful-api-with-python-and-flask
    python rest
Links per page: 20 50 100
page 1 / 1
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation