getRepoExtensionFileAtCommit
Read one extension file with its content as written and the copy Forge formatted for reading.
GET
/repos/{repo_id}/commits/{commit_id}/extensions/{name}/files/{file_id}Path parameters
Returns
200
ExtensionFile
JSON
- formatted_contentrequired
The file formatted with Prettier for reading, when that differs from
content. Forge formats a file shortly after it's written, so this is null until then, and stays null when the file is already formatted, isn't TypeScript, JavaScript or JSON, is over 256 KiB, or doesn't parse. Writes never take it, and builds read onlycontent, so edit fromcontent.
400
InvalidRequest
403
Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
JSON
One of the following:
- ForbiddenEncoded
- ForbiddenOriginEncoded
- RequiresPersonalSessionEncoded
- RunBranchRequiredEncoded
404
CommitNotFound | ExtensionNotFound | ExtensionFileNotFound | RepoNotFound
JSON
One of the following:
- CommitNotFoundEncoded
- ExtensionNotFoundEncoded
- ExtensionFileNotFoundEncoded
- RepoNotFoundEncoded
503
SessionUnavailable | RateLimitUnavailable
JSON
One of the following:
- SessionUnavailableEncoded
- RateLimitUnavailableEncoded