Hi,
I'm using Oracle DB to store data from Appery DB. So far, I manage to perform, PUT and POST methods successfully. However, I'm struggling with GET and DELETE as follows:
1) GET:
I use the following request:
pre l_http_request := UTL_HTTP.begin_request('https://api.appery.io/rest/1/db/collections/Outlets_Details'
, 'GET'
, 'HTTP/1.1');
-- ...set header's attributes
UTL_HTTP.set_header(l_http_request, 'X-Appery-Database-Id', '53f2dac5e4b02cca64021dbe');
-- get Response and obtain received value
l_http_response := UTL_HTTP.get_response(l_http_request); /pre
Which works like charm in the sense that it does read Appery collection, but only up to 100 records. I only noticed that after I used bigger collections ( I tried several collections) and it always stops at the the record 100.
Is their any restriction on GET like this? and how to solve it?
2) DELETE:
I need to use 'DELETE' method to delete all records in normal collection (not users). However, my request works only when I provide _id value:
pre
url VARCHAR2(4000) := 'https://api.appery.io/rest/1/db/collections/Test_Member_Points_Details/54b6437fe4b04a26676ce472
/pre
Is there anyway to delete without providing _id (e.g. using wildcard)? Or the only way to use 'GET' first to collect all_id's and then use 'DELETE' ?
Many thanks,