问题标签 [dreamfactory]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
android - 在我的 android 应用程序中如何使用在梦工厂中创建的 API
在 Dream Factory 中,我创建了一个服务,通过它我可以连接到远程 postgreSQL 并能够从那里进行 crud 操作,我还生成了 API。现在我有两个问题:
- 该 API 将如何连接到我创建的服务?
- 如何在我的 android 应用程序中使用生成的 API?
json - Dream Factory .NET SDK Post records Unique Integrity Error
In teh .NET SDK your create record method passes a 0 for id on all records as this is unknown until teh response comes back with the id's populated etc
It Seems that the JSON DefaultValueHandling = DefaultValueHandling.Ignore is not working on the freshly minted int '0' id's
An therefore the body has the id:0 and trys inserts the records with id:0 on all and trips a Unique constraint on the inner exception in fiddler
dreamfactory - 从dreamfactory中直接不相关的表中访问数据
我正在使用梦工厂 2 为 mysql 数据库创建一个 api。目前我有几张桌子,但我将以三个为例。表 1 A 列 B 列 表 2 A 列 B 列 表 3 A 列 B 列
表 1 可以通过关系键访问表 2,因此表 1 列 A = 表 2 列 B。表 2 也可以通过关系键访问表 3,因此表 2 列 A = 表 3 列 B。我的问题是在梦工厂谁我会从表 1 访问表 3。
通常,如果我进入 api 文档并请求相关数据,我可以提取与该表关联的任何相关数据,但在这种情况下,表 3 与表 1 没有直接关联。我知道一个选项是存储过程,但存在这可以用 Dreamfactory 完成而不使用任何存储过程吗?
facebook - 如何在 Ionic 中添加 Dreamfactory OAuth facebook 登录?
我正在尝试在 Ionic 应用程序中实现 Dreamfactory OAuth。我正在关注此资源以进行实施: http ://wiki.dreamfactory.com/DreamFactory/Tutorials/Using_OAuth
这是我正在打的电话:
上面的日志显示了 json 数据,因为它本身重定向到调用返回的 facebook url,它只返回该 facebook 页面的 HTML。
我应该在混合/离子应用程序中使用不同的方法进行 DF OAuth 登录吗?
facebook - Facebook OAuth 问题 Dreamfactory
尝试在 Ionic 应用程序中实现 Facebook OAuth 时出现错误。
这就是我的 POST 请求 url 的样子:
https://df-apiurl.com/api/v2/user/session?oauth_callback=true&service=facebook&code=**********&state=********
这是错误响应。相关部分可能是:
"message":"客户端错误:
POST https://graph.facebook.com/oauth/access_token
导致400 Bad Request
响应:\n{"error":{"message":"验证验证码出错。请确保您的 redirect_uri 与您的相同(截断...)\n"
但这里是完整的错误信息,以防万一。
{"error":{"context":null,"message":"客户端错误:
POST https://graph.facebook.com/oauth/access_token
导致400 Bad Request
响应:\n{"error":{"message":"验证验证码时出错。请确保您的 redirect_uri 与您的相同(截断...)\n","code":400,"trace" :["0 /opt/bitnami/apps/dreamfactory/htdocs/vendor/guzzlehttp/guzzle/src/Middleware.php(65): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object( GuzzleHttp\Psr7\Response))","1 /opt/bitnami/apps/dreamfactory/htdocs/vendor/guzzlehttp/promises/src/Promise.php(203): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object( GuzzleHttp\Psr7\Response))","2 /opt/bitnami/apps/dreamfactory/htdocs/vendor/guzzlehttp/promises/src/Promise.php(156): GuzzleHttp\Promise\Promise::callHandler(1, Object( GuzzleHttp\Psr7\Response), 数组)","3 /opt/bitnami/apps/dreamfactory/htdocs/vendor/guzzlehttp/promises/src/TaskQueue.php(61): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}()","4 /opt/ bitnami/apps/dreamfactory/htdocs/vendor/guzzlehttp/promises/src/Promise.php(246): GuzzleHttp\Promise\TaskQueue->run(true)","5 /opt/bitnami/apps/dreamfactory/htdocs/vendor /guzzlehttp/promises/src/Promise.php(223): GuzzleHttp\Promise\Promise->invokeWaitFn()","6 /opt/bitnami/apps/dreamfactory/htdocs/vendor/guzzlehttp/promises/src/Promise.php (266): GuzzleHttp\Promise\Promise->waitIfPending()","7 /opt/bitnami/apps/dreamfactory/htdocs/vendor/guzzlehttp/promises/src/Promise.php(225): GuzzleHttp\Promise\Promise- >invokeWaitList()","8 /opt/bitnami/apps/dreamfactory/htdocs/vendor/guzzlehttp/promises/src/Promise.php(62):GuzzleHttp\Promise\Promise->waitIfPending()","9 /opt/bitnami/apps/dreamfactory/htdocs/vendor/guzzlehttp/guzzle/src/Client.php(129): GuzzleHttp\Promise\Promise->wait() ","10 /opt/bitnami/apps/dreamfactory/htdocs/vendor/guzzlehttp/guzzle/src/Client.php(87): GuzzleHttp\Client->request('post', 'https://graph.f ...', Array)","11 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/socialite/src/Two/FacebookProvider.php(77): GuzzleHttp\Client- >__call('post', Array)","12 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/socialite/src/Two/FacebookProvider.php(77): GuzzleHttp\Client->post(' https ://graph.f...', Array)","13 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/socialite/src/Two/AbstractProvider.php(202): Laravel\Socialite\Two\FacebookProvider->getAccessTokenResponse( 'AQB6vh4ZHq1oYQn...')","14 /opt/bitnami/apps/dreamfactory/htdocs/vendor/dreamfactory/df-oauth/src/Services/BaseOAuthService.php(91): Laravel\Socialite\Two\AbstractProvider-> user()","15 /opt/bitnami/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Resources/UserSessionResource.php(86): DreamFactory\Core\OAuth\Services\BaseOAuthService->handleOAuthCallback( )","16 [内部函数]:DreamFactory\Core\Resources\UserSessionResource->handlePOST()","17 /opt/bitnami/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Components/RestHandler .php(267): call_user_func(数组)","18 /opt/bitnami/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Components/RestHandler.php(173): DreamFactory\Core\Components\RestHandler->processRequest()","19 /opt/ bitnami/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Components/RestHandler.php(220): DreamFactory\Core\Components\RestHandler->handleRequest(Object(DreamFactory\Core\Utility\ServiceRequest), ' ')","20 /opt/bitnami/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Components/RestHandler.php(168): DreamFactory\Core\Components\RestHandler->handleResource(Array)" ,"21 /opt/bitnami/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Services/BaseRestService.php(74): DreamFactory\Core\Components\RestHandler->handleRequest(Object(DreamFactory\Core\ Utility\ServiceRequest), '会话')","22 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(17036): DreamFactory\Core\Services\BaseRestService->handleRequest(Object(DreamFactory\Core\Utility\ServiceRequest), 'session')" ,"23 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(17008): DreamFactory\Http\Controllers\RestController->handleService('v2', 'user', 'session')", "24【内部函数】:DreamFactory\Http\Controllers\RestController->handlePOST('v2', 'user', 'session')","25 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled .php(9093): call_user_func_array(Array, Array)","26 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9155): Illuminate\Routing\Controller->callAction('handlePOST' , 大批)”,”27 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9135): Illuminate\Routing\ControllerDispatcher->call(Object(DreamFactory\Http\Controllers\RestController), Object(Illuminate\Routing\Route ), 'handlePOST')","28 [内部函数]: Illuminate\Routing\ControllerDispatcher->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))","29 /opt/bitnami/apps/ dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(52): call_user_func(Object(Closure), Object(Illuminate\Http\Request))","30 /opt/bitnami/apps/ dreamfactory/htdocs/bootstrap/cache/compiled.php(17209): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))","31 [内部函数]: DreamFactory\ Http\Middleware\AccessCheck->句柄(对象(照明\Http\Request),对象(关闭))“,”,“32 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9627):call_user_func_array(数组,数组)”, "33 [内部函数]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))","34 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/ framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))","35 [内部函数]: Illuminate\Routing\Pipeline->Illuminate\Routing \{closure}(Object(Illuminate\Http\Request))","36 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9612): call_user_func(Object(Closure), Object(Illuminate \Http\Request))","37 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9136): Illuminate\Pipeline\Pipeline->then(Object(Closure))","38 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9123): Illuminate\Routing\ControllerDispatcher ->callWithinStack(对象(DreamFactory\Http\Controllers\RestController),对象(Illuminate\Routing\Route),对象(Illuminate\Http\Request),'handlePOST')","39 /opt/bitnami/apps/dreamfactory/ htdocs/bootstrap/cache/compiled.php(8191): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'DreamFactory\\Ht...', 'handlePOST')","40 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(8178): Illuminate\Routing\Route->runController(Object(Illuminate\Http\Request))", "41 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(7892): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request))","42 [内部函数]: Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))","43 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing /Pipeline.php(52): call_user_func(Object(Closure), Object(Illuminate\Http\Request))","44 [内部函数]: Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object( Illuminate\Http\Request))","45 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9612): call_user_func(Object(Closure), Object(Illuminate\Http\Request))" "46 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(7893):Illuminate\Pipeline\Pipeline->then(Object(Closure))","47 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(7884): Illuminate\Routing\Router->runRouteWithinStack(Object (Illuminate\Routing\Route), Object(Illuminate\Http\Request))","48 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(7874): Illuminate\Routing\Router-> dispatchToRoute(Object(Illuminate\Http\Request))","49 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(2416): Illuminate\Routing\Router->dispatch(Object(Illuminate\ Http\Request))","50 [内部函数]: Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))","51 /opt/bitnami /apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(52):call_user_func(Object(Closure), Object(Illuminate\Http\Request))","52 /opt/bitnami/apps/dreamfactory/htdocs/app/Http/Middleware/AuthCheck.php(178): Illuminate\Routing\Pipeline- >Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))","53【内部函数】:DreamFactory\Http\Middleware\AuthCheck->handle(Object(Illuminate\Http\Request), Object(Closure ))","54 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9627): call_user_func_array(Array, Array)","55 [内部函数]: Illuminate\Pipeline\Pipeline-> Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))","56 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32) : call_user_func(对象(闭包), 对象(Illuminate\Http\Request))","57 /opt/bitnami/apps/dreamfactory/htdocs/vendor/barryvdh/laravel-cors/src/HandleCors.php(42): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\ Request))","58 [内部函数]: Barryvdh\Cors\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))","59 /opt/bitnami/apps/dreamfactory/htdocs/ bootstrap/cache/compiled.php(9627): call_user_func_array(Array, Array)","60 [内部函数]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) ","61 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request)) ","62 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(17306):Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))","63【内部函数】:DreamFactory\Http\Middleware\FirstUserCheck->handle(Object(Illuminate\Http\ Request), Object(Closure))","64 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9627): call_user_func_array(Array, Array)","65 [内部函数]: Illuminate \Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))","66 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/ Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))","67 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(13076): 照亮\路由\管道->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))","68【内部函数】:Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure) )","69 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9627): call_user_func_array(Array, Array)","70 [内部函数]: Illuminate\Pipeline\Pipeline->Illuminate \Pipeline\{closure}(Object(Illuminate\Http\Request))","71 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))","72 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(11622): Illuminate\Routing\Pipeline->Illuminate \路由\{闭包}(对象(照明\Http\Request))“,”73【内部函数】:Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))","74 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/编译的.php(9627): call_user_func_array(Array, Array)","75 [内部函数]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))","76 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))","77 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(12815): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))","78 【内部函数】:Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->句柄(对象(照明\Http\Request),对象(关闭))“,”,“79 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9627):call_user_func_array(数组,数组)”, "80 [内部函数]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))","81 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/ framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))","82 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/ compiled.php(12752): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))","83 [内部函数]: Illuminate\Cookie\Middleware\EncryptCookies->handle (对象(Illuminate\Http\Request), 对象(闭包))","84 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9627): call_user_func_array(Array, Array)","85 [内部函数]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{关闭}(对象(Illuminate\Http\Request))“,”,“86 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32):call_user_func(对象(闭包),对象(Illuminate\Http\Request))“”,“87 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(3271):Illuminate\Routing\Pipeline->Illuminate\Routing\{闭包}(Object(Illuminate\Http\Request))","88 [内部函数]: Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))", “89 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9627):call_user_func_array(Array, Array)","90 [内部函数]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))","91 /opt/bitnami/apps/ dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))","92 [内部函数]: Illuminate\ Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))","93 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9612): call_user_func(对象(闭包),对象(Illuminate\Http\Request))”,”94 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(2363):Illuminate\Pipeline\Pipeline->then(对象(关闭))","95 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(2347): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))","96 /opt/bitnami/apps/dreamfactory/htdocs/public/index.php(53): Illuminate \Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))","97 {main}"]}}
dreamfactory - DreamFactory 安装数据库名称
DreamFactory 安装程序(通过 php artisan)提示“输入您的数据库名称:”,不确定数据库是什么意思,它要我设置一个全新的数据库名称还是现有数据库的名称?
android - dreamfactory : 使用多个过滤器查询记录
我正在开发一个电子商务 android 应用程序。我正在尝试基于多个过滤器使用适用于 android 的 dreamfactory API 获取记录。
使用名为 GetProductsBySubCatIdTask 的 AsyncTask
我使用了在类外部构造并作为参数提供的过滤器,可能的过滤器是
以上所有过滤器都可以单独使用,也可以组合使用 2 个或 3 个,例如
转义字符串中的符号后,如
无法获得所需的结果,在文档中搜索但没有找到确切的内容。
什么是可能的解决方案?
dreamfactory - 如何在 DreamFactory 上上传文件?
如何在 DreamFactory 上使用 multipart 上传图像?
我正在使用 angualr2,尝试过 xhr 和 http.post。两者都不起作用我得到 201 状态代码并返回空资源。文件只是说
没有明确的解释
json - 如何使用 REST 请求从两个表中获取结构化 json
是否能够实现从两个表中获取结构化响应的过程功能
我有两个表:“公司”和“电话”
Company 包含公司,Phone 包含每个公司的电话号码。一家公司 --> 多部由 companyID 关联的电话
我需要这个结构:
问题是它们在单独的表中,我不知道如何实现它。
我使用dreamfactory作为后端
javascript - JQuery:为什么我得到一个未捕获的类型错误:无法设置未定义的属性“_renderItem”
此代码应该采用 ISBN 或书名,并针对 googles book API 运行它,返回有效结果。该代码似乎可以自行运行,但是当我们将其放入 Dreamfactory 服务器时,它返回它无法设置未定义的属性“_renderItem”。