Android Question REST APIs format

iCAB

Well-Known Member
Licensed User
Longtime User
Hi Guys

I have been using httputil for a long time, and with every thing we have done so far we are building the calls using something similar to the code below
B4X:
   job1.Download2("http://www.b4x.com/print.php", _
      Array As String("key1", "value1", "key1", "value2"))
which will output something like
B4X:
http://www.b4x.com/print.php?key1=value1&key2=value2

We are working with a provider that expects things in the following format:
B4X:
http://www.b4x.com/print.php/key1/value1/key2/value2
1. is this right?
2. if so, is there a standard way of building the above

Thanks
iCAB
 

OliverA

Expert
Licensed User
Longtime User
Upvote 0

iCAB

Well-Known Member
Licensed User
Longtime User
Thanks Oliver, that's what I am looking for.

How to use this with post? or does it even apply to that?
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
How to use this with post?
It really depends on the API. Look at the requirements and if you have any issues/questions, create another thread.
 
Upvote 0
Top