Try OpenEdge Now
skip to main content
Administration Guide
REST API Reference for oemanager.war : Transport management : Deploy a new service (REST)
 

Deploy a new service (REST)

Description

Deploy a new REST service in a WebApp deployed in an ABL application.

HTTP Operation

POST

URI

//host_name:port/oemanager/applications/ABL_app_name/webapps
/Web_app_name/transports/rest/oeservices/

Media type

application/vnd.progress.paar+zip

Content disposition

attachment; filename={ AppNewService.paar | AppNewService.zip }

Response codes

200 Success
500 Unexpected Server Error

Command-line example

curl -X POST -v
http://localhost:16680/oemanager/applications/pas1/webapps/ROOT/transports/rest/oeservices
-data-binary @PingService1.paar
-H "Accept: application/vnd.progress+json"
-H "Content-Type:application/vnd.progress.paar+zip"
-H "Content-Disposition: attachment; filename=PingService1.paar"

Request body example

application/vnd.progress.paar+zip

Response body example

{
"result": {
"OERestServiceDesc": [
{
"archiveLocation": "WEB-INF/adapters/rest/PingService1/PingService1.paar",
"archiveName": "PingService1.paar",
"accessUrl": "/rest/PingService1",
"oetype": "REST_DESCRIPTOR",
"version": "11.5.0",
"description": "PAS OpenEdge REST Service Descriptor",
"name": "PingService1",
"type": "OPENEDGE",
"uri": "http://localhost:16680/rest/PingService1"
}
]
},
"operation": "DEPLOY REST TRANSPORT DESCRIPTOR",
"versionStr": "PASOE 11.5.0",
"versionNo": 1,
"outcome": "SUCCESS",
"errmsg"