POST /v1/semver-bumpBump a semantic version
Validation Utils lf-validation-utils
Raises a version number by one step, such as a patch, minor or major release. Bump a semantic version
Request Body
Content-Type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
version | string | Yes | Current SemVer |
bump | string | Yes | major, minor, patch, or prerelease |
Response Schema
bumped (string): New version
from (string): Original version
bump (string): Bump type applied
cURL Example
curl -X POST 'https://lf-validation-utils.laminarforge.dev/v1/semver-bump' -H 'Authorization: Bearer lf_YourApiKey' -H 'Content-Type: application/json' -d '{}'Python Example
import requests
url = 'https://lf-validation-utils.laminarforge.dev/v1/semver-bump'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
data = {}
response = requests.post(url, headers=headers, json=data)
print(response.json())