Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
maxLevel1

POST will receive a snapshot input JSON object and return a snapshot JSON object. Snapshot input JSON objects can have the following attributes:

Long
AttributesTypeDescription
snapshotNameStringThe name of the snapshot is automatically generated at the time of creation
snapshotIdThe id of the snapshot is returned after creation
descriptionStringThe description of the snapshot
projectsList<Project>A list of projects associated with the snapshot

...

AttributesTypeDescription
projectIdLongThe id of the project
projectVersionIdLongThe version id of the project
packageNameStringThe name of the package (used for partial deployment projects only)projectVersionIdLongThe version
buildEnvironmentIdLongThe build environment associated with the project
forceBuildBooleanWhether or not the project should be force built

Snapshot JSON objects can having the following attributes:

AttributesTypeDescription

snapshotId

LongThe id of the snapshot
snapshotNameStringThe name of the snapshot, which is the time when the snapshot was created
snapshotStatusStringThe status of the snapshot
descriptionStringThe description of the snapshot
snapshotVersionsList<Version>The version information about the projects associated with the snapshot

Versions have the following attributes:

AttributesTypeDescription
projectIdLongThe id of the project
buildEnvironmentId
projectVersionIdLongThe
build environment associated with
version id of the project
forceBuild
packageNameStringThe name of the package (used for partial deployment projects only)
requestAllFilesBooleanWhether or not the project
should be force built
was told to request all files
snapshotVersionStatusStringThe current status of the snapshot


Back to Top

...

POST

This POST service will create a new snapshot with the same attributes as the given JSON object.

Info
titleAPI URL

http://host:port/flexdeploy/rest/release/{releaseId}/snapshot

Parameters

StringList<Project>Boolean
AttributesTypeRequiredTypeDescription
releaseIdYesURLThe release to create a snapshot from
snapshotNameNoStringThe name of the snapshot is automatically generated at the time of creation
snapshotIdNoLongThe id of the snapshot is returned after being created
descriptionNodescriptionStringNoThe description of the snapshot
projectsList<Project>NoA list of projects associated with the snapshot
projectIdLongYesLongThe id of the project
packageNameStringYes*StringThe name of the package (used for partial deployment projects only)
projectVersionIdLongNoLongThe version id of the project to use instead of creating a new version
buildEnvironmentIdNoLongLongYesThe build environment associated with the project (used for projects with multiple build environments)
forceBuildBooleanNoWhether or not the project should be force built

*only if it's a partial deployment project

**only if the project has multiple build environments

Defaults

If some information is not included in the JSON object, the following default values will be used:

...

Code Block
themeEclipse
titlePOST JSON
{
	"snapshotId": 10005,
	"snapshotName": "07-09-2018 12:12:03",
	"description": "example snapshot creation",
	"projects": [
	{
		"projectId": 10000,
		"packageName": "package1",
		"projectVersionId": 10001,
		"forceBuildrequestAllFiles": false,
		"buildEnvironmentIdsnapshotVersionStatus": 20003"PENDING"
	},
	{
		"projectId": 10000,
		"packageName": "package2",
		"projectVersionId": null,
		"forceBuildrequestAllFiles": truefalse,
		"buildEnvironmentIdsnapshotVersionStatus": 20003"PENDING"
	},
	{
		"projectId": 10002,
		"packageName": null,
		"forceBuildprojectVersionId": falsenull,
		"projectVersionIdrequestAllFiles": nullfalse,
		"buildEnvironmentIdsnapshotVersionStatus": 10003"PENDING"
	}
}

Back to Top