Quantcast
Channel: DreamFactory Forum - Latest posts
Viewing all 5028 articles
Browse latest View live

Previous Version of DreamFactory?

$
0
0

No, you still have all the releases on their Github page:


Previous Version of DreamFactory?

$
0
0

The latest stable version with lot of bug fixes was v2.15 . It was removed. I have that version installed.

Custom API - Unable to call GET on internal service

$
0
0

I am quite new to this platform and building things based on the documentation.

Background:
I want to create a Custom API which basically invokes a mongoDB service to pull the data from multiple tables and compose the output.

Trouble:
I have created the NodeJS service under Service tab and assigned the role mapped with the user.
I don’t see the internal service is getting invoked at all. Below is the code snippet.

var result = {dummy: “dummy”};
var callback = (body, response) => {
result = JSON.parse(body);
}
// get all records using internal URL
let url = mongodb/_table/tbl_account;
platform.api.get(url, null, callback);
return result;

Value your help.
Thanks

Does dreamfactory upgrade cost money?

$
0
0

Hi all,
I’m trying to migrate from V2.12.0-1 to V4.2.0 (to update php version)(with mariadb). When I want to create new services with php code, it’s impossible. Do I need a license ?
Thanks
Sandy

Previous Version of DreamFactory?

Previous Version of DreamFactory?

$
0
0

Thank you all for your help. I don’t usually run outdated software mainly due to security reasons but I will give it a try and see if it’s worth the worry. My other worry is building on outdated software than later reinventing the wheel when it reaches EOL. Thanks again to all.

Swagger API for limited user in a specific component

$
0
0

Based on the https://community.dreamfactory.com/t/swagger-api-for-limited-user/1893 we want to have a specific access to one component without selecting all component.

Example:
DB1 - Database 1
DB2 - Database 2
User - Limited User
_table/view_table - Specific Component
Get - Access Limit

User should have a Role that it can access DB1 & DB2 only and it is limited to access _table/view_table component only on Get access only limit.

But upon diagnosing and troubleshooting the Role, you need to select * (all component) for the api_docs to display instructions to pull api, meaning it will display all components for a specific database.

What we require is to limit the user to one Component only in a Get access limit, this is to prevent data loss and other issues.

Our DreamFactory Version: 2.14.0

Does dreamfactory upgrade cost money?


Swagger API for limited user in a specific component

$
0
0

Hello @mark_ddb. Thank you for reaching out. You are on the right path.

  1. You first need to create a role with the Get Access rights over the databases (DB1 and DB2).
    Then proceed to create a new user.

  2. Under the roles tab, enter the user info under the ‘Basic’ tab. Under the ‘Roles’ tab, from the drop-down list for api_docs, select the role you created in step 1

  3. Login with the credentials you created for the user in step 2.

When that user logs in, they will be presented with only the allowed endpoints you allocated under roles. I tried to replicate what you are trying to do. Here is a screenshot - https://share.getcloudapp.com/geuWXw9j

Let me know if this helps. I will be happy to answer any questions you have.
Thanks

Does dreamfactory upgrade cost money?

$
0
0

If there are other developers that think that this pricing and the policy of Dreamfactory Company is ridiculous, I offer to fork the last free version with full access in github and to continue to develop updates as free versions of dreamfactory. If we find enough developers to support the idea of open software we can reach it. Im an not willing to be caught by using open source software only to find out that a Company highjacks this software, reduces the abilities of the software to sell the full capability for 500 US$ per month! If there are developers that support my idea, please contact me.

I already forked version 2.14.2. You can find it here: https://github.com/MrSpockDe/dreamfactory

Custom password/reset service

$
0
0

Hi guys,

I want to know if there is a way to call the password reset api specifying an email template different from the default one. My scenario is this: we have the regular forgot password thing. But one admin user could call a full_user_reset api wich in addition to do the reset password, change some other user parameters in DB and finally send an email to the user with the details of the full reset and the password reset link. Is that possible?

Thanks in advance,

Lucho.

Custom API - Unable to call GET on internal service

$
0
0

Hello @rmadhavan.
As far as what I understand, you have created a MongoDB service and a scripted service. And in your nodejs scripted service, you are trying to call the tables in MongoDB database.

In order to pull data from multiple tables, you can use DreamFactory’s data mesh feature. It allows you to combine data from two tables in the same database or you can combine multiple tables residing on different databases like MS SQL or MYSQL as well. You can find out more here - https://blog.dreamfactory.com/easier-data-marts-with-dreamfactory-data-mesh/

This is an easier way to combine two tables with point and click. You can have multiple tables joined together accessible through a single endpoint.

Scripting service
If you want to go to the scripting service route, this is a great place to start - https://guide.dreamfactory.com/docs/chapter06.html#modifying-existing-api-endpoint-logic. This will allow you to add the NodeJs scripted logic to your MongoDB service.

Let us know if you have any more questions

Custom password/reset service

$
0
0

To initiate a password reset request

POST user/password?reset=true
{"email":"youremail@yourdomain.com"}

OR
POST user/password
{"email":"youremail@yourdomain.com","reset":true}

This will email you a confirmation code.
Once you receive the code, you may reset your password with

POST user/password
{"email":"youremail@yourdomain.com","code":"the confirmation code from the email","new_password":"your new password"}

Custom Email Template
You can create a custom template in DF under the config tab or you can create your own template. You can find out more here - http://wiki.dreamfactory.com/DreamFactory/Tutorials/Setting_up_email_templates#Set_up_Email_Templates_using_admin_console

To make changes to the DB, we would need to created a script that would attach to your DB service in DF. The script can be fired when a particular action is performed (in your case, a password reset). We have a great guide here - https://guide.dreamfactory.com/docs/chapter06.html#modifying-existing-api-endpoint-logic

Let us know if you have any more questions

Custom password/reset service

$
0
0

Hi!

my question is more about if there is a way to call user/password on 2 different scenarios; the first one send an email A (with the default template, info, link and code ) and the second one, send an email B (with diferent template, information but also the link and code as well). There is a way to achieve this?

Greetings,

Custom password/reset service

$
0
0

Yes, absolutely . You can write a script to call the endpoints on two scenarios.


Custom password/reset service

$
0
0

I’ve already have 2 scripts, in both i call to user/password?reset=true and send the same email with the default template. how can i specify to the 2nd script to send the forgot email but with a different template?

Custom password/reset service

$
0
0

Correct. In the second script, you would again call the password reset/forgot email endpoint and send the new template.

To reset user/password:
POST user/password?reset=true
{"email":"youremail@yourdomain.com"}

OR
POST user/password
{"email":"youremail@yourdomain.com","reset":true}

To create a new template

POST http://{url}/api/v2/system/email_template

Request Body:

{
    "resource": [
        {
            "name": "",
            "description": "",
            "to": "",
            "cc": "",
            "bcc": "",
            "subject": "",
            "body_text": "",
            "body_html": "",
            "from_name": "",
            "from_email": "",
            "reply_to_name": "",
            "reply_to_email": ""
        }
    ]
}

In other words, once you have a new template setup, you can simply call that template from your second script using the name of the template - /api/v2/system/email_template_name

Refer this link to learn more about email templates: http://wiki.dreamfactory.com/DreamFactory/Tutorials/Setting_up_email_templates#Set_up_Email_Templates_using_admin_console

Custom password/reset service

$
0
0

Hi, is there a way i can build my own password reset script?

Custom password/reset service

$
0
0

Yes, you can. Simple use a scripting service (REF) and call this endpoint in your script

To reset user/password:
POST user/password?reset=true
{"email":"youremail@yourdomain.com"}

OR
POST user/password
{"email":"youremail@yourdomain.com","reset":true}

When would .queued be fired?

$
0
0

Starting with release 2.3.0, queued scripts, on the other hand, do not and cannot affect the processing of the original API call. Both the request and response of the event are saved along with the script and queued for later execution. Queued scripts are primarily useful for triggering other workflows that need to be done when an event happens, but not necessarily during the processing of the event.

As mentioned in the article you referred, the .queued event can be triggered in the same way as post and pre-process events.

image

Viewing all 5028 articles
Browse latest View live