Files
View contents of a given file.
For a given file on a site, retrieve contents of file.
get/v1/sites/{id}/files/view
Request
- Base URLhttps://api.rocket.net
- AuthHTTP bearer
Path parameters
idinteger required
ID of the Site you are interacting with
Example:8880000888
Query parameters
filenamestring required
directorystring
Response
OK
Example response
{
"success": true,
"errors": [],
"messages": [],
"result": {
"content": "<?php echo 'Hello, world!'; ?>",
"content_type": "image/jpeg"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.