java - What I have to put as the uri of my HttpGet method? -


i'm doing api rest application in android , i'm trying get, post, put , delete methods application in android.

i saw objective have use httpget(string uri) method i'm not secure uri have put. saw info here:

http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/client/methods/httpget.html#httpget(java.net.uri)

have put uri of folder in api.php file it's allocate? api.php it's file in have get, put, post , delete method.

have put uri set on methods (get/post/put/delete) make reference information retrieve me?

i searched on internet couldn't find helps me.

thanks in advance!

the uri in case url (often used interchangeably uri) of rest webservice endpoint (e.g. http://someserver/restservice/users).

the constructor httpget(string uri) accepts string parameter, can stick url in there surrounded double quotes:

httpget httpget = new httpget("http://someserver/restservice/users"); 

Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -