Building data relations in Strapi

  Рет қаралды 32,443

Strapi

Strapi

Күн бұрын

Пікірлер
@shaktarangiras8731
@shaktarangiras8731 2 жыл бұрын
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
@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
@AlanSchooll
@AlanSchooll 7 ай бұрын
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_
@pryansh_ Жыл бұрын
it helped a lot, thanks !
@onthego22
@onthego22 Жыл бұрын
@strapi What if I want to know which user published the reviews
@erfanattarzadeh4357
@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.viteri9345
@pablov.viteri9345 2 жыл бұрын
How could I populate content using xlsx or csv, insted one by one? Thanks
@marco_di
@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
@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
@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
@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
@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.
@Strapi
@Strapi 9 ай бұрын
Thank you for the correction. Will make a note of this when updating the tutorial.
@trangvu-ty9mc
@trangvu-ty9mc Жыл бұрын
how to api/films authentication?
@enzobatista5905
@enzobatista5905 9 ай бұрын
How can I make it to have hierarchical categories?
@Strapi
@Strapi 9 ай бұрын
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.
@congvo9188
@congvo9188 Жыл бұрын
order item relation??
Introduction to Next.js
7:48
Strapi
Рет қаралды 15 М.
Components and Dynamic Zones 🚀 Strapi Course #2
23:12
NL Tech
Рет қаралды 5 М.
НИКИТА ПОДСТАВИЛ ДЖОНИ 😡
01:00
HOOOTDOGS
Рет қаралды 3,2 МЛН
Will A Basketball Boat Hold My Weight?
00:30
MrBeast
Рет қаралды 137 МЛН
Content Modeling [ how to structure your data in Strapi ]
33:03
I built an app using a single index.php file, here's how it went
32:42
Andrew Schmelyun
Рет қаралды 85 М.
Authentication in Strapi
9:09
Strapi
Рет қаралды 38 М.
Do NOT Learn Kubernetes Without Knowing These Concepts...
13:01
Travis Media
Рет қаралды 315 М.
Consume data from Strapi with Next.js
11:03
Strapi
Рет қаралды 33 М.
Setting up Strapi
10:45
Strapi
Рет қаралды 29 М.
Getting Started with Strapi 5 Part 1 - Strapi crash course 2024
8:59
Coding After Thirty
Рет қаралды 3,2 М.