Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "REST support in STP"
Line 7: | Line 7: | ||
==Exposing a database to RESTfull service directly== | ==Exposing a database to RESTfull service directly== | ||
+ | We can create a RESTfull service by starting from a database with the following steps: | ||
+ | |||
+ | 1. Firstly, we should create rest project using STP.Service Creation Wizard, then add project nature "org.eclipse.jem.workbench.JavaEMFNature" defined in WTP DALI subproject. | ||
+ | |||
+ | 2. |
Revision as of 01:12, 7 November 2007
Introduction
This page aims to define the basic processes on how to support REST in stp, there is sample to simplifies how to create a RESTfull service from a database directly.
There are two ways to support to create RESTfull service:
* Exposing a database to RESTfull service directly * Starting from importing some POJO class into a rest project
Exposing a database to RESTfull service directly
We can create a RESTfull service by starting from a database with the following steps:
1. Firstly, we should create rest project using STP.Service Creation Wizard, then add project nature "org.eclipse.jem.workbench.JavaEMFNature" defined in WTP DALI subproject.
2.