AlgoViz

API design examples (CRUD)

easy 24 min

Create, read, update and delete cover most of what an API does with data.

Where it shows up

The same pattern appears across everyday software.

  • GitHub issues

    POST creates an issue, GET lists or reads, PATCH changes the title or closes it. Issues are closed rather than deleted in daily use.

  • Stripe objects

    Most objects can be created, retrieved, updated and listed. Charges and refunds are not deleted: money needs history.

  • Kubernetes API

    Most object types support create, get, list, update, patch and delete. Each object carries a resource version, and a stale update is refused with a conflict.

  • Amazon S3

    Objects are written whole with PUT, read with GET and removed with DELETE. There is no partial update of an object's bytes in the basic calls.

  • Content management systems

    Articles use CRUD with drafts, versions and soft deletes, so an editor can bring back yesterday's text.

  • Admin dashboards

    Frameworks generate tables and forms because CRUD endpoints look alike for every resource.