I am considering starting a project with Fat Free, and I need to know
that I can make other services and applications interact with my Fat
Free instance. If someone would be so kind as to point me in the
right direction. I would love to put together some API documentation
and examples to contribute.
My biggest concerns are:
How do I get an exhaustive list of resources that are exposed and
attributes that are available?
Also, is there any documentation that I have simply overlooked which
would provide some clues?
Thanks very much for any assistance.
--
You received this message because you are subscribed to the Google Groups "Fat Free CRM Users" group.
To post to this group, send email to fat-free-...@googlegroups.com.
To unsubscribe from this group, send email to fat-free-crm-us...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/fat-free-crm-users?hl=en.
Great work and good luck shining up the API!
On Dec 8, 10:12 pm, Steve Kenworthy <stevey...@gmail.com> wrote:
> Hi David,
>
> You're right in that you can gather api specs from reading the controllers.
> We do follow the rails conventions of allowing html/json/xml requests to
> co-exist and most them are documented in the controllers
> e.g.
> # GET /accounts/new
> # GET /accounts/new.json
> # GET /accounts/new.xml
> AJAX
>
> We're just beginning a documentation effort to cover FFCRM more broadly and
> would love your input. Head on over tohttps://github.com/fatfreecrm/fat_free_crm_guidesfor the bare bones and
> vision of what we're trying to do.
>
> If you're looking for simple token based application authentication to take
> place on your api calls then take a look at crm_authologic_api (see
> g...@github.com:crossroads/crm_authlogic_api.git) which will help you
> authenticate your app. We're currently updating it to work with the most
> recent ffcrm master so there may be a few rough edges which we're planning
> to smooth out in the next few days.
>
> HTH,
>
> Steve
>
> On Thu, Dec 8, 2011 at 6:04 AM, david.gor...@nusun.us <david.gor...@nusun.us
Thanks, I think that got me a little further. The problem I'm running into now is that some of the actions end up wanting @current_user to be set. For example, get_accounts in AccountsController calls get_list_of_records in ApplicationController which looks to the current_user for preferences. What do you think is the best way to handle this? I was thinking about creating a separate action for the app calls, but that might lead to a lot of duplicate code. The other option I was thinking about was creating an actual user that has the same single_access_token as the one I'm using with crm_authlogic_api. Thoughts?
--
You received this message because you are subscribed to the Google Groups "Fat Free CRM Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/fat-free-crm-users/-/RrSFBQk2s7sJ.
Ah, ok. Couple more questions..sorry about hijacking the thread. I can move this over to the developers group if you'd like.
What would the longer term goal be? Would each user have their own api key? I would imagine this is the only way, otherwise if you're creating users, for example, you'd have "Created by Application" rather than an actual user. This way doesn't actually sound horrible to implement on the surface, but I could very well by overlooking something. What are your thoughts on this? I wouldn't mind putting forth some time to work on this functionality if we can hash out a clear game plan.
If the longer term goal proves to be too much to tackle right now, what do you think about modifying the crm_authlogic_api plugin to automatically create the user associated with the app/token being generated? Again, this is something I could do, I just wanted to discuss first.