Export Package
/mobile/tools/1.0/export/package
Creates a package with the specified assets.
Note that the simplest way to create the request body is to retrieve the package dependencies by sending a POST /mobile/tools/1.0/assets/packageDependencies request for a backend or custom API's asset ID, and then using the response body for the dependencies object in this request.
After the request completes successfully, use the downloadLink from the response body to get the package's ZIP file.
Request
- application/json
- If-Match
-
Type:
stringThe request completes successfully only if the ETag of the corresponding asset matches the value of this HTTP request header. To force overwrite, pass the value `*`.
objectRequest Body for Package Export- dependencies
-
Type:
objectdependenciesRequired:trueAdditional Properties Allowed:Information about the asset and its dependencies. - package
-
Type:
objectpackageRequired:trueAdditional Properties Allowed:The package's definition.
object- apis
-
Type:
arrayapiDependencyArrayAdditional Properties Allowed:Minimum Number of Items:0Unique Items Required:trueAn array of APIs as dependencies. - collections
-
Type:
arraycollectionDependencyArrayAdditional Properties Allowed:Minimum Number of Items:0Unique Items Required:trueAn array of storage collections as dependencies. - connectors
-
Type:
arrayconnectorDependencyArrayAdditional Properties Allowed:Minimum Number of Items:0Unique Items Required:trueAn array of connectors as dependencies. - implementations
-
Type:
arrayimplDependencyArrayAdditional Properties Allowed:Minimum Number of Items:0Unique Items Required:trueAn array of API implementations as dependencies. - mobilebackends
-
Type:
arraymbeDependencyArrayAdditional Properties Allowed:Minimum Number of Items:0Unique Items Required:trueAn array of backends as dependencies. - packages
-
Type:
arraypackageDependencyArrayAdditional Properties Allowed:Minimum Number of Items:0Unique Items Required:trueAn array of packages as dependencies. - roles
-
Type:
arrayroleArrayAdditional Properties Allowed:Minimum Number of Items:0Unique Items Required:trueAn array of role elements. - unresolvedDependencies
-
Type:
arrayunresolvedDependencyArrayAdditional Properties Allowed:Minimum Number of Items:0Unique Items Required:trueAn array of unresolved dependencies for a custom API implementation.
object- documentation
-
Type:
stringRequired:trueA description of the package or any type of useful information. - name
-
Type:
stringRequired:trueA name that identifies the package. Note that this name is used in the exported file name. - systemVersion
-
Type:
stringIndicates the version of the service that was used to create the package. - version
-
Type:
stringRequired:trueThe package version.
array0true-
Type:
objectapiDependencyAdditional Properties Allowed:API as a dependency.
array0true-
Type:
objectcollectionDependencyAdditional Properties Allowed:Storage collection as a dependency.
array0true-
Type:
objectconnectorDependencyAdditional Properties Allowed:Connector as a dependency.
array0true-
Type:
objectimplDependencyAdditional Properties Allowed:API implementation as a dependency.
array0true-
Type:
objectmbeDependencyAdditional Properties Allowed:Backend as a dependency.
array0true-
Type:
objectpackageDependencyAdditional Properties Allowed:Package as a dependency.
array0true-
Type:
objectunresolvedDependencyAdditional Properties Allowed:Unresolved dependency for the custom API implementation.
object-
Type:
objectapiShortAdditional Properties Allowed:The short API definition representation. -
Type:
objectapiDependency-allOf[1]Additional Properties Allowed:
object-
Type:
objectassetGetAdditional Properties Allowed:The asset representation for GET requests. -
Type:
objectapiShort-allOf[1]Additional Properties Allowed:
- implementation
-
Type:
objectassetShortAdditional Properties Allowed:Asset information (short form). - implementations
-
Type:
arrayassetShortQualifiedArrayAdditional Properties Allowed:Minimum Number of Items:0Unique Items Required:trueAn array of qualified assets. - mock
-
Type:
booleanTheRouting_BindAPIToMockenvironment policy that's defined for the API. When this value is true, the service resolves the API request to a mock service instead of the implementation that's bound to the API. This is returned only in the context of the backend. - roles
-
Type:
arrayroleArrayAdditional Properties Allowed:Minimum Number of Items:0Unique Items Required:trueAn array of role elements.
object-
Type:
objectassetUpdateAdditional Properties Allowed:The asset representation for PUT requests. -
Type:
objectassetIdEtagAdditional Properties Allowed:The asset ID and entity tag (ETag) values. -
Type:
objecttrashAdditional Properties Allowed:Indicator of whether the asset is in the trash. -
Type:
objectassetGet-allOf[3]Additional Properties Allowed:
- basePath
-
Type:
stringThe API base path in the format `/mobile/custom/{apiName}`. - hasBusinessObjects
-
Type:
booleanDefault Value:falseIndicates whether the API is associated with API Express resources (business objects). - icon
-
Type:
objecticonAdditional Properties Allowed:Information about the icon that's associated with the API or connector.
object- actionComment
-
Type:
string - desc
-
Type:
stringMaximum Length:100 - max
-
Type:
booleanDefault Value:false - name
-
Type:
stringRequired:trueMaximum Length:100Pattern:^[a-zA-Z][a-zA-Z0-9_]*$ - namespace
-
Type:
stringApplicable to APIs and implementations only. This value is null for all other asset types. - title
-
Type:
stringMaximum Length:255 - version
-
Type:
stringMaximum Length:100Pattern:^[a-zA-Z0-9][\w.]*$Asset version.
object- etag
-
Type:
stringThe asset entity tag (ETag) value, which you can use to detect concurrent modification. - id
-
Type:
stringRequired:true
- createdOn
-
Type:
string - deletedBy
-
Type:
string - deletedOn
-
Type:
string - links
-
Type:
arrayentityLinksArrayAdditional Properties Allowed:Minimum Number of Items:0An array of links for an entity's metadata. - modifiedBy
-
Type:
string - modifiedOn
-
Type:
string - published
-
Type:
booleanAn asset draft or published status representation.
object- href
-
Type:
stringRequired:trueLink value. - rel
-
Required:
trueAllowed Values:[ "self", "canonical" ]Link type.
object- id
-
Type:
stringRequired:true - url
-
Type:
stringRequired:true
object- id
-
Type:
stringAsset identifier. - name
-
Type:
stringAsset name. - namespace
-
Type:
stringAsset namespace. - version
-
Type:
stringMaximum Length:100Pattern:^[a-zA-Z0-9][\w.]*$Asset version.
array0true-
Type:
objectassetShortQualifiedAdditional Properties Allowed:An asset's information in qualified short form, which includes type and qualifiers.
object-
Type:
objectassetShortAdditional Properties Allowed:Asset information (short form). -
Type:
objectassetQualifiersAdditional Properties Allowed:Asset type name and qualifiers.
object- qualifier
-
Type:
stringThe asset qualifier. It may contain multiple values separated by commas (`,`). - type
-
Allowed Values:
[ "MobileBackend", "API", "APIImplementation", "Connector", "StorageCollection", "Role" ]
object-
Type:
objectmosCollectionGetAdditional Properties Allowed:The storage collection representation for GET requests. -
Type:
objectassetQualifiersAdditional Properties Allowed:Asset type name and qualifiers. -
Type:
objectcollectionDependency-allOf[2]Additional Properties Allowed:
object-
Type:
objectassetGetAdditional Properties Allowed:The asset representation for GET requests. -
Type:
objectmosCollectionGet-allOf[1]Additional Properties Allowed:
- roles
-
Type:
arrayroleArrayAdditional Properties Allowed:Minimum Number of Items:0Unique Items Required:trueAn array of role elements.
- guid
-
Type:
string - syncControl
-
Type:
boolean - userIsolated
-
Type:
boolean
object-
Type:
objectconnectorGetAdditional Properties Allowed:The connector representation for GET requests. -
Type:
objectassetQualifiersAdditional Properties Allowed:Asset type name and qualifiers. -
Type:
objectconnectorDependency-allOf[2]Additional Properties Allowed:
object-
Type:
objectconnectorShortAdditional Properties Allowed:The short connector definition representation. -
Type: connectorGet-allOf[1]Additional Properties Allowed:
- implementation
-
Type:
objectassetShortAdditional Properties Allowed:Asset information (short form).
object-
Type:
objectassetGetAdditional Properties Allowed:The asset representation for GET requests. -
Type:
objectconnectorBaseAdditional Properties Allowed:Base connector properties.
-
Type:
objectconnectorGetRestAdditional Properties Allowed:REST connector get payload. -
Type:
objectconnectorUpdateSoapAdditional Properties Allowed:SOAP connector update payload. -
Type:
objectconnectorUpdateDatabaseAdditional Properties Allowed:MOB DB connector update payload. -
Type:
objectconnectorUpdateIcsRestAdditional Properties Allowed:ICS REST connector update payload. -
Type:
objectconnectorUpdateIcsSoapAdditional Properties Allowed:ICS SOAP connector update payload.
object- basePath
-
Type:
stringThe connector API base path in the format `/mobile/connector/{name}/{path}`. - connectorType
-
Allowed Values:
[ "REST", "SOAP", "DATABASE", "ICS", "FA" ] - icon
-
Type:
objecticonAdditional Properties Allowed:Information about the icon that's associated with the API or connector.
object-
Type:
objectconnectorUpdateRestAdditional Properties Allowed:REST connector update payload. -
Type:
objectconnectorGetRest-allOf[1]Additional Properties Allowed:
object-
Type:
objectconnectorCreateSoapAdditional Properties Allowed:SOAP connector creation payload. -
Type:
objectconnectorUpdateSoap-allOf[1]Additional Properties Allowed:
object-
Type:
objectconnectorCreateDatabaseAdditional Properties Allowed:REST connector creation payload. -
Type:
objectconnectorUpdateDatabase-allOf[1]Additional Properties Allowed:
object-
Type:
objectconnectorUpdateRestAdditional Properties Allowed:REST connector update payload. -
Type:
objectconnectorUpdateIcsRest-allOf[1]Additional Properties Allowed:
object-
Type:
objectconnectorUpdateSoapAdditional Properties Allowed:SOAP connector update payload. -
Type:
objectconnectorUpdateIcsSoap-allOf[1]Additional Properties Allowed:
object- httpConnectionTimeout
-
Type:
integer(int64) - httpReadTimeout
-
Type:
integer(int64) - remoteURL
-
Type:
stringRequired:true - rules
-
Type:
arrayrestRuleArrayAdditional Properties Allowed:Minimum Number of Items:0An array of REST rules. - securityPolicies
-
Type:
arraysecurityPolicyArrayAdditional Properties Allowed:Minimum Number of Items:0An array of security policy elements. - workAreaTag
-
Type:
string
- descriptorInfo
-
Type:
objectconnectorDescriptorInfoAdditional Properties Allowed:Connector descriptor information.
array0-
Type:
objectsecurityPolicyAdditional Properties Allowed:Connector OWSM security policy.
object- defaultParameters
-
Type:
arraydefaultParametersAdditional Properties Allowed:Minimum Number of Items:0Unique Items Required:true - methods
-
Type:
arraymethodsAdditional Properties Allowed:Minimum Number of Items:0Unique Items Required:true - notAppliedToNested
-
Type:
boolean - resource
-
Type:
string
array0true-
Type:
objectrestParameterAdditional Properties Allowed:REST connector rule default parameter.
array0true-
Allowed Values:
[ "GET", "POST", "PUT", "DELETE", "HEAD", "TRACE", "OPTIONS", "PATCH" ]
object- name
-
Type:
string - type
-
Allowed Values:
[ "query", "header" ] - value
-
Type:
string
object- name
-
Type:
stringRequired:true - overrides
-
Type:
arraysecurityPolicyOverrideArrayAdditional Properties Allowed:Minimum Number of Items:0An array of security-policy override elements.
array0-
Type:
objectsecurityPolicyOverrideAdditional Properties Allowed:Security policy override property.
object- propertyName
-
Type:
stringRequired:true - value
-
Type:
stringRequired:true
object- descriptorLocation
-
Type:
string - descriptorSource
-
Required:
trueAllowed Values:[ "URL", "FILE", "NONE" ] - designTimeUserName
-
Type:
string - isDesignTimePasswordSaved
-
Type:
boolean
- httpConnectionTimeout
-
Type:
integer(int64) - httpReadTimeout
-
Type:
integer(int64) - operations
-
Type:
arrayoperationsAdditional Properties Allowed: - securityPolicies
-
Type:
arraysecurityPolicyArrayAdditional Properties Allowed:Minimum Number of Items:0An array of security policy elements. - svcEndpoint
-
Type:
stringRequired:true - svcName
-
Type:
stringRequired:true - svcPort
-
Type:
stringRequired:true
object- custom
-
Type:
stringThe custom name for the operation. - name
-
Type:
stringRequired:true - uri
-
Type:
stringRequired:trueThe URI for the SOAPAction HTTP request header.
object- databaseConnectorType
-
Required:
trueAllowed Values:[ "table", "customsql" ]
- dbConnectorMetadata
-
Type:
objectdbConnectorMetadataAdditional Properties Allowed:Database connector metadata model.
objectobject- allColumns
-
Type:
arrayallColumnsRequired:trueAdditional Properties Allowed:Minimum Number of Items:0 - primaryKeys
-
Type:
arrayprimaryKeysRequired:trueAdditional Properties Allowed:Minimum Number of Items:0 - requiredColumns
-
Type:
arrayrequiredColumnsRequired:trueAdditional Properties Allowed:Minimum Number of Items:0 - selectedColumns
-
Type:
arrayselectedColumnsRequired:trueAdditional Properties Allowed:Minimum Number of Items:0 - tableNameInfo
-
Type:
objecttableNameInfoRequired:trueAdditional Properties Allowed:Database connector table/view name/type metadata.
object- databaseTableName
-
Type:
stringRequired:trueThe true name of the database table, which might not be a legal JSON name. - tableName
-
Type:
stringRequired:trueThe name of the table in JSON or URL. - tableType
-
Type:
stringRequired:trueIndicates whether the table is a table, view, or synonym.
- ics
-
Type:
objecticsConnectionReferenceAdditional Properties Allowed:ICS configuration. This holds state about an ICS instance that should persist across connector sessions. - integration
-
Type:
objectintegrationAdditional Properties Allowed:ICS integration flow metadata.
object- connectionName
-
Type:
stringThe name of this logical construct describing connectivity to a particular ICS instance. - runtimeCsfKey
-
Type:
stringThe default CSF key entry to suggest using when reaching the ICS Security page (the one chosen/created last time). - serviceURL
-
Type:
stringRequired:trueThe service URL to ICS (that is, `https:///ics`).
object- builtBy
-
Type:
stringThe author of the integration. - created
-
Type:
stringWhen this integration was created. - description
-
Type:
stringThe description of the ICS integration. - icon
-
Type:
stringURL of the icon for the target. - integrationName
-
Type:
stringRequired:trueThe name of the ICS integration. - remoteUrl
-
Type:
stringThe URL used to create the connector (remote URL or WSDL). - securityPolicy
-
Type:
stringThe WSS security policy to use to talk to this endpoint. That is, `oracle/http_basic_auth_over_ssl_client_policy`. Note that this value isn't shown on the discovery page in the connector UI. - targetService
-
Type:
stringThe type of system being exposed in ICS. - technology
-
Allowed Values:
[ "SOAP", "REST" ] - updated
-
Type:
stringWhen this integration was updated. - version
-
Type:
stringThe version in ICS.
- ics
-
Type:
objecticsConnectionReferenceAdditional Properties Allowed:ICS configuration. This holds state about an ICS instance that should persist across connector sessions. - integration
-
Type:
objectintegrationAdditional Properties Allowed:ICS integration flow metadata.
object-
Type:
objectapiImplementationGetAdditional Properties Allowed:The API implementation service details. -
Type:
objectassetQualifiersAdditional Properties Allowed:Asset type name and qualifiers. -
Type:
objectimplDependency-allOf[2]Additional Properties Allowed:
object-
Type:
objectassetGetAdditional Properties Allowed:The asset representation for GET requests. -
Type:
objectapiImplementationGet-allOf[1]Additional Properties Allowed:
- api
-
Type:
objectassetShortQualifiedAdditional Properties Allowed:An asset's information in qualified short form, which includes type and qualifiers. - uses
-
Type:
arrayassetShortQualifiedArrayAdditional Properties Allowed:Minimum Number of Items:0Unique Items Required:trueAn array of qualified assets.
- api
-
Type:
objectassetShortQualifiedAdditional Properties Allowed:An asset's information in qualified short form, which includes type and qualifiers. - artifacts
-
Type:
arrayartifactArrayAdditional Properties Allowed:Minimum Number of Items:0An array of artifact information.
object- downloadLink
-
Type:
stringThe link to download the artifact. - id
-
Type:
stringRequired:trueThe artifact's ID. - name
-
Type:
stringRequired:trueMaximum Length:255The name of the artifact. - properties
-
Type:
objectpropertiesAdditional Properties Allowed:{ "type":"string" }
object-
Type:
objectmobilebackendGetAdditional Properties Allowed:The backend representation for GET requests. -
Type:
objectassetQualifiersAdditional Properties Allowed:Asset type name and qualifiers. -
Type:
objectmbeDependency-allOf[2]Additional Properties Allowed:
object-
Type:
objectmobilebackendShortGetAdditional Properties Allowed:The backend representation for GET requests. -
Type:
objectmobilebackendGet-allOf[1]Additional Properties Allowed:
- includes
-
Type:
arrayassetShortQualifiedArrayAdditional Properties Allowed:Minimum Number of Items:0Unique Items Required:trueAn array of qualified assets. - roles
-
Type:
arrayroleArrayAdditional Properties Allowed:Minimum Number of Items:0Unique Items Required:trueAn array of role elements.
object-
Type:
objectassetGetAdditional Properties Allowed:The asset representation for GET requests. -
Type:
objectmobilebackendOAuthKeysAdditional Properties Allowed:The client keys (client_id/client_secret) that are required for backend access using OAuth. -
Type:
objectmobilebackendBasicAuthKeysAdditional Properties Allowed:The mobile backend ID that's required for backend access when you use Basic access authorization. -
Type:
objectmobilebackendShortGet-allOf[3]Additional Properties Allowed:
- analyticsAppGuid
-
Type:
stringAnalytics application ID resolved from the policy. If a new analytics application creation was requested on the backend creation and this attribute is null, then the application wasn't created. In this case you can check if it already exists, retry, or create one with another name and/or timezone, and then link it to the backend. - targetBackend
-
Type:
objectassetShortAdditional Properties Allowed:Asset information (short form). - targetBackendError
-
Type:
objectlocalizedMessageAdditional Properties Allowed:Localized error message for generic purposes.
object- clientID
-
Type:
stringRequired:true - clientSecret
-
Type:
stringRequired:true - sso
-
Type:
boolean
object- basicAuthBackendId
-
Type:
stringRequired:true
- basic
-
Type:
boolean - inactive
-
Type:
boolean - oauth
-
Type:
boolean - roleAccess
-
Type:
objectmobilebackendRoleAccessAdditional Properties Allowed:The backend's role-access details.
object- enabled
-
Type:
boolean - roles
-
Type:
arraystringArrayAdditional Properties Allowed:Minimum Number of Items:0An array of string values.
object- message
-
Type:
stringRequired:true - messageId
-
Type:
string - params
-
Type:
arrayparamsAdditional Properties Allowed:Minimum Number of Items:0
object-
Type:
objectpackageGetAdditional Properties Allowed:The package representation for GET requests. -
Type:
objectassetQualifiersAdditional Properties Allowed:Asset type name and qualifiers.
object-
Type:
objectassetGetAdditional Properties Allowed:The asset representation for GET requests. -
Type:
objectpackageGet-allOf[1]Additional Properties Allowed:
- documentation
-
Type:
boolean - packageType
-
Allowed Values:
[ "EXPORT", "IMPORT" ] - systemVersion
-
Type:
string
object- name
-
Type:
stringThe name of the custom API or connector. - version
-
Type:
stringThe version of the custom API or connector.
Response
- application/json
object- downloadLink
-
Type:
stringThe link to download the artifact. - id
-
Type:
stringRequired:trueThe artifact's ID. - name
-
Type:
stringRequired:trueMaximum Length:255The name of the artifact. - properties
-
Type:
objectpropertiesAdditional Properties Allowed:{ "type":"string" }
object- detail
-
Type:
stringRequired:trueMessage that provides the error details. - o:ecid
-
Type:
stringRequired:trueExecution context ID, which is a unique identifier to correlate events or requests that are associated with the same transaction across several components. - o:errorCode
-
Type:
stringRequired:trueThe service's error code. - o:errorDetails
-
Type:
objecterrorDetailsAdditional Properties Allowed: - o:errorPath
-
Type:
stringRequired:trueThe relative point in the API path where the error occurred. - status
-
Type:
integer(int64)Required:trueHTTP status code. See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html for more details. - title
-
Type:
stringRequired:trueSummary of the problem. - type
-
Type:
stringRequired:trueThe URI to the link that provides details about the HTTP status code.
object- detail
-
Type:
stringRequired:true - o:errorDetails
-
Type:
objecterrorDetailsAdditional Properties Allowed: - title
-
Type:
stringRequired:trueSummary of the problem. - type
-
Type:
stringRequired:trueThe URI to the link that provides details about the HTTP status code.
object- detail
-
Type:
stringRequired:trueMessage that provides the error details. - o:ecid
-
Type:
stringRequired:trueExecution context ID, which is a unique identifier to correlate events or requests that are associated with the same transaction across several components. - o:errorCode
-
Type:
stringRequired:trueThe service's error code. - o:errorDetails
-
Type:
objecterrorDetailsAdditional Properties Allowed: - o:errorPath
-
Type:
stringRequired:trueThe relative point in the API path where the error occurred. - status
-
Type:
integer(int64)Required:trueHTTP status code. See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html for more details. - title
-
Type:
stringRequired:trueSummary of the problem. - type
-
Type:
stringRequired:trueThe URI to the link that provides details about the HTTP status code.
object- detail
-
Type:
stringRequired:true - o:errorDetails
-
Type:
objecterrorDetailsAdditional Properties Allowed: - title
-
Type:
stringRequired:trueSummary of the problem. - type
-
Type:
stringRequired:trueThe URI to the link that provides details about the HTTP status code.
Examples
The following example shows how to create and export a package using cURL. For more information about cURL, see Use cURL.
curl -i -X POST -d @body.json -H "Content-Type: application/json; charset=utf-8" -H "Authorization: Bearer $TOKEN" "$BASE_URL/mobile/tools/1.0/export/package"
Example of Request Body
The following shows an example of the request body. Note that the contents of the dependencies object was copied from the response body that was returned by a POST /mobile/tools/1.0/assets/packageDependencies request using the backend???s ID.
{
"package":{
"name":"salesPlusPackage",
"version":"1.0",
"documentation":"Using Export Package REST API"
},
"dependencies":{
"mobilebackends":[
{
"id":"1f7eee54-5f6d-4123-b4b7-5413912510ce",
"name":"mcs_examples_sync_salesplus",
"version":"1.0",
"qualifier":"self",
"desc":"MBE for the SalesPlus app which demonstrates several of the MCS Sync Client SDK features.",
"links":[
...
],
"published":false,
"inTrash":false,
"actionComment":null,
"etag":"2",
"createdOn":"2016-09-13T03:20:24.878Z",
"modifiedOn":"2017-07-11T20:10:42.348Z",
"modifiedBy":"jdoe",
"deletedOn":null,
"deletedBy":null,
"clientId":"3c78fddef1244ab8bad1b2c20b8e7a15",
"clientSecret":"7711932a-7288-4b65-9e8e-0b486f6aaf72",
"basicAuthBackendId":"faf550b1-24f0-4b40-9c58-6751e7047b22",
"oauth":true,
"basicAuth":true,
"inactive":false,
"roleAccess":{
"enabled":false,
"roles":[
]
},
"includes":[
{
"id":"f9da3b1f-cfa8-439e-be80-819a4455a24c",
"name":"mcs_examples_sync_salesplus",
"version":"1.0",
"type":"API"
},
{
"id":"4566a5a1-1981-475f-8a70-053f0a409bcf",
"name":"images",
"version":"1.0",
"type":"StorageCollection"
}
],
"roles":[
]
}
],
"apis":[
{
"id":"f9da3b1f-cfa8-439e-be80-819a4455a24c",
"namespace":"custom",
"name":"mcs_examples_sync_salesplus",
"version":"1.0",
"qualifier":"implements",
"desc":"Supports the SalesPlus app which demonstrates several of the MCS Sync Client SDK features.",
"links":[
...
],
"published":false,
"inTrash":false,
"actionComment":null,
"etag":"1",
"createdOn":"2016-09-13T03:08:21.030Z",
"modifiedOn":"2016-12-21T16:52:17.155Z",
"modifiedBy":"jdoe",
"deletedOn":null,
"deletedBy":null,
"title":"REST API for the SalesPlus App",
"basePath":"/mobile/custom/mcs_examples_sync_salesplus",
"icon":null,
"category":"CUSTOM",
"hasBusinessObjects":false,
"mock":false,
"implementations":[
{
"id":"1138d50b-cd03-42dc-8d2b-7e2c28e613dc",
"name":"mcs_examples_sync_salesplus",
"version":"1.0.0",
"type":"APIImplementation"
}
],
"implementation":{
"id":"1138d50b-cd03-42dc-8d2b-7e2c28e613dc",
"name":"mcs_examples_sync_salesplus",
"version":"1.0.0"
},
"roles":[
]
}
],
"implementations":[
{
"id":"1138d50b-cd03-42dc-8d2b-7e2c28e613dc",
"name":"mcs_examples_sync_salesplus",
"version":"1.0.0",
"desc":"Custom API for MCS SalesPlus example app",
"links":[
...
],
"published":false,
"inTrash":false,
"actionComment":null,
"etag":"1",
"createdOn":"2016-09-15T04:05:33.880Z",
"modifiedOn":"2016-12-21T17:16:25.640Z",
"modifiedBy":"jdoe",
"deletedOn":null,
"deletedBy":null,
"artifacts":[
{
"name":"impl 2.zip",
"id":"c0bd8762-9f66-4233-bd9b-c91831d902cf",
"properties":{
"customcode.api.implementation.artifact":"true"
},
"downloadLink":"/mobile/tools/1.0/artifacts/c0bd8762-9f66-4233-bd9b-c91831d902cf"
}
],
"api":{
"id":"f9da3b1f-cfa8-439e-be80-819a4455a24c",
"namespace":"custom",
"name":"mcs_examples_sync_salesplus",
"version":"1.0",
"type":"API"
},
"uses":[
]
}
],
"connectors":[
],
"collections":[
{
"id":"4566a5a1-1981-475f-8a70-053f0a409bcf",
"name":"images",
"version":"1.0",
"desc":"Customer and technician photos",
"links":[
...
],
"published":false,
"inTrash":false,
"actionComment":null,
"etag":"5",
"createdOn":"2017-07-11T20:10:41.563Z",
"modifiedOn":"2017-07-11T20:37:49.911Z",
"modifiedBy":"jdoe",
"deletedOn":null,
"deletedBy":null,
"userIsolated":false,
"syncControl":true,
"guid":"OW2V7PVFUNAZDDQLLFFUVA24PQ",
"roles":[
{
"id":"fd42ebc04bff72fdd9adf34fd3732c12",
"name":"manager",
"version":"1.0",
"desc":null,
"links":[
],
"published":true,
"inTrash":false,
"actionComment":null,
"etag":"1",
"createdOn":null,
"modifiedOn":null,
"modifiedBy":null,
"deletedOn":null,
"deletedBy":null
},
{
"id":"fd11a5739507b3bb2a371b45b0eda6c7",
"name":"customer",
"version":"1.0",
"desc":null,
"links":[
],
"published":true,
"inTrash":false,
"actionComment":null,
"etag":"1",
"createdOn":null,
"modifiedOn":null,
"modifiedBy":null,
"deletedOn":null,
"deletedBy":null
}
]
}
],
"unresolvedDependencies":[
],
"roles":[
{
"id":"fd11a5739507b3bb2a371b45b0eda6c7",
"name":"customer",
"version":"1.0",
"desc":null,
"links":[
...
],
"published":true,
"inTrash":false,
"actionComment":null,
"etag":"1",
"createdOn":null,
"modifiedOn":null,
"modifiedBy":null,
"deletedOn":null,
"deletedBy":null
},
{
"id":"fd42ebc04bff72fdd9adf34fd3732c12",
"name":"manager",
"version":"1.0",
"desc":null,
"links":[
...
],
"published":true,
"inTrash":false,
"actionComment":null,
"etag":"1",
"createdOn":null,
"modifiedOn":null,
"modifiedBy":null,
"deletedOn":null,
"deletedBy":null
}
],
"packages":[
],
"clients":[
],
"policies":[
{
"name":"*.custom/mcs_examples_sync_salesplus(1.0).Routing_BindApiToImpl",
"value":"mcs_examples_sync_salesplus(1.0.0)",
"desc":null
}
]
}
}
Example of Response Header
The following shows an example of the response headers:
200 OK Content-Length: 200 Content-Type: application/json Date: Wed, 28 Jun 2017 20:00:11 GMT
Example of Response Body
The following example shows the contents of the response body in JSON format:
{
"name": "package-salesPlusPackage.zip",
"id": "13f8f425-0e8a-4e46-a4d1-f0ee37aa552e",
"properties": {
"is.package": "true"
},
"downloadLink": "/mobile/tools/1.0/artifacts/13f8f425-0e8a-4e46-a4d1-f0ee37aa552e"
}