# Build my API Platform with DF

**URL:** <https://community.dreamfactory.com/t/build-my-api-platform-with-df/3830>\
**Category:** Miscellaneous\
**Tags:** release, rest, security, authentication, authorization\
**Created:** [May 18, 2017, 11:12am UTC](https://community.dreamfactory.com/t/build-my-api-platform-with-df/3830 "2017-05-18T11:12:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jraiche](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@jraiche](https://community.dreamfactory.com/u/jraiche)\
**Post date:** [May 23, 2017, 12:47pm UTC](https://community.dreamfactory.com/t/build-my-api-platform-with-df/3830/2 "2017-05-23T12:47:20Z")

</div>

@LB

I’ll take a stab at a few of these.

3: The app has an API key with a set of default privileges (which could be none). When a user logs in, the app/user combination gets a set of privileges. User names can be used to emulate row-level security.

4: I think it’s reasonable to publish the auto-generated docs for each endpoint separately once the schema is stabilized. This will also improve performance. In other words, each endpoint’s docs could be saved to a static html page somewhere on your website.

5: I haven’t had to touch sessions and tokens, but I’m using AD not OAuth, so there might be a difference.

6: Use a proxy or mod-rewrite; I haven’t seen a way to change endpoints. This dovetails with your other question about not needing an API key. If you’re using mod-rewrite or a proxy, I’d go with a structure like [api.example.com/payments](http://api.example.com/payments) since you won’t be tied to DF’s url structure at all.

7: I haven’t tried doing these integrations; they might require some custom code to translate the API calls.

8: DF allows you to write custom code in PHP, Python, or JS, so I don’t foresee an issue here. [https://wiki.dreamfactory.com/DreamFactory/Tutorials/Server\_Side\_Scripting](https://wiki.dreamfactory.com/DreamFactory/Tutorials/Server_Side_Scripting)

9: DF allows you to use Relationships which do what you want. [https://wiki.dreamfactory.com/DreamFactory/Features/Database/Related\_Data](https://wiki.dreamfactory.com/DreamFactory/Features/Database/Related_Data)

10: This seems possible depending on the complexity of the request. If you’re open to server side scripting, you should be able to also specify a lookup table with “who can see what”. [How to implement data access based on a table with user’s permissions](https://community.dreamfactory.com/t/how-to-implement-data-access-based-on-a-table-with-users-permissions/490/2)

HTH!

---

_[View the full topic](https://community.dreamfactory.com/t/build-my-api-platform-with-df/3830)._
