Questions tagged [dreamfactory]
DreamFactory is an open source REST API backend for mobile, web, and IoT applications.
64
questions
0
votes
0
answers
19
views
async await not woring in Dreamfactory node.js scripts
1. const getAsset = async (assetName) => {
2. const url = `/database/_table/asset?filter=(name=${assetName})`;
3. return await df.get(url);
4. }
Line 1: Expected '(' and instead saw '{'
Line ...
0
votes
1
answer
70
views
Dreamfactory Firebird Service
I couldn't solve the issue reported here.
Therefore after several hours of trying and several reinstalls, I did reset the server and installed ubuntu20, so I could use the installer. I omitted the ...
1
vote
2
answers
381
views
"500 Failed to retrieve records" error using PostgreSQL service with DreamFactory
I've configured the service, app, and roles for my endpoint. I can successfully run API calls from the DreamFactory API Docs on /schema, /function, /table - basically all the single nodes that don't ...
1
vote
1
answer
214
views
Install Dreamfactory on Xampp
I have been trying to install Dreamfactory on Xampp but can't find a single article on how to do so.
Purpose: To generate REST API in php with mysql.
What I have tried:
Initially I installed windows ...
0
votes
1
answer
101
views
How to do base authentication to DreamFactory with jQuery and Ajax
I'm trying to do a basic authentication via ajax request to DreamFactory, to get a SESSION_TOKEN (or JWT). But following code fails. The DreamFactory community forum seems to be outdated, can't post ...
0
votes
1
answer
73
views
Passing variables from Pre-Process to Post-Process scripts
In a DreamFactory/Bitnami instance I managed to get an Event's Pre-Process script and Post-Process script running. However, there are variables that are generated during the Pre-Process event script ...
0
votes
1
answer
31
views
When would <event>.queued be fired?
I am trying to figure out when and how .queued in DreamFactory is fired.
From DreamFactory article,
https://blog.dreamfactory.com/queueing-with-dreamfactory-scripting/
there are 3 events that can ...
-1
votes
1
answer
101
views
In azure, using service i could get image but can only see in preview as direct image
In azure, using service i could get image but can only see in preview as direct image but it is not in the format of base64, or etc.
but i need image in json format
i am giving below service in ...
0
votes
1
answer
83
views
Dreamfactory request internal file from file storage service
I'm writing a PHP script that requests other DF service which is a FileStorage.
When I request the folder containing the file the response is correct, but when
I want to request directly a file(json ...
0
votes
1
answer
25
views
Email address is appending the DF servicename for Facebook OAuth Service
Email address is appending the DF servicename for Facebook OAuth Service. Here is output from service callback after facebook/google OAuth.
{
“session_token”: “xxxxx”,
“session_id”: “xxxxx”,
“id”: ...
0
votes
1
answer
154
views
Services There was an error loading data for the Services tab. Please try refreshing your browser and logging in again
Hi after a fresh DreamFactory Docker intallation I run this command:
docker exec -i -t dreamfactory php artisan config:clear
and then my all my DreamFactory Service is unacessible:
I have made more ...
1
vote
1
answer
144
views
DreamFactory how to disable wrapper "resource" in docker container
I'm using DreamFactory REST API in a Docker container and I need to disable wrapper "resource" in payload. How can I achieve this?
I have replaced the following in all of these four files:
opt/...
0
votes
1
answer
126
views
dreamfactory php script post.post_process payload modify
Hi I'm using Dreamfactory as REST API backend and I need a PHP script to pre process a POST api request that can modify my received payload from this:
{“Time”:“2018-12-21T07:49:23”,“BME680”:{“...
0
votes
1
answer
252
views
Dreamfactory - Why is my server event script not called?
I have a bitnami instance that I use to run DF 2.12.0, on which I added a custom “Remote service” (a HTTP REST API). I would like to use server-side event scripting functionalities to pre-process ...
3
votes
3
answers
853
views
New Angular HTTPClient Get Response Data from Dreamfactory API
I am attempting to write an Angular 6 service that connects to the DreamFactory API.
I have managed to extract json data from the "brand" table in a database that I have allowed DreamFactory to ...
0
votes
1
answer
321
views
Response 400 <Bad request> on a dreamfactory API POST call
I am trying to post a request from my Python application to a MongoDB running on my localhost using dreamfactory API. However, I get a 400 response back. There are no issues with the connectivity to ...
0
votes
1
answer
259
views
How to select fields from related tables in dreamfactory
I am playing with the DreamFactory Schema and API Docs. Within the Schema i add a "Virtual Relationship". Now in API Docs i put the name of the Virtual Relationship in related, on execute everthing is ...
0
votes
2
answers
94
views
Dreamfactory - Different content type of uploaded file
We are facing a strange issue, we are using Dreamfactory to store Audio files that are recorded in iOS device of type m4a, which is working fine and getting uploaded without problem.
We are facing ...
2
votes
1
answer
7k
views
Stripe Subscription - Update the stripe subscription amount
I have created a plan with subscription amount of 15 dollars for a month of duration using subscription API from the backend. When a customer subscribes to it, next monthly invoice for 15 dollars is ...
0
votes
0
answers
44
views
Unable to parse eloquent object array in laravel in Dreamfactory
I have a output from dreamfactory ie using laravel.Follwing is the array response from the api .
DreamFactory\Core\Models\NonAdminUser Object
(
[table:protected] => user
[fillable:protected] ...
2
votes
1
answer
137
views
Dream factory URL
I have a url like http://host/api/v2/service in dream factory. I am finding the method to disable the part api/v2 from the url to obtain the final url like http://host/service . Can i do it or it is ...
1
vote
0
answers
286
views
Handlebars "Unknown template object: object" when running server-side
I want to use Handlebars to add content to emails before they get sent, all of this happening on the server. We are using Dreamfactory and we can run scripts in Javascript to pre/post-process requests ...
0
votes
1
answer
222
views
DreamFactory 2 Scripting - Need A Jump Start With GET post_process Or Event Scripting
I'm trying to learn how to use DreamFactory 2 but not much info available. Their tutorials assume you already know the server side stuff. I don't, and can't find decent tutorials. JavaScript coding,...
0
votes
0
answers
228
views
Can't convert System.Collections.Generic.List in List<>
I am trying to get a JSON from a API using Dreamfactory on Xamarin.Forms project. I was trying before with their API .net but it doesn't work for my cross-platform so I decided to try it with the ...
0
votes
1
answer
263
views
Dream factory call REST API and character parameter
Currently, I have a problem with Dream Factory REST API call, when a space is present into the API URL call.
I have a get request with a sort parameter that must to be send for SOLR server. This space ...
0
votes
0
answers
47
views
Can i use current logged in users detail to pass to Tableau Web data connector for authentication?
I have created Web data connector which fetches some data from DreamFactory API. but to get those data it need to send userid and password. Can i send the current tableau logged in user data to the ...
0
votes
1
answer
231
views
How to setup Angular REST api with ClientHttp for JSON object from form inputs?
I'm struggling with the .post payload and getting a 400 error that "The request contains no valid record sets." I want to post to a Postgres DB. Here is my payload that is being sent to the server. ...
0
votes
1
answer
271
views
Sencha Architect 4 - ExtJS 6.5 -> Dreamfactory 2.9 Authentication Session Token
I got a little bit stuck and I would like to ask your advice, I am trying to setup a login window // authentication using DreamFactory in Sencha Architect however I am pretty much a beginner.
My ...
0
votes
0
answers
292
views
How to load authenticated page inside tableau web page object?
I want to load a web authenticated application inside tableau web page object, but it should automatically use some data and authenticate and load the page.
OR
May be anyway to authenticate the same ...
1
vote
0
answers
2k
views
In Angular, how can a prefix be added to all routes at startup or 'ignored'?
Background: I would like all routes to be added a prefix by a service fired at startup.
The app is to access information about some events e.g. AngularCodeWeek2015, NodeJSRetreat2017, ... so the URLs ...
1
vote
1
answer
98
views
PDO Exception in dreamfactory
Dreamfactory throws the following error when trying to access the services. After clearing the cache sometimes it works and after few minutes the same bug occurs. It does not allow to create new ...
1
vote
1
answer
87
views
Get a PDF file from a download Link in Dreamfactory with PHP?
I am in a situation where I have to upload a PDF file through an API, all of the examples that I have encountered point towards a specified file location, where uploaded through a form or in a ...
0
votes
1
answer
116
views
How to display images in files folder from dreamfactory using php
I have uploaded images files in folder of Dreamfactory
<img src="https://motodev.spotya.online/api/v2/files/Posts/posts_1508937621_Tulips.jpg">
Error Displayed,
{"error":{"code":400,"...
2
votes
2
answers
134
views
How to convert below curl command in to php formate?
I want to convert this terminal command into php curl format, or http post can you please help?
curl -i -k -3 -X PATCH "http://localhost:8080/api/v2/db/_table/todo/1" \
-H "X-DreamFactory-Api-Key:...
0
votes
1
answer
590
views
Can Dexie syncable be used with an api server vs directly with a database
I have seen the sample projects on your website for Dexie.Syncable such as sync-server and sync-client and they all seem to write to a datbase directly vs interacting with a web api. I am looking for ...
0
votes
1
answer
108
views
Suddenly no access to mysql table in Dreamfactory
The Problem
I am building an application with Dreamfactory 2.7.0. It is deployed with bitnami/docker on my local machine (MacOS).
There are some tables and some relations between them. POSTing and ...
0
votes
0
answers
298
views
Replacing ASP.NET to VueJs & Dreamfactory
I am an asp.net web-forms guy, this is a few years I am developing a web application with asp.net. Just I got a project called "Human Resources Management System" and I wanted to do this project with ...
0
votes
1
answer
1k
views
No session token (JWT) or API Key detected in request Error in PHP
I am using the curl for get the JSON data from DreamFactory url.
But I a getting the error.
No session token (JWT) or API Key detected in request. Please send in
X-DreamFactory-Session-Token and/...
0
votes
1
answer
114
views
How to get a relation to user in a DreamFactory app?
I am using DreamFactory on the server of a webapp. I have created all the tables in the DreamFactory local MySql database, but how do I add the relation the built in users? All user objects in the app ...
1
vote
1
answer
155
views
How to apply role to user in Dreamfactory?
Making first steps with Dreamfactory and followed the tutorial I am not finding, how could I apply role to the user, when I want user to access some service (and not app).
Here
http://wiki....
1
vote
2
answers
1k
views
How to show an image from a database with HTML+JS?
I am making a dog shelter app, so I saved all the images URL in the database. So far, this is what I have:
What I want is instead of showing this P I want to show the dog's photo.
My code:
index....
0
votes
1
answer
67
views
Populate Table using DreamFactory API & Javascript
I am trying to populate a products table with products that belong to only one restaurant, so far I managed to populate the restaurant table, but when I click on the restaurant it doesn't show the ...
2
votes
1
answer
264
views
How to integrate React Native with Dreamfactory REST API?
I am making a React Native app that must fetch data from an SQL Server. I'll be doing many complicated joins and other SQL functions so I figured DreamFactory would be easier to use in this way.
...
1
vote
1
answer
555
views
How to post a binary file to the Files Service of the Dreamfactory API
In Dreamfactory (v2.4.2), I'm posting (via multipart/form-data) to a service/_table/{tablename} to create a record in a table. Using PHP, I then use the ID of that record returned as a folder name for ...
1
vote
0
answers
1k
views
JQuery: why am I getting an Uncaught TypeError: Cannot set property '_renderItem' of undefined
This code is supposed to take an ISBN or name of a book and run it against googles book API, returning valid results. The code appears to work on its own, but when we put it into our Dreamfactory ...
0
votes
1
answer
59
views
How to get structured json from two tables using REST request
Is it capable to implement feature of procedure on getting structured response from two tables
I have two tables: 'Company' and 'Phone'
Company contains companies and Phone contains phone numbers on ...
1
vote
2
answers
667
views
How to upload file on DreamFactory?
How to upload image using multipart on DreamFactory?
I am using angualr2, tried xhr and http.post. Both are not working I get 201 status code and with empty resource back. Document just says
POST ...
0
votes
2
answers
631
views
dreamfactory : Querying records with multiple filters
I am working on an ecommerce android app. I am trying to fetch records using dreamfactory API for android, based on multiple filters.
Using an AsyncTask named as GetProductsBySubCatIdTask
public ...
0
votes
1
answer
93
views
DreamFactory install database name
DreamFactory installer (via php artisan) is prompting "Enter your database name:", not sure what database means, it wants me to set a brand new database name or a name for existing one?
-1
votes
1
answer
501
views
Facebook OAuth issue Dreamfactory
I am getting error while trying to implement Facebook OAuth in Ionic app.
This is how my POST request url looks like:
https://df-apiurl.com/api/v2/user/session?oauth_callback=true&service=...