This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
====================API's Description =============== | |
1. Authentication : | |
oauth2 and devise are used for authentication. | |
1.1. Application Authentication: | |
command: client_credentials | |
method: POST | |
URL: https://kl-json.herokuapp.com/api/clients/token |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Authentication : | |
oauth2 and devise are used for authentication. | |
1.1. Application Authentication: | |
command: client_credentials | |
method: POST | |
URL: https://kl-json.herokuapp.com/api/clients/token | |
1.1.1. Request Format: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is example contains the bare mininum to get nginx going with | |
# Unicorn or Rainbows! servers. Generally these configuration settings | |
# are applicable to other HTTP application servers (and not just Ruby | |
# ones), so if you have one working well for proxying another app | |
# server, feel free to continue using it. | |
# | |
# The only setting we feel strongly about is the fail_timeout=0 | |
# directive in the "upstream" block. max_fails=0 also has the same | |
# effect as fail_timeout=0 for current versions of nginx and may be | |
# used in its place. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html lang="en"><head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Beach Ball - HTML 5 Canvas</title> | |
<style type="text/css" media="screen"> | |
body { background:#eee; margin:2em; text-align:center; } | |
canvas { display:block; margin:2em auto; border:1px solid #ccc; background:#fff } | |
</style> | |
</head><body> | |
<canvas></canvas> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def export_profile_data(recipient,profile_ids,season_year,json_template=nil,single=false) | |
require 'csv' | |
filename = "#{Rails.root}/tmp/export_profiles.csv" | |
File.delete(filename) if File.exist?(filename) | |
form_name = json_template.nil? ? 'Profiles' : json_template.form_name | |
season = seasons.find_by(season_year: season_year) | |
predefined_columns = {'Last Name'=>{:univ=>:lname}, 'First Name'=>{:univ=>:fname}, | |
'Preferred Name'=>{:univ=>:nickname}, 'KidsLink ID'=>{:univ=>:kids_id},'Application Date'=>{:univ=>:created_at}, | |
'Application Time'=>{:univ=>:created_at},'Status'=>{:seas=>:status}, 'Session'=>{:seas=>:age_group_and_school_days}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"form": { | |
"id": 123456789, | |
"name": "Medical Form", | |
"season": "2013-2014", | |
"panel": [ | |
{ | |
"name": "Medical Related", | |
"field": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"form": { | |
"id": 123456789, | |
"name": "Application", | |
"season": "2013-2014", | |
"panel": [ | |
{ | |
"name": "Child Information", | |
"field": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"form": { | |
"id": 123456789, | |
"name": "Application", | |
"season": "2013-2014", | |
"panel": [ | |
{ | |
"name": "Child Information", | |
"field": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"form": { | |
"id": 123456789, | |
"name": "Application Form", | |
"season": "2013-2014", | |
"panel": [ | |
{ | |
"name": "Child Information", | |
"field": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{:univ=>{0=>#<ProfileKidsType _id: 511209f2bf131b0c51000005, _type: "ProfileKidsType", created_at: 2013-02-07 07:17:14 UTC, updated_at: 2013-02-07 07:17:14 UTC, lname: "mishra", fname: "ankit", nickname: "anki", gender: "Male", birthdate: "09/09/2012", address1: "Hyderabad", address2: "Bangalor", city: "Asansol", state: "W.B.", zip: "33456", terms: "each_field['id']">}, :parent=>{0=>#<ProfileParentType _id: 511209f2bf131b0c5100000b, _type: "ProfileParentType", child_relationship: "Mother", lname: "mishra", fname: "swetha", email: "swetha@gmail.com", phone1: {:type=>"Mobile", :contact=>"0987654567"}, phone2: {:type=>"Home", :contact=>"0987656788"}>, 1=>#<ProfileParentType _id: 511209f2bf131b0c51000008, _type: "ProfileParentType", child_relationship: "Father", email: "abhay@gmail.com", fname: "abhay", lname: "mishra", phone1: {:type=>"Mobile", :contact=>"0987654567"}, phone2: {:type=>"Home", :contact=>"0987656788"}>}, :org=>{0=>#<OrganizationMembership _id: 511209f2bf131b0c51000007, _type: nil, created_at: 2013 |
NewerOlder