mataroa-blog / mataroa

Naked blogging platform
https://mataroa.blog
GNU Affero General Public License v3.0
265 stars 21 forks source link

Able to exclude `body` from `GET /api/posts/` #86

Closed imcotton closed 2 weeks ago

imcotton commented 2 months ago

Sometime I only need the metadata of posts and only to expand get the whole body via /api/posts/<slug>/.

Maybe something like /api/posts/?nobody=1 that not resulting as DB dump?

or

/api/posts-meta/

sirodoht commented 2 weeks ago

Hey @imcotton !

Sorry I didn't get back to you earlier. That would be cool to have! Might to in the future at some point, but feel free to open a PR if you want :)

imcotton commented 2 weeks ago

Good to know that this idea was not rejected from the beginning. Sorry, I'm not familiar with Python in this context. Since this is not urgent, I'll keep an eye on it once it's implemented in the future. Thanks.