-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
todolist example not work correctly(inclusion show in document but not same with the response) #3960
Comments
@nabdelgadir @agnes512 , could you please take a look? Thanks. |
@st119848 Hi, could you add more details about this issue? such as what request you tried, the result you got, and which part of the API docs are inconsistent. thanks! |
Hi @st119848, so this is actually a limitation of the explorer (#2208). If you notice the request url, it's http://localhost:3000/todo-lists instead of http://localhost:3000/todo-lists?filter[include][][relation]=todos. Try using the url instead of doing the request through the explorer. |
thank you i will try to use api with url and filter url. |
what if i want to use more inclusion in the inclusion what pattern url will be ? or you can send me about link to read about it |
/customers?filter[include][reviews]=author ? oh this is from lb3 and it not use relation. |
relate to this issue #3453 |
Steps to reproduce
Run the lb4 example command to select and clone the todo repository:
lb4 example todo-list
Switch to the directory.
cd loopback4-example-todo-list
Finally, start the application!
$ npm start
Server is running at http://127.0.0.1:3000
or i clone your entire github and start in example todolist folder the result is the same .
Current Behavior
In the api document show example result with inclusion(relate model) but actual result format not same as example result.
Expected Behavior
Response same pattern as example result (with inclusion (relate model))
The text was updated successfully, but these errors were encountered: