---
# System prepended metadata

title: Design Document Draft for Twitter Feed UI

---

# Design Document Draft for Twitter Feed UI

> Please elaborate as best as you can on how would you design and implement this system.


[POST/PUT] /post/
payload: {
    text: string
}
di request (api.js) nya ada mengambil session/token di storage browser kalau uda ada user

[GET] /post/
user -> slide (eventListener scroll)/click, increment pagenumber -> fetch be, return post jumlah x di page pageNumber
-> kita tambahin ke state posts [...posts, ...data]

no payload
return response {
    count: x,
    next: link,
    prev: link,
    results: [{
        text: string
    }]
}

```

```