Retrieve Assets

get

/mobile/tools/1.0/assets

Returns an array of asset metadata. You can filter the results, page through the results, and specify a sort order. Note that the only types of APIs that this operation returns are custom and connector APIs.

Request

Supported Media Types
Query Parameters
  • A comma-delimited list of the type of APIs to return. Note that the only types of APIs that this operation returns are custom and connector APIs. If you don't provide this parameter, then all assets are returned.

    Allowed values:

    • internal: APIs that you can call from custom API implementations only
    • external: APIs that you can call from custom API implementations, mobile apps, and third-party tools
    • custom: Custom APIs
    • connector: Connector assets
    Default Value: all
  • A comma-delimited list of the types of assets to return. If this parameter isn't provided, then the operation returns all assets. Multiple values can be provided as comma-separated string. Allowed asset types: [ API | MobileBackend | Connector | APIImplementation | Client | StorageCollection | Package].
  • Collection Format: multi
    Expression to exclude from the result the elements that have IDs in the list. Example: exclude=57165555-aa10-4838-938a-354c2b3a287sa&exclude=57165555-aa10-4838-938a-354c2b3a287s
  • Allowed Values: [NOT_PUBLISHED, PUBLISHED, NOT_TRASH, TRASH, MAX_EXCLUDE, MAX_INCLUDE, MAX_ONLY].

    Filter assets by the following filter types. You can provide multiple values as a comma-separated string. For example, filterType=NOT_PUBLISHED,NOT_TRASH,MAX_ONLY.

    • PUBLISHED returns all assets that are in the published state.
    • NOT_PUBLISHED returns all assets that aren't in the published state.
    • TRASH returns all assets that have the inTrash attribute set to true.
    • NOT_TRASH returns all assets that have the inTrash attribute set to false.
    • MAX_INCLUDE returns all assets including those that have the max attribute set to true.
    • MAX_EXCLUDE (the default) returns all assets except those that have the max attribute set to true.
    • MAX_ONLY returns only the assets that have the max attribute set to true.

  • Include only the assets that have been modified or deleted on or after the specified time. Example: 2016-03-03T15:13:39.419Z.

    Filters by modifiedOn for assets that haven't been trashed and by deletedOn for trashed assests.

    Supported values:

    • Number of milliseconds since January 1, 1970, 00:00:00 GMT
    • Date in ISO 8601 format
    • Relative value, such as -1s, -1m, and -1h
  • Collection Format: multi
    Expression to return only the elements that have IDs in the list. Example: id=93079180-bb00-4838-938a-753c2b3a957a&id=57165555-aa10-4838-938a-354c2b3a287s
  • The maximum number of items to return. If the total number of items to return is greater than the limit, then the response returns a link to get the next set of items.
  • The index where you want to start browsing the list of items. If you don't specify an offset, then the offset defaults to 0, which is the first item in the list. The response contains the offset used and a link to get the previous set of items.
  • The sort order for the results. The default sort order is ascending by name. When you specify a sort order with pagination, the next and previous links respect the ordering. Multiple values can be provided as a comma-separated string. Format: `orderBy=attr[:("asc"|"desc")] [,attr[:("asc"|"desc")]]`, where the `attr` parameter can be one of [ name | version | modifiedOn | createdOn | deletedOn | deletedBy ]. Example: `orderBy=name:asc,modifiedOn:desc`
    Default Value: name:asc
  • Performs a case-insensitive search for assets that have a name, display name, or description that contains the string that's provided in this parameter. For example, q=myApi. This parameter doesn't support query languages.
  • Include only the assets that have been modified or deleted on or before the specified time. Example: 2016-03-03T15:13:39.419Z.

    Filters by modifiedOn for assets that haven't been trashed and by deletedOn for trashed assests.

    Supported values:

    • Number of milliseconds since January 1, 1970, 00:00:00 GMT
    • Date in ISO 8601 format
    • Relative value, such as -1s, -1m, and -1h
  • Reserved for enabling the total number of available elements in the response. This parameter is ignored because the total elements count always is available and is provided in the response.
Header Parameters
  • Indicates the preferred set of natural languages to use for the response. The results are sorted based on the language. Example: da, en-gb;q=0.8, en;q=0.7.

Response

Supported Media Types

200 Response

An array of asset metadata by asset type. Includes pagination information.
Body ()
An array of asset elements with paging information.
Root Schema : searchAssetPaging
Type: object
An array of asset elements with paging information.
Match All
Show Source
Nested Schema : paging
Type: object
The pagination information.
Show Source
  • The number of elements in this response.
  • Indicates whether the collection has more elements to be retrieved.
  • The maximum number of items returned. If the total number of items to return is greater than the limit, then the response returns a link to get the next set of items.
  • paginationLinksArray
  • The total number of elements on the server side that satisfy the request. This attribute is returned only when the request includes the `totalResults` query parameter with a value of `true`.
Nested Schema : searchAssetPaging-allOf[1]
Type: object
Show Source
Nested Schema : paginationLinksArray
Type: array
Minimum Number of Items: 0
An array of links for paginated metadata.
Show Source
Nested Schema : Link to the paginated metadata.
Type: object
Title: Link to the paginated metadata.
Show Source
  • Link value.
  • Allowed Values: [ "self", "canonical", "next", "prev", "first", "last" ]
    Link type.
Nested Schema : items
Match All
Show Source
Nested Schema : searchAssetArray
Type: array
Minimum Number of Items: 0
An array of asset elements as response data from the search.
Show Source
Nested Schema : searchAsset
Type: object
The asset representation for search assets responses.
Match All
Show Source
Nested Schema : assetGet
Type: object
The asset representation for GET requests.
Match All
Show Source
Nested Schema : searchAsset-allOf[1]
Type: object
Show Source
Nested Schema : assetUpdate
Type: object
The asset representation for PUT requests.
Show Source
Nested Schema : assetIdEtag
Type: object
The asset ID and entity tag (ETag) values.
Show Source
Nested Schema : trash
Type: object
Indicator of whether the asset is in the trash.
Show Source
Nested Schema : assetGet-allOf[3]
Type: object
Show Source
Nested Schema : entityLinksArray
Type: array
Minimum Number of Items: 0
An array of links for an entity's metadata.
Show Source
Nested Schema : items
Type: object
Link to the entity's metadata.
Show Source