To create an OpenEdge project specialized for REST Web application development:
-
Select from the Progress Developer Studio for OpenEdge main menu bar or
the Project Explorer view context (right-click) menu. The New OpenEdge Project
wizard opens and displays the Create an OpenEdge Project page.
-
Type a name in the Project name
field.
The root folder for the new project is created in your current
Eclipse workspace, unless you specify a different location.
-
To choose a different location for the project, click and clear
the Use default check box. Then either browse to, or
enter the path to the desired location.
-
Select Server from the left section.
-
Select Classic option button to select the server type
that you want to deploy the application to.
-
Select REST as the transport.
-
Click Next. The Select AVM and layout options
page appears.
-
Specify the OpenEdge AVM options and the project layout options (or leave the default
settings) and click Next. The Define AppServer
content module page appears.
-
In the AppServer source folder field, enter a name of
the AppServer module content directory.
Note: The default is a folder named AppServer, which will be created
as a child of the project folder if you select the Use project
root directory for source and r-code check box in step 6. If
you select the Use separate source and r-code
directories option, the folder will be a child of whatever
you specified in the Source directory field.
-
From the Supported servers list, select the servers that will be the
destination for your published web objects. The primary function of these
servers is to support publishing your code for running, testing, and deploying
your REST service. For example, select restbroker1 from
the list to publish your REST service.
-
Select the Create a REST service to define a default REST service
and associate it to an OE Web Server instance. The default name of the REST
service is the REST project name and Service appended to it. For example,
<projectname>Service. You can specify a different name in the
Service name field and a relative URI in the
Service relative URI field.
-
Click Next. The Define PROPATH page appears.
-
Leave the default settings or modify the PROPATH entries to be used by the project and
click Next. The Select database
connections page appears.
-
Select the database connections to be used by the project and click Finish.
You will see your project and its resources in the
Project Explorer view.
Note: A default
PASOE folder that contains the WAR structure is added to the project. If you open
11.2.x, 11.3.x, or 11.4 workspace with OpenEdge 11.5 and if the workspace has any
REST or Data Object projects, all the projects are automatically updated with the
PASOEContent folder. If you open a 11.5 workspace, you can import the OpenEdge
11.2.x, 11.3.x, or 11.4 projects if the project type is either REST or Data Object,
after import the projects are automatically updated with the PASOEContent
folder.