Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new versioned content through API #49

Open
jonno85 opened this issue Oct 13, 2022 · 2 comments
Open

Create new versioned content through API #49

jonno85 opened this issue Oct 13, 2022 · 2 comments
Labels
issue: enhancement Issue suggesting an enhancement to an existing feature

Comments

@jonno85
Copy link

jonno85 commented Oct 13, 2022

Hello,
I am trying to create a new version of a resource through the API without success.
Screenshot 2022-10-13 at 14 39 28

I tried to PUT the same resource incrementing the versionNumber and passing the same vuid but the exact same resource got updated.
I also tried to POST the same resource content, still passing versionNumber and the same vuid but using the endpoint /:slug/:resourceId (the resourceId is the strapi integer id) as I see from the source code but I got 405 Method Not Allowed.

Where Am I doing wrong?
On the permission level, the token that I use got the full permission to play that slug property.

@martincapek
Copy link
Contributor

Hi, right now versioning works only in Strapi admin. We did not create API for Content API, just for Admin API. So I will convert this as enhancement and we will do it in the future.

@martincapek martincapek added the issue: enhancement Issue suggesting an enhancement to an existing feature label Nov 30, 2022
@ShaheryarK
Copy link

Hi @martincapek, thank you so much for building such a great plugin, just wanted to know if you have plans to publish this enhancement feature for the Content API, as it is very crucial for building data-extensive web apps which use Strapi as their backend!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: enhancement Issue suggesting an enhancement to an existing feature
Projects
None yet
Development

No branches or pull requests

3 participants