Skip to content

Public API: return uploaded mediaΒ #1043

@jgege

Description

@jgege

πŸ”– Feature description

Currently, the public API doesn't return URL pictures/videos uploaded to a post.

The docs clearly show that:
https://docs.postiz.com/public-api#post-list

🎀 Why is this feature needed ?

Being able to list all the files belong to the post would be handy so that we can access all that we uploaded.
In my use case, I'm using Postiz to create and publish posts to social media platforms but I also add these posts to my blog. Currently, I have no way of adding the images as well.

✌️ How do you aim to achieve this?

I've looked at the database structure and the URLs where the files are available are stored in the "Image" column in a JSON format.

I'm not familar with TS but I assume it could be just adding that extra field in the select statement here?
https://github.com/gitroomhq/postiz-app/blob/main/libraries/nestjs-libraries/src/database/prisma/posts/posts.repository.ts#L178-L202

πŸ”„οΈ Additional Information

No response

πŸ‘€ Have you spent some time to check if this feature request has been raised before?

  • I checked and didn't find similar issue

Are you willing to submit PR?

None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions