Skip to main content
POST
/
generic
/
data
/
generate
/
git
Generate synthetic git data
curl --request POST \
  --url https://apix.spotzee.com/api/ext/generic/data/generate/git \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data count=10 \
  --data locale=en \
  --data seed=12345 \
  --data method=profile \
  --data refDate=2024-01-15T12:00:00.000Z \
  --data eol=LF \
  --data merge=false \
  --data commitShaLength=40
{
  "status": "success",
  "data": {
    "git": [
      {
        "method": "profile",
        "value": "2c6e3880fd94ddb7ef72d34e683cdc0c47bec6e6",
        "branch": "feature-update-parser",
        "commitDate": "Mon Nov 7 14:40:58 2022 +0600",
        "commitDateIso": "2022-11-07T08:40:58.000Z",
        "commitEntry": "commit 2c6e3880fd94ddb7ef72d34e683cdc0c47bec6e6\nAuthor: Alex Morgan <alex.morgan@example.com>\nDate: Mon Nov 7 14:40:58 2022 +0600\n\n    update source-control fixture tests",
        "commitMessage": "update source-control fixture tests",
        "commitSha": "2c6e3880fd94ddb7ef72d34e683cdc0c47bec6e6",
        "commitShaLength": 40,
        "eol": "LF",
        "merge": false,
        "refDate": "2024-01-15T12:00:00.000Z"
      }
    ],
    "generated": 1,
    "locale": "en",
    "seed": 12345,
    "method": "profile"
  },
  "performance": {
    "generationTime": 2,
    "itemsGenerated": 1,
    "locale": "en"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.spotzee.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer token authentication. Use format: Bearer YOUR_API_KEY

Body

application/x-www-form-urlencoded
count
string

Number of git records to generate (1-100). Passed as string but must be numeric.

Pattern: ^[1-9]\d?$|^100$
Example:

"10"

locale
string

Locale for generated data (e.g., en, es, fr, de, pt_BR, zh_CN)

Example:

"en"

seed
string

Seed for deterministic generation. Same seed produces same results.

Example:

"12345"

method
enum<string>

Git generation method. Defaults to profile.

Available options:
profile,
branch,
commitDate,
commitEntry,
commitMessage,
commitSha
Example:

"profile"

refDate
string

Optional reference date for commit date and commit entry output. Use an ISO 8601 date string.

Maximum string length: 64
Example:

"2024-01-15T12:00:00.000Z"

eol
enum<string>

Line ending style for commit-entry output.

Available options:
LF,
CRLF
Example:

"LF"

merge
enum<string>

Include a merge line when method=commitEntry or profile.

Available options:
true,
false
Example:

"false"

commitShaLength
string

Generated commit SHA length. Defaults to 40 and is capped at 40.

Pattern: ^[1-9]\d*$
Example:

"40"

Response

Successfully generated git data

status
enum<string>
required
Available options:
success
data
object
required
performance
object