In Odata GetEntitySet & GetEntity methords are redefined. When we need to send the data from URL in the below syntax for sending it to its respective method.
GetEntity Method is used to return single output only means in structure it will return single value.
http://sapservername/sap/opu/odata/sap/ZODATA_SERVICES_SRV/zod_servicesSet(Matnr=’80501032′,Werks=’1000′,ValidDate=’31.12.9999′)
GetEntitySet Method is used to return Multiple records in the structure.
http://sapservername/sap/opu/odata/sap/ZOD_SHIPTOPARTY_ADDR_SRV_01/zod_mob_shiptoparty_addrSet?$filter=Shiptopartyid eq ‘120000011’ and Plant eq ‘1020’.
Learning ODATA :-
below steps will help you learn OData Service creation steps in detial.
Odata-StepsHints:-
SAP Odata tutorial
URL ODATA
sap odata filter
SAP Odata URL for GetEntitySet
SAP Odata URL for GetEntity
sap odata step by step
SAP OData URL Links