context |
Scope under which the request is made; determines fields present in response.
Default: One of: |
page |
Current page of the collection.
Default: |
per_page |
Maximum number of items to be returned in result set.
Default: |
search |
Limit results to those matching a string. |
after |
Limit response to posts published after a given ISO8601 compliant date. |
author |
Limit result set to posts assigned to specific authors.
Default: |
author_exclude |
Ensure result set excludes posts assigned to specific authors.
Default: |
before |
Limit response to posts published before a given ISO8601 compliant date. |
exclude |
Ensure result set excludes specific IDs.
Default: |
include |
Limit result set to specific IDs.
Default: |
offset |
Offset the result set by a specific number of items. |
order |
Order sort attribute ascending or descending.
Default: One of: |
orderby |
Sort collection by object attribute.
Default: One of: |
parent |
Limit result set to items with particular parent IDs.
Default: |
parent_exclude |
Limit result set to all items except those of a particular parent ID.
Default: |
slug |
Limit result set to posts with one or more specific slugs. |
status |
Limit result set to posts assigned one or more statuses.
Default: |
media_type |
Limit result set to attachments of a particular media type.
One of: |
mime_type |
Limit result set to attachments of a particular MIME type. |
GET /wpas-api/v1/attachments
$ curl http://demo.getawesomesupport.com/wp-json/wpas-api/v1/attachments