- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
03-13-2023 04:50 AM - edited 03-13-2023 04:51 AM
Hi!
I want to get the content of a list from the API REST. The endpoint /lists returns all lists and their content. Is there a way to get only the content of a list?
In addition, the content of the list brings the line breaks and spaces corresponding to the pretty print of the json. For example:
I can't find the documentation with the api endpoints. In the uri /api it is certainly not complete. Does this documentation exist?
03-16-2023 08:42 AM
Hi Rdevega, I wasn't able to find a way to retrieve just the content for one list but you could use something like JMESPath to filter the API response down to a single result. For example, in your screenshot you could use this JMESPath expression: {?id==`test_list`].data
This would return just the content in test_list. Hope that helps!
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!