By Emin Askerov on Jul 13, 2016
Recently experimenting with the latest Oracle Mobile Cloud Service SDK for Android I was pleasantly surprised how easy you can call MCS Custom API using SDK with just a few lines of code. In common case scenario to make the simplest GET request to REST service you most likely will use HttpURLConnection class to create connection and make a request and Uri.Builder helper class for building or manipulating URI references etc. In addition to this you will need to define Oracle-Mobile-Backend-ID and Authorization request headers since MCS Mobile Backend does not support fully anonymous calls. You can refer to thisdocumentation article for further details about testing your Custom API outside MCS console. But good news, that MCS SDK greatly simplifies this work and allows making Custom API calls with the just few lines of code.