Your DevOps study space

Real explanations. Videos with tests. Fresh exams every time. Keep the streak alive and watch the XP stack up.

HTTP & REST · Networking Docs · StackwisePlanDevOps HTTP & REST · Networking Docs · StackwiseCodePython HTTP & REST · Networking Docs · StackwiseBuildDocker HTTP & REST · Networking Docs · StackwiseTestDevOps HTTP & REST · Networking Docs · StackwiseReleaseGit HTTP & REST · Networking Docs · StackwiseDeployKubernetes HTTP & REST · Networking Docs · StackwiseOperateLinux HTTP & REST · Networking Docs · StackwiseMonitorDevOps

Pick a topic

Eight tracks, each with docs, a cheat sheet, videos and tests.

How it works

One loop, repeated until it sticks.

Jump back in

Picked up from where you left off.

Free forever

Your DevOps journey starts with one click.

Sign in with Google or GitHub to open every chapter, video, test and challenge. Your progress is saved wherever you learn.

HTTP & REST

HTTP is the language of the web and of almost every API you'll automate against. Once you can read a request and a response, debugging a website or a pipeline that calls an API becomes much easier.

Request and response

clientbrowser, curlserverapi.example.comrequestGET /api/users/42 HTTP/1.1Accept: application/json(no body for a GET)responseHTTP/1.1 200 OKContent-Type: application/json{"id": 42, "name": "Demee"}
Both messages have the same shape: a first line, headers, then an optional body. The status code in the response's first line tells you how it went.

HTTP is a simple conversation: the client (a browser, curl, a script) sends a request, the server sends back a response. Each has a first line, headers (key: value metadata) and an optional body.

GET /api/users/42 HTTP/1.1          ← method, path, version
Host: api.example.com               ← headers
Authorization: Bearer eyJhbGciOi...
Accept: application/json

HTTP/1.1 200 OK                     ← status code
Content-Type: application/json
Content-Length: 58

{"id": 42, "name": "Demee", "role": "admin"}   ← body

HTTP is stateless: the server doesn't remember you between requests. Anything that should carry over (being logged in) has to be sent again every time, usually as a cookie or an Authorization header with a token. That's exactly how this site's login works: after you sign in, the browser sends a session cookie with every request.

Methods

  • GET reads data and shouldn't change anything.
  • POST creates something or submits data (a form, a new user).
  • PUT replaces a resource completely; PATCH changes part of it.
  • DELETE removes it.

GET, PUT and DELETE are idempotent: doing them twice has the same effect as doing them once. POST isn't: sending it twice may create two records, which is why browsers warn before resubmitting a form.

Status codes

  • 2xx success: 200 OK, 201 Created, 204 No Content.
  • 3xx redirect: 301 Moved Permanently, 302 Found (temporary), 304 Not Modified (use your cached copy).
  • 4xx the client's fault: 400 Bad Request, 401 Unauthorized (you're not logged in), 403 Forbidden (logged in, but not allowed), 404 Not Found, 429 Too Many Requests (rate limited).
  • 5xx the server's fault: 500 Internal Server Error (the app crashed), 502 Bad Gateway (a proxy got no valid answer from the app behind it), 503 Service Unavailable (overloaded or down for maintenance), 504 Gateway Timeout.
A 502 from Nginx almost always means "Nginx is fine, but the app it forwards to isn't running or crashed". Check the app, not Nginx.

HTTPS and TLS

Plain HTTP travels as readable text. HTTPS is HTTP inside a TLS encrypted connection (TLS is the modern version of SSL). During the TLS handshake the server shows a certificate signed by a trusted certificate authority, proving it really is demee.cc; then both sides agree on keys and everything after that is encrypted. HTTPS uses port 443. Free certificates come from Let's Encrypt, or automatically from Cloudflare.

HTTP/2 keeps the same methods and codes but sends many requests at once over a single connection, which makes pages with lots of files load faster.

REST APIs

REST is a common style for web APIs: URLs name resources (nouns), and the HTTP method says what to do with them. The body is usually JSON.

GET    /users        # list users
POST   /users        # create a user (details in the JSON body)
GET    /users/42     # one user
PUT    /users/42     # replace user 42
DELETE /users/42     # delete user 42

You can try any API from the terminal with curl, or with a GUI tool like Postman:

$ curl https://api.github.com/users/octocat          # GET
$ curl -I https://demee.cc                            # headers only
$ curl -v https://demee.cc                            # show the whole conversation
$ curl -X POST https://api.example.com/users \
       -H "Content-Type: application/json" \
       -H "Authorization: Bearer $TOKEN" \
       -d '{"name": "Demee"}'

Questions

Pick an answer. Get it wrong and you can try again right away, no waiting. 10 questions per topic - pick a filter below, then use Recreate questions for a fresh set on that topic.

Fresh questions every time

Exam

A mixed test across the whole site, shuffled so you never know which topic comes next. When you submit, every mistake comes with the reason and a jump to the exact moment in the video that explains it.

30 questions 6 topics 20 minute limit Up to 70 XP
1–4 answer · ←→ move
History

Essay

0 / 200-250 words
Sample answer
History
0:00 / 0:00
Not started

on YouTube
Subscribe

Topic progress

Activity

Achievements

Settings

Your profile and your account.

Profile details

* Required. Saved in this browser until you sign in.

Letters, numbers, dots, dashes and underscores.
0 / 160

Account

Checking…

App

Install Stackwise on your phone or computer. It opens in its own window from your home screen, and the Docs and cheat sheets you've opened keep working without internet.

Only admins can see this

Dashboard

Sign-ups, activity, messages and reviews in one place.

Prove it

Certificates

Pass a topic's test and get a certificate with its own public page you can share or add to LinkedIn. Each test is 10 questions drawn at random and graded on the server; you need 8 right, you have 15 minutes, and you get one try per topic a day.

From first command to production

Linux for DevOps

A path through Linux the way DevOps engineers use it: ten stages, every command explained with its flags, examples, real output and mistakes, the combinations engineers chain together, and incidents worked through step by step. Practise everything in a safe lab folder.

Before the interview

Interview prep

Questions that come up in real DevOps interviews, with the kind of answer that lands. Say yours out loud first, then compare. Each one links to the chapter that goes deeper.

    Private to you

    My notes

    Everything you wrote down while watching and reading, in one place. Saved to your account, never shown to anyone.