Hi
I am connecting and authenticating fine to a local pocketbase.
I can also post/insert no problem
The pocketbase log shows status 200 and the record is inserted
POST
/api/collections/species/records?fields=vernacularName,species_id
But when I try to read the same collection with
I get from the pocketbase log
It seems the API is missing the collection name as the API reference suggests it should be like /api/collections/species/records/ not /api/collections/records
Or am I missing something, the permissions are set and I can insert to that table/collection.
Thanks
I am connecting and authenticating fine to a local pocketbase.
I can also post/insert no problem
B4X:
Dim Insert As Pocketbase_DatabaseInsert = xPocketbase.Database.InsertData.Collection("species")
Insert.Parameter_Fields("vernacularName,species_id")
Dim InsertMap As Map = CreateMap("vernacularName":"Test","species_id":"999")
Wait For (Insert.Insert(InsertMap).Execute) Complete (DatabaseResult As PocketbaseDatabaseResult)
xPocketbase.Database.PrintTable(DatabaseResult)
The pocketbase log shows status 200 and the record is inserted
POST
/api/collections/species/records?fields=vernacularName,species_id
But when I try to read the same collection with
B4X:
Wait For (xPocketbase.Database.SelectData.Collection("species").GetFullList("vernacularName")) Complete (DatabaseResult As PocketbaseDatabaseResult)
xPocketbase.Database.PrintTable(DatabaseResult)
I get from the pocketbase log
It seems the API is missing the collection name as the API reference suggests it should be like /api/collections/species/records/ not /api/collections/records
Or am I missing something, the permissions are set and I can insert to that table/collection.
Thanks