-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
224 lines (151 loc) · 10.3 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<link rel="stylesheet" href="styles/214f46ee.main.css">
<link href="http://giv2giv.org/stylesheets/font-awesome.css" media="screen" rel="stylesheet" type="text/css">
<link href="http://giv2giv.org/stylesheets/theme.css" media="screen" rel="stylesheet" type="text/css">
<link href="http://giv2giv.org/stylesheets/fonts.css" media="screen" rel="stylesheet" type="text/css">
</head>
<body ng-app="docs.giv2giv.orgApp">
<!--[if lt IE 7]>
<p class="chromeframe">You are using an outdated browser. <a href="http://browsehappy.com/">Upgrade your browser today</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to better experience this site.</p>
<![endif]-->
<!--[if lt IE 9]>
<script src="bower_components/es5-shim/es5-shim.js"></script>
<script src="bower_components/json3/lib/json3.min.js"></script>
<![endif]-->
<div style="height:50px; width:100%"></div>
<!-- Add your site or application content here -->
<header class="" id="masthead">
<nav class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<img src="http://giv2giv.org/images/giv2giv-org.png" width="20%">
</div>
</div>
</nav>
</header>
<div class="">
<api-docs url="api.giv2giv.org/api" proxy="" ssl="true" desc="Live docs for the Giv2Giv API">
<h3 class="white-text-shadow">SESSION MANAGEMENT</h3>
<endpoint url="/sessions/create.json" method="post" format="json" description="Create a user session">
<!-- <header name="email"
type="string"
description="The email of the user you wish to authenticate."
default="demo@example.com"/>
<query name="email"
type="string"
description="The email of the user you wish to authenticate."
default="demo@example.com"/>
<post name="email"
type="string"
description="The email of the user you wish to authenticate."
default="demo@example.com"/>
<json name="email"
type="string"
description="The email of the user you wish to authenticate."
default="demo@example.com"/> -->
<param name="email" type="string" description="The email of the user you wish to authenticate" default="demo@example.com">
<param name="password" type="string" description="The password used to authenticate the user" default="Super@!rdUnguess#!@Passw*rd">
</endpoint>
<endpoint url="/sessions/destroy.json" method="post" format="json" description="Sign out destroy token" auth="true">
</endpoint>
<h3 class="white-text-shadow">DONOR MANAGEMENT</h3>
<endpoint url="/donors.json" method="post" format="json" description="Create a new donor.">
<param name="email" type="string" description="The email of the user you wish to authenticate" default="demo@example.com" required="true">
<param name="password" type="string" description="The password used to authenticate the user" default="Super@!rdUnguess#!@Passw*rd" required="true">
<param name="name" type="string" description="The username for this user" default="John" required="true">
</endpoint>
<endpoint url="/donors.json" method="get" format="json" description="Show donor info" auth="true">
</endpoint>
<endpoint url="/donors.json" method="put" format="json" description="Update donor info" auth="true">
<param name="name" type="string" description="The username for this user" default="John" required="true">
</endpoint>
<h3 class="white-text-shadow">CHARITY MANAGEMENT</h3>
<endpoint url="/charity.json" method="get" format="json" description="Get a list of charities." auth="true">
</endpoint>
<endpoint url="/charity/{{param.id}}.json" method="get" format="json" description="Get info on a specific charity" auth="true">
<param name="id" type="url" description="Id of the charity" default="1234">
</endpoint>
<endpoint url="/charity/{{param.id}}/show_endowments.json" method="get" format="json" description="Show endowments granting to this charity" auth="true">
<param name="id" type="url" description="Id of the charity" default="1234">
</endpoint>
<h3 class="white-text-shadow">CHARITY GROUP MANAGEMENT</h3>
<endpoint url="/endowment/{{param.id}}/add_charity.json" method="post" format="json" description="Add a new charity to charity group">
<param name="id" type="url" description="Id of the endowment" default="1234">
<param name="charity_id" type="string" description="The id of the charity" default="1234" required="true">
</endpoint>
<endpoint url="/endowment.json" method="get" format="json" description="Get a list of endowments" auth="true">
</endpoint>
<endpoint url="/endowment.json" method="post" format="json" description="Create a new endowment" auth="true">
<param name="name" type="string" description="The name for this endowment" default="My Endowment" required="true">
<param name="amount" type="string" description="Minimum donation amount" default="5.00" required="true">
<param name="description" type="string" description="Description of charity group" default="A short description of charity group" required="true">
</endpoint>
<endpoint url="/endowment/{{param.id}}.json" method="get" format="json" description="Get the details of a specific charity group" auth="true">
<param name="id" type="url" description="Id of the charity group account" default="1234">
</endpoint>
<endpoint url="/endowment/{{param.id}}.json" method="put" format="json" description="Update the details of a specific charity group" auth="true">
<!-- <uri name="charity_id"
type="url"
description="Id of the charity group account"
default="1234"></uri>
<header name="charity_id"
type="integer"
description="Id of the charity group account"
default="1234"></header>
<query name="charity_id"
type="url"
description="Id of the charity group account"
default="1234"></query>
<post name="charity_id"
type="url"
description="Id of the charity group account."
default="1234"></post>
<json name="charity_id"
type="url"
description="Id of the charity group account."
default="1234"></json> -->
<param name="id" type="url" description="Id of the charity group account." default="1234">
</endpoint>
<h3 class="white-text-shadow">PAYMENT ACCOUNT MANAGEMENT</h3>
<endpoint url="/donors/payment_accounts.json" method="get" format="json" description="Get donor accounts." auth="true">
</endpoint>
<endpoint url="/donors/payment_accounts.json" method="post" format="json" description="Create a new donor." auth="true">
<param name="processor" type="string" description="Name of payment processor" default="Dwolla" required="true">
<param name="token" type="string" description="Payment token." default="1asdf23" required="true">
</endpoint>
<endpoint url="/donors/payment_accounts/{{param.id}}.json" method="get" format="json" description="Show specific payment account" auth="true">
<param name="id" type="url" description="Id of the payment account." default="1234">
</endpoint>
<endpoint url="/donors/payment_accounts/{{param.id}}.json" method="put" format="json" description="Update a specific payment account" auth="true">
<param name="id" type="url" description="Id of the payment account." default="1234">
<param name="processor" type="string" description="Name of payment processor" default="Dwolla" required="true">
</endpoint>
<endpoint url="/donors/payment_accounts/{{param.id}}.json" method="delete" format="json" description="Destroy payment account" auth="true">
<param name="id" type="url" description="Id of the payment account." default="1234">
<param name="processor" type="string" description="Name of account to destroy" default="Dwolla" required="true">
</endpoint>
<endpoint url="/donors/payment_accounts/{{param.id}}/donate.json" method="post" format="json" description="Donate using payment account" auth="true">
<param name="id" type="url" description="Id of the payment account." default="1234">
<param name="amount" type="integer" description="Amount to donate." default="20" required="true">
<param name="endowment_id" type="integer" description="Id of charity group to make donation to." default="13" required="true">
</endpoint>
</api-docs>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
<script src="scripts/76c21dca.plugins.js"></script>
<script src="scripts/6b865daa.modules.js"></script>
<script src="scripts/54f7c09d.scripts.js"></script>
</body>
</html>