If api/reviews is protected, why do we need to protect api/films as well to populate? Didn't get that part well
@stacked-dev Жыл бұрын
Hey there ! very nice explanation . I just want to know that how i can get the all reviews of a one product using the reviews api end point
@AlanSchooll7 ай бұрын
How to develop relation through api call, like if new review is created through api call, how i can establish relation between film and that new review using api call, instead of opening strapi admin panel to establish relation between two?
@pryansh_ Жыл бұрын
it helped a lot, thanks !
@onthego22 Жыл бұрын
@strapi What if I want to know which user published the reviews
@erfanattarzadeh4357 Жыл бұрын
What about population for post and put methods? I have a Task model that I don't want to update it by every user! Each task belongs to one user. Help me plz.
@pablov.viteri93452 жыл бұрын
How could I populate content using xlsx or csv, insted one by one? Thanks
@marco_di Жыл бұрын
Nicely explained 👍 For a change, I would appreciate a tutorial that makes it a bit more explicit. What if "films" is just part of a parent collection? Let's say it's about directors and their work and George Lucas had made "Star Wars", a wildlife documentary and commercials. There would be a "Directors" Collection and listed in it "films" Collection, "Documentation" Collection, "Commercials" Collection. Normally these would be displayed as nested json in the REST API as "films": { "data": [ {"id": 1, "attributes": "title": "Star Wars" ... etc. I only get an "id" displayed there and nothing else. What should I do so that not only the ID is displayed in the REST API, but all information from the collection is transferred? Is there a tutorial for this? I would be happy about any useful information, because I am currently facing this exact problem. Thanks in advance
@marleynicolson8851 Жыл бұрын
why cant i get collection types by relation without populating all or using deep. seems odd that something would be set up to function like categories but you cant get collection types by relation. for example making a blog then using the route params(slug) in a collection type request to get blogs by cat, bare in mind that both a main category is needed but one post might also belong to others cats / relations
@tarachandravishvkarma1049 Жыл бұрын
What abhout the post request.. if I want add title, released and director with the reviews together with an api call.. how can i do that? If anyone has the solution let me know
@spontan_tv Жыл бұрын
Hi i host strapi on a local server but i cant go to the admin page on a other pc can you help me i found nothing online
@månemannmånemann Жыл бұрын
To get films (in Insomnia) i had to first go to [ settings > users and permissions plugin > roles > public > Film ] and then enable "find". Nothing was publicly accessible per default for me, and i don't think it has been part of the tutorial to make it that? Otherwise really nice tutorial.
@Strapi9 ай бұрын
Thank you for the correction. Will make a note of this when updating the tutorial.
@trangvu-ty9mc Жыл бұрын
how to api/films authentication?
@enzobatista59059 ай бұрын
How can I make it to have hierarchical categories?
@Strapi9 ай бұрын
Do you mean, categories that have sub categories and so on? I would assume you would be able to make a relation to categories. Or add a field that tracks the category id that it is related to.