Tagged Questions
0
votes
1answer
10 views
Phonegap Facebook Local Storage omni-auth facebook
I have a question regarding the authentication process with mobile users. I am currently developing a mobile app with phonegap and jquery mobile.
I have setup a Ruby on Rails backend with the ...
0
votes
2answers
27 views
Rails controller respond_with json from two models
I want to respond_to :json in my locations_controller from both my location and beer models.
My locations controller looks like this
class LocationsController < ApplicationController
respond_to ...
1
vote
2answers
38 views
Accessing parent object in rabl template
I have a Submission model
belongs_to :report
has_many :answers
Report Model
has_many :questions
Question Model
has_many :answers # answer has submission_id
Now in rabl template I need ...
1
vote
1answer
35 views
How to allow Binary File download using GRAPE API
I want to allow downloading a binary file (.p12 file) using ruby's Grape API. This is what I am trying.
get '/download_file' do
pkcs12 = generate_pkcsfile
...
0
votes
1answer
32 views
How to send data from an Android app to a Rails server? JSON or Alternatives? [closed]
When an Android client has to make a POST request to a server, I can send the data as URL parameters in the URL.
But the URL can become very big. So, I want to send the data in JSON format. Is doing ...
0
votes
1answer
10 views
How can i specify SSL version in curb
I am interacting with an API that requires SSL3.
From the command line I form the request like:
curl -ssl3 -H 'Authorization: Bearer XXXX' https://capi-eval.signnow.com/api/user/documentsv2
With ...
1
vote
0answers
289 views
Rails API Key Generator
everyone.
im designing api.
i checked out PHP API Key Generator
some one mentioned:
Base62(MD5-HMAC(key, Normalize(referer))). This works great if the API is only allowed from one site. Just check ...
13
votes
2answers
5k views
Rails plugin for API Key + Secret Key signing
Is there a Rails plugin or a rubygem that gives you a starting point for adding an api to your Rails app? We want to use the API Key/Secret Key model, the API should also be versionable. Is there ...
1
vote
1answer
51 views
Requesting an API key
I'm requesting an API key from this site and they are asking me for two things I'm not totally clear (Disregard the fact that if I don't know how to answer these questions I shouldn't be requesting an ...
0
votes
2answers
74 views
RABL API Views Directory?
I really like RABL, but it's seeming like it's going to clutter up my views folders with .rabl files. I really want to ideally have a seperate API views directory so it would be like this:
app/
...
0
votes
2answers
17 views
GET request inside POST API endpoint interferes with 'respond_with'
After reading Stored Android Accounts for Authentication of Rails + Devise Accounts I'm trying to setup a Rails 3 API endpoint that can verify an OAuth obtained token through a GET request to Google.
...
0
votes
1answer
17 views
How to fix rails api testing error?
I am new to creating an API with Rails and am trying to create a test.
require "spec_helper"
describe "/api/v1/iosapps", :type => :api do
context "view all apps" do
let(:url) { ...
0
votes
2answers
49 views
Use another source if external service is down
In my project i'm using following small library for interacting with the external serivce:
class ExternalServiceInteraction
include Singleton
URL = Rails.env.production? ? ...
0
votes
2answers
38 views
Simple join between two tables in Rails
I am building a rails application to work as a back end for APIs. (using grape APIs)
I have two tables (user, comment) where a user has many comments and a comment belongs to one users.
I am trying ...
0
votes
1answer
36 views
LinkedIn API JSON - What Am I Doing Wrong?
All I want to do is store LinkedIn title and Id's of group posts to my Article model. This should happen on:
irb> Article.update_from_linkedin_group
I have spent a lot of time and tried a lot of ...