Open source

Reads a file of a published version

Its text, while it is UTF-8 text no longer than a megabyte, and either way where to fetch it as it is (rawPath).

get/sources/{publicKey}/versions/{version}/files/{path}

Request

  • Base URL: https://genhttp.dev/api/v1
  • URL: https://genhttp.dev/api/v1/sources/{publicKey}/versions/{version}/files/{path}
  • Auth: none declared

Path parameters

publicKeystring required

The public key of the lambda

versioninteger required

The number of the version, counting from 1

pathstring required

Its path below the project's folder, encoded as one segment: docs%2Fproduct.md

Response

The file, with its text where it is text

Pathstring

Its path below the project's folder

Sizeinteger

How large it is, in bytes

Kindstring

What it is: code, resource, docs, tests, platform or project

Textboolean

Whether it is text - which is then in content, unless it is longer than a megabyte

Contentstring nullable

Its text, while it is text no longer than a megabyte

RawPathstring

Where it is fetched as it is

Changes

No recorded changes to this operation across all 1 revision of this API.