Skip to content

Commit

Permalink
REST API: Include alt field in example asset responses
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed May 9, 2024
1 parent 17a5554 commit 0749544
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions content/collections/docs/rest-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,8 @@ Get a container's asset data.
{
"id": "main::foo.jpg",
"url": "/assets/foo.jpg",
"api_url": "http://example.com/api/assets/main/foo.jpg"
"api_url": "http://example.com/api/assets/main/foo.jpg",
"alt": "A picture of nothing."
}
],
"links": {...},
Expand All @@ -569,7 +570,8 @@ The `path` in the URL should be the relative path from the container's root.
"data": {
"id": "main::foo.jpg",
"url": "/assets/foo.jpg",
"api_url": "http://example.com/api/assets/main/foo.jpg"
"api_url": "http://example.com/api/assets/main/foo.jpg",
"alt": "A picture of nothing."
}
}
```
Expand Down

0 comments on commit 0749544

Please sign in to comment.