REST.Types.TRESTRequestMethod
Delphi
TRESTRequestMethod = (
rmPOST,
rmPUT,
rmGET,
rmDELETE,
rmPATCH
);
C++
enum DECLSPEC_DENUM TRESTRequestMethod : unsigned char { rmPOST, rmPUT, rmGET, rmDELETE, rmPATCH };
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
enum | public | REST.Types.pas REST.Types.hpp |
REST.Types | REST.Types |
Description
Designates standard HTTP/REST methods. All methods can affect single or multiple objects/entities.
This enumeration defines the following values:
- rmPost: Sends a NEW object/entity to the server.
- rmPUT: Updates an existing object/entity on the server. PUT can also allow the user to send a new entity, depending on the actual server/API implementation.
- rmGET: Retrieves an object/entity from the server.
- rmDELETE: Deletes an object/entity from the server.
- rmPATCH: Patches an object/entity on the server by updating only the pairs that are sent within that PATCH body.