we insert our JSON DATA in REQUEST BODY in this form
{ "firstname":"vijay", "secondname":"bokka", "email":"[email protected]" }
as part of api implementation one method will be invoked when api url is trigged.
to that method interface write
apiinvokedmethod($firstname,$secondname,$email)
{
}
you can access value of '$firstname' automatically in the class where you implemented this interface class
NOTE:: The value of KEY in json and name of the METHOD PARAMETERE should be equal