EMS.DataSetResource.TEMSDataSetResource

From RAD Studio API Documentation
Jump to: navigation, search

EMS.ResourceAPI.TEMSBaseResourceSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTEMSDataSetResource
[–] Properties
Type: class
Visibility: public
Source:
EMS.DataSetResource.pas
EMS.DataSetResource.hpp
Unit: EMS.DataSetResource
Parent: EMS.DataSetResource

Delphi

TEMSDataSetResource = class (TEMSBaseResource)

C++

class PASCALIMPLEMENTATION TEMSDataSetResource : public Ems::Resourceapi::TEMSBaseResource

Description

The EMS.DataSetResource.TEMSDataSetResource is a component that enables rapid development of REST API’s for TDataSet using RAD Server.

Using EMS.DataSetResource.TEMSDataSetResource, it is possible to expose data APIs via REST with no code at all. The supported REST operations are:

  • GET <resource>/ - returns the list of dataset records.
  • GET <resource>/{id} - returns a record with a primary key equal to ID parameter.
  • PUT <resource>/{id} - updates a record with a primary key equal to ID parameter.
  • POST <resource>/ - updates or inserts a record.
  • DELETE <resource>/{id} - deletes a record with a primary key equal to ID parameter.

The allowed operations are defined by AllowedActions property.

See Also