![]() ![]() There are very simple ways of getting a list of files in a folder without external software. ![]() It’s quite easy to find out what files are taking up the most drive space but it’s also handy to know what files are stored where. With the size of hard drives today reaching multiple Terabytes, keeping track of all the stored files would be quite useful. You might have noticed in the response that aspects (also known as secondary types) are not returned.Whether you need to do so for yourself or for someone else, there is sometimes a need to create a listing of the contents of a particular directory, set of directories, or a whole drive. There’s a lot more stuff you can configure when making the /nodes//children call. &maxItems=100: return max 100 nodes (folders and files).?skipCount=0: return all nodes from beginning, don’t skip any./children: execute the children operation on the top level folder./-root-: specifically working with the top level folder node entity instance./nodes: working with the node entity, which represents things like folders and files./versions/1: version 1 of the API is used./public: this is a supported public endpoint in the ReST API (in contrast to an internal or custom API endpoint)./-default-: the default tenant is accessed (not usually changed unless you are running a multi tenant installation)./api: the Alfresco ReST API v1 is accessed.Let’s have a more detailed look at the URL and explain the different parts: We will see how to request more data back later in this section. More data and sacrifice a slight performance hit. More data can be requested but the client has to make a conscious decision to request The new v1 REST APIs are following a “performance first” principle, meaning by default, they only return the data that ![]() Item (in this case a folder or file) is contained in an entry object. Then follows an array called entries with the actual content. First is a pagination object with information about the total number of itemsĪvailable and if any items were skipped. The response format is standardized and you will see it used for other APIs If you are familiar with Alfresco, then you will recognize the folders that are returned in the response The following URL is used to list children of the root folder and we pass in the authentication token: $ curl -X GET -H 'Accept: application/json' -H 'Authorization: Basic VElDS0VUXzA4ZWI3ZTJlMmMxNzk2NGNhNTFmMGYzMzE4NmNjMmZjOWQ1NmQ1OTM=' ' | jq The top folder of the Repository is called /Company Home and referred to as root. Listing the folders and files in the top folder of the repository is often something you often need to do to get an idea Listing the contents of a folder in the repository is really useful, here we walk through several examples of how to do that.ĪPI Explorer URL: See also: Filter contents of a folder In this section we will cover how to manage folders and files, also referred to as nodes, with the Alfresco ReST API.Īfter walking through this section you should have a good understanding of how to list contents of a folder,Ĭreate a folder, upload a file, set metadata for a folder or file, update a file, delete folders and files, and much more. This section is all about managing folders and files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |