Project Properties can be accessed and modified through this API using three services: GET,PUT, and PATCH. These three services allow for the retrieval, complete update, and partial update of Project Properties.
...
If we had a Project in our database with an Id of 11101 and we run a GET request at the following URL: http://host:port/flexdeploy/rest/project/11101
The GET request would return the following JSON Project Property list
Code Block |
---|
theme | Eclipse |
---|
title | Project 11101 Properties GET Return JSON |
---|
|
[
{
"propertyName": "FD_PARTIAL_FILE_EXCLUDES",
"propertyValue": "java",
"credentialId": null
},
{
"propertyName": "FD_PARTIAL_FILE_INCLUDES",
"propertyValue": "sql",
"credentialId": null
},
{
"propertyName": "FDJDBC_IGNOREOTHER_COMROOT_ERRTARGET_EXT_DEFFOLDER",
"propertyValue": null"/other_root_target_folder",
"credentialId": null
},
{
"propertyName": "FDJDBC_IGNOREPROPERTY_FAILUREREPLACEMENT_EXT_DEFDEFAULT",
"propertyValue": null"true",
"credentialId": null
},
{
"propertyName": "FDJDBC_OTHERRETRY_ROOTCOUNT_TARGET_FOLDERDEFAULT",
"propertyValue": "/other_root_target_folder"5,
"credentialId": null
},
{
"propertyName": "FDJDBC_PROPERTYSQL_REPLACEMENT_DEFAULTEXTENSIONS",
"propertyValue": "trueseq,tbl,idx,typ,tps,tpb,sql,pkh,plb,pks,pkb,pls,pck,fnc,trg,spc,bdy,prc",
"credentialId": null
},
{
"propertyName": "FDJDBC_SQL_RETRYROOT_COUNTTARGET_DEFAULTFOLDER",
"propertyValue": 5"/sql",
"credentialId": null
},
{
"propertyName": "FDJDBCJDBC_SQLALTERNATE_SCHEMA_EXTENSIONSPASS",
"propertyValue": "seq,tbl,idx,typ,tps,tpb,sql,pkh,plb,pks,pkb,pls,pck,fnc,trg,spc,bdy,prc",
*****",
"credentialId": null49384
},
{
"propertyName": "FDJDBC_SQL_ROOT_TARGET_FOLDER",
"propertyValue": "/sql",
"credentialId": null
},
{
"propertyName": "JDBC_ALTERNATE_SCHEMA_PASS",
"propertyValue": "*****",
"credentialId": 49384
}
] |
PUT
This PUT service will update the propertyValue of each property in the project associated with the Project id specified in the URL.
Info |
---|
|
http://host:port/flexdeploy/rest/v1/project/{projectid}/property |
Request
projectid | URL | Yes | This is the Id of the Project which will have it'PUT
This PUT service will update the propertyValue of each property in the project associated with the Project id specified in the URL.
Info |
---|
|
http://host:port/flexdeploy/rest/v1/project/{projectid}/property |
Request
PropertyValuePojo
Attributes | Type | Required | Description |
---|
propertyName | String | Yes | This is the key name of the property |
propertyValue | String | No | This is the value that the property with the associated propertyName will be updated to |
credentialId | Long | No | The id of the credential associated to this property. Applicable only for encrypted properties |
Tip |
---|
All unlisted properties for the project will default to null for PUT requests. |
Response Codes
200 | Project was found and its Properties were updated |
400 | Bad request |
401 | Authentication failure |
403 | Authorization failure (no access to resource) |
404 | Project not found |
500 | Unexpected internal server error |
Example
...
Code Block |
---|
theme | Eclipse |
---|
title | Sample PUT JSON Request |
---|
|
[
{
"propertyName": "FD_PARTIAL_FILE_EXCLUDES",
"propertyValue": "java",
"credentialId": null
},
{
"propertyName": "FD_PARTIAL_FILE_INCLUDES",
"propertyValue": "",
"credentialId": null
},
{
"propertyName": "FDJDBC_IGNOREOTHER_COMROOT_ERRTARGET_EXT_DEFFOLDER",
"propertyValue": null"/other_root_target_folder",
"credentialId": null
},
{
"propertyName": "FDJDBC_IGNOREPROPERTY_FAILUREREPLACEMENT_EXT_DEFDEFAULT",
"propertyValue": null"true",
"credentialId": null
},
{
"propertyName": "FDJDBC_OTHERRETRY_ROOTCOUNT_TARGET_FOLDERDEFAULT",
"propertyValue": "/other_root_target_folder"5,
"credentialId": null
},
{
"propertyName": "FDJDBC_PROPERTYSQL_REPLACEMENT_DEFAULTEXTENSIONS",
"propertyValue": "true",
"credentialId": null
},seq,tbl,idx,typ,tps,tpb,sql,pkh,plb,pks,pkb,pls,pck,fnc,trg,spc,bdy,prc",
"credentialId": null
},
{
"propertyName": "FDJDBC_SQL_RETRYROOT_COUNTTARGET_DEFAULTFOLDER",
"propertyValue": 5"/sql",
"credentialId": null
},
{
"propertyName": "FDJDBCJDBC_ALTERNATE_SQLSCHEMA_EXTENSIONSPASS",
"propertyValue": "seq,tbl,idx,typ,tps,tpb,sql,pkh,plb,pks,pkb,pls,pck,fnc,trg,spc,bdy,prc",
*****",
"credentialId": null49384
}
] |
When we run a PUT request at the following URL: http://host:port/flexdeploy/rest/project/25262
And the PUT request receives the following JSON Project Properties list
Code Block |
---|
theme | Eclipse |
---|
title | Project 25262 Property PUT Receive JSON |
---|
|
[
}, {
{ "propertyName": "FDJDBCFD_SQLPARTIAL_ROOTFILE_TARGET_FOLDEREXCLUDES",
"propertyValue": "/sqljava",
"credentialId": null
},
{
{
"propertyName": "JDBCFD_ALTERNATEPARTIAL_SCHEMAFILE_PASSINCLUDES",
"propertyValue": "*****sql",
"credentialId": 49384null
}
] |
When we run a PUT request at the following URL: http://host:port/flexdeploy/rest/project/25262
And the PUT request receives the following JSON Project Properties list
Code Block |
---|
theme | Eclipse |
---|
title | Project 25262 Property PUT Receive JSON |
---|
|
[ },
{
"propertyName": "FDFDJDBC_OTHER_PARTIALROOT_FILETARGET_EXCLUDESFOLDER",
"propertyValue": "java",
"credentialId": null
},
{
"propertyName": "FDFDJDBC_PARTIALPROPERTY_FILEREPLACEMENT_INCLUDESDEFAULT",
"propertyValue": "sqltrue",
"credentialId": null
},
{
"propertyName": "FDJDBC_IGNORERETRY_COM_ERR_EXT_DEFCOUNT_DEFAULT",
"propertyValue": null5,
"credentialId": null
},
{
"propertyName": "FDJDBC_IGNORE_FAILURE_EXT_DEFSQL_EXTENSIONS",
"propertyValue": null"seq,tbl,idx,typ,tps,tpb,sql,pkh,plb,pks,pkb,pls,pck,fnc,trg,spc,bdy,prc",
"credentialId": null
},
{
"propertyName": "FDJDBCJDBC_OTHERALTERNATE_ROOTSCHEMA_TARGET_FOLDERPASS",
"propertyValue": "",
"credentialId": null
},
{
71422
}
] |
The PUT request would then update the Project Properties of the Project with Id 25262 and return the following JSON Project Properties list.
Code Block |
---|
theme | Eclipse |
---|
title | Project Properties PUT Return JSON |
---|
|
[
{
"propertyName": "FDJDBCFD_PROPERTYPARTIAL_REPLACEMENTFILE_DEFAULTEXCLUDES",
"propertyValue": "truejava",
"credentialId": null
},
{
"propertyName": "FDJDBCFD_RETRYPARTIAL_COUNTFILE_DEFAULTINCLUDES",
"propertyValue": 5"sql",
"credentialId": null
},
{
"propertyName": "FDJDBC_SQL_EXTENSIONS"OTHER_ROOT_TARGET_FOLDER",
"propertyValue": "seq,tbl,idx,typ,tps,tpb,sql,pkh,plb,pks,pkb,pls,pck,fnc,trg,spc,bdy,prc",null,
"credentialId": null
},
{
{
"propertyName": "JDBCFDJDBC_ALTERNATEPROPERTY_SCHEMAREPLACEMENT_PASSDEFAULT",
"propertyValue": "",
"credentialId": 71422
}
] |
The PUT request would then update the Project Properties of the Project with Id 25262 and return the following JSON Project Properties list.
Code Block |
---|
theme | Eclipse |
---|
title | Project Properties PUT Return JSON |
---|
|
[ "propertyValue": "true",
{ "credentialId": null
},
"propertyName": "FD_PARTIAL_FILE_EXCLUDES {
"propertyName": "FDJDBC_RETRY_COUNT_DEFAULT",
"propertyValue": "java"5,
"credentialId": null
},
{
"propertyName": "FDFDJDBC_PARTIALSQL_FILE_INCLUDESEXTENSIONS",
"propertyValue": "seq,tbl,idx,typ,tps,tpb,sql,pkh,plb,pks,pkb,pls,pck,fnc,trg,spc,bdy,prc",
"credentialId": null
},
{
"propertyName": "FDJDBC_IGNORESQL_COMROOT_ERRTARGET_EXT_DEFFOLDER",
"propertyValue": null,
"credentialId": null
},
{
"propertyName": "FDJDBCJDBC_IGNOREALTERNATE_FAILURESCHEMA_EXT_DEFPASS",
"propertyValue": null,
"*****",
"credentialId": null
},
{
"propertyName": "FDJDBC_OTHER_ROOT_TARGET_FOLDER",
"propertyValue": null,
"credentialId": null
},
{
"propertyName": "FDJDBC_PROPERTY_REPLACEMENT_DEFAULT",
"propertyValue": "true",
"credentialId": null
},
{
"propertyName": "FDJDBC_RETRY_COUNT_DEFAULT",
"propertyValue": 5,
"credentialId": null
},
{
"propertyName": "FDJDBC_SQL_EXTENSIONS",
"propertyValue": "seq,tbl,idx,typ,tps,tpb,sql,pkh,plb,pks,pkb,pls,pck,fnc,trg,spc,bdy,prc",
"credentialId": null
},
{
"propertyName": "FDJDBC_SQL_ROOT_TARGET_FOLDER",
"propertyValue": null,
"credentialId": null
},
{
"propertyName": "JDBC_ALTERNATE_SCHEMA_PASS",
"propertyValue": "*****",
"credentialId": 71422
}
] |
PATCH
This PATCH service will update an existing Project's Properties with the information passed through a JSON object. If a property is not listed it will not be updated in the Project.
Info |
---|
|
http://host:port/flexdeploy/rest/v1/project/{projectid}/property |
Request
...
PropertyValuePojo
...
Response Codes
...
...
...
Example
If we had a Project in our database with an Id of 12723 and had the following attributes
...
theme | Eclipse |
---|
title | Project Properties PATCH JSON |
---|
...
PATCH
This PATCH service will update an existing Project's Properties with the information passed through a JSON object. If a property is not listed it will not be updated in the Project.
Info |
---|
|
http://host:port/flexdeploy/rest/v1/project/{projectid}/property |
Request
PropertyValuePojo
Attributes | Type | Required | Description |
---|
propertyName | String | Yes | This is the key name of the property |
propertyValue | String | No | This is the value that the property with the associated propertyName will be updated to |
credentialId | Long | No | The id of the credential associated to this property. Applicable only for encrypted properties |
Include Page |
---|
| REST V1 Project Properties Response |
---|
| REST V1 Project Properties Response |
---|
|
Response Codes
200 | Project was found and its Properties were updated |
400 | Bad request |
401 | Authentication failure |
403 | Authorization failure (no access to resource) |
404 | Project not found |
500 | Unexpected internal server error |
Example
If we had a Project in our database with an Id of 12723 and had the following attributes
Code Block |
---|
theme | Eclipse |
---|
title | Project Properties PATCH JSON |
---|
|
[
{
"propertyName": "FDJDBCFD_PROPERTYPARTIAL_REPLACEMENTFILE_DEFAULTEXCLUDES",
"propertyValue": "truejava",
"credentialId": null
},
{
"propertyName": "FDJDBCFD_RETRYPARTIAL_COUNTFILE_DEFAULTINCLUDES",
"propertyValue": 5"sql",
"credentialId": null
},
{
"propertyName": "FDJDBC_SQL_EXTENSIONSOTHER_ROOT_TARGET_FOLDER",
"propertyValue": "seq,tbl,idx,typ,tps,tpb,sql,pkh,plb,pks,pkb,pls,pck,fnc,trg,spc,bdy,prc"null,
"credentialId": null
},
{
"propertyName": "FDJDBC_SQLPROPERTY_ROOTREPLACEMENT_TARGET_FOLDERDEFAULT",
"propertyValue": null"true",
"credentialId": null
},
{
{
"propertyName": "JDBCFDJDBC_ALTERNATERETRY_SCHEMACOUNT_PASSDEFAULT",
"propertyValue": "*****",
5,
"credentialId": 71422null
}
] |
When we run a PATCH request at the following URL: http://host:port/flexdeploy/rest/project/12723
And the PATCH request receives the following JSON Project Properties object,
Code Block |
---|
theme | Eclipse |
---|
title | Project PATCH Receive JSON |
---|
|
[ },
{
"propertyName": "FDFDJDBC_PARTIAL_FILE_EXCLUDES",
"propertyValue": "java"SQL_EXTENSIONS",
"propertyValue": "seq,tbl,idx,typ,tps,tpb,sql,pkh,plb,pks,pkb,pls,pck,fnc,trg,spc,bdy,prc",
"credentialId": null
},
{
"propertyName": "FDJDBC_SQL_ROOT_TARGET_FOLDER",
"propertyValue": "/targetfolder"null,
"credentialId": null
},
{
"propertyName": "JDBC_ALTERNATE_SCHEMA_PASS",
"propertyValue": "*****",
"credentialId": 8085571422
}
] |
The PATCH request would then update the specified Project's Properties and return the following JSON objectWhen we run a PATCH request at the following URL: http://host:port/flexdeploy/rest/project/12723
And the PATCH request receives the following JSON Project Properties object,
Code Block |
---|
theme | Eclipse |
---|
title | Project Properties PATCH Return Receive JSON |
---|
|
[
{
"propertyName": "FD_PARTIAL_FILE_EXCLUDES",
"propertyValue": "java",
"credentialId": null
},
{
"propertyName": "FDFDJDBC_SQL_PARTIALROOT_FILETARGET_INCLUDESFOLDER",
"propertyValue": "sql/targetfolder",
"credentialId": null
},
{
"propertyName": "JDBC_ALTERNATE_SCHEMA_PASS",
"propertyValue": "",
"credentialId": 80855
}
},] |
The PATCH request would then update the specified Project's Properties and return the following JSON object
Code Block |
---|
theme | Eclipse |
---|
title | Project Properties PATCH Return JSON |
---|
|
[
{
"propertyName": "FDJDBCFD_IGNOREPARTIAL_COM_ERR_EXT_DEFFILE_EXCLUDES",
"propertyValue": null"java",
"credentialId": null
},
{
"propertyName": "FDJDBCFD_IGNOREPARTIAL_FAILUREFILE_EXT_DEFINCLUDES",
"propertyValue": null"sql",
"credentialId": null
},
{
"propertyName": "FDJDBC_OTHER_ROOT_TARGET_FOLDER",
"propertyValue": null,
"credentialId": null
},
{
"propertyName": "FDJDBC_PROPERTY_REPLACEMENT_DEFAULT",
"propertyValue": "true",
"credentialId": null
},
{
"propertyName": "FDJDBC_RETRY_COUNT_DEFAULT",
"propertyValue": 5,
"credentialId": null
},
{
"propertyName": "FDJDBC_SQL_EXTENSIONS",
"propertyValue": "seq,tbl,idx,typ,tps,tpb,sql,pkh,plb,pks,pkb,pls,pck,fnc,trg,spc,bdy,prc",
"credentialId": null
},
{
"propertyName": "FDJDBC_SQL_ROOT_TARGET_FOLDER",
"propertyValue": "/targetfolder",
"credentialId": null
},
{
"propertyName": "JDBC_ALTERNATE_SCHEMA_PASS",
"propertyValue": "*****",
"credentialId": 80855
}
] |