Slide 14
Slide 14 text
REST – contd.
Hypermedia that can handle both application information and state transitions
An example of state transitions (state machines)
(For example, on the web, page = state, and the page presents possible operations in that state as a set of buttons)
A stack is a last-in, fast-out
date store
You can push data in, and
pop data out
A design would be like,
POST to create a stack
POST to push to the stack
POST to pop from the stack
GET to peek in the stack state
PUT to update an item
DELETE to delete the stack
B 2020 — 5 1 — 2020-11-09 – p.14/23