Fluid Web Services

Manifesto

Approach

Getting Started

> GET /users/Simon HTTP/1.1
> Fluid-From: Joe
< HTTP/1.1 200 OK
< Content-Type: application/json
{
"name": "Simon",
"location": "London",
"hobby": "coding"
}
> GET /users/Simon HTTP/1.1
> Fluid-From: Joe
< HTTP/1.1 200 OK
< Content-Type: application/json
< Fluid-Fallback: /users-88af9d35/Simon
{
"name": "Simon",
"city": "London",
"hobbies": [ "coding" ]
}
> GET /users-88af9d35/Simon HTTP/1.1
> Fluid-From: Joe
< HTTP/1.1 200 OK
< Content-Type: application/json
< Fluid-Expiry: 21 Use updated /users structure
{
"name": "Simon",
"location": "London",
"hobby": "coding"
}

Alternatives

> GET /users/v1/Simon HTTP/1.1
> GET /users/v2/Simon HTTP/1.1
{
"name": "Simon",
"city": "London",
"location": "London",
"hobbies": [ "coding" ],
"hobby": "coding"
}

Wrap Up

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store