The following headers are mandatory for all API operations:
Accept | Always set to application/json |
Authentication |
|
curl -u api_key:api_secret \ -v https://69.64.32.124:8443/token -H "Content-Type:application/json" \ -H "Authentication: Basic YWZldGVzdGlKdWtTSlllRkJjbTVSOTZ2WlkyblRyMkk4Zm5pMTk4M0FJMHBXalAyMDExOmFmZXRlc3RzbGY3aEdyN3FWS2lJNVdQeHJjUlg3RnpUanFCaTdIMU1tSzRZVGxqMjAxMQ=="If your credentials are authenticated, you will get a OAuth Authentication Response. The token is a Bearer Token that you should use for any subsequent API calls. Pay attention to the scope that the token is bound to and the expires value that this token is good for. You can re-use the token for multiple API calls that will extend its expiration lese.
{ "app": "test-1", "scopes": "PAYMENTS TREASURY ADMIN", "token": "b2c3c4420ce6c1910212b787ecc7622ab96ea891b54f0b11a003f9c6cd8d947a", "expires": 1800 }
curl -v https://69.64.32.124:8443/chapters \
-H "Content-Type:application/json" \
-H "Authorization: Bearer b2c3c4420ce6c1910212b787ecc7622ab96ea891b54f0b11a003f9c6cd8d947a"
That's it! really :)filter | description | |
---|---|---|
all |
include failed donations attempts, by default only successful donations are returned
one of true or false |
|
m |
month selector in mm-yyyy format no pagination is applied when this filter is requested. |
|
c | numeric chapter_id of the chapter, bu default all donations are included. | |
p | numeric page counter 0 as default, and numeric value. See the next and prev HATEOAS links in the Response object. |
{ "entity": [ { Donation Summary }, { Donation Summary } ], "links": [ { "href": "https://127.0.0.1:8443/donations?m=01-2016&all=true", "rel": "self", "method": "GET" }, { "href": "https://127.0.0.1:8443/events?m=01-2016&all=true&p=101", "rel": "next", "method": "GET" } ] }
NOTE donation_id is the internal donation identifier, GET by (card processor issued) authcode/transaction is currently unavailable.
resource | resource_id | |
---|---|---|
event | numeric event event_id | /donations/event/1234 |
channel | numeric channel channel_id | /donations/channel/9999 |
project | numeric project project_id | /donations/project/1331 |
chapter | numeric chapterchapter_id | /donations/chapter/6 |
string email as email_address | /donations/event/me@ashanet.org |
{ "entity": [ { "entity": { Donation Summary }, "links": [ { "href": "https://69.64.32.124:8443/donations/project/123456", "rel": "self", "method": "GET" } ] } ], "links": [ { "href": "https://69.64.32.124:8443/donations/project/123456", "rel": "self", "method": "GET" }, { "href": "https://69.64.32.124:8443/donations/project/123456?p=1", "rel": "next", "method": "GET" } ] }
resource | resource_id | |
---|---|---|
event | numeric event event_id | /donations/counts/event/1234 |
channel | numeric channel channel_id | /donations/counts/channel/9999 |
project | numeric project project_id | /donations/counts/project/1331 |
chapter | numeric chapterchapter_id | /donations/counts/chapter/6 |
string email as email_address | /donations/counts/email/me@ashanet.org |
NOTE GET for event resource does not group by channels.
! Card donations MUST be hosted securely on TLS secured webpages, contact webmaster for integration help
NOTE Integration with https://donate.ashanet.org for processing donation/payments is recommended instead of direct integration with the APIs. See Donations Integration Guide for details
NOTE Integration with https://donate.ashanet.org for processing donation/payments, is highly recommended instead of direct integration with the APIs. See Donations Integration Guide for details
{ "entity": [ { "entity": { "id": 17, "project": null, "successful": true, "chapter": { "id": 1, "name": "SiliconValley", "website": "DEFAULT" }, "privacy": "unknown", "payment_method": "CreditCard", "donor_name": "Abir Karma", "donor_email": "karma@abir.com", "billing_address": { "city": "Santa Clara", "state": "CA" }, "card_type": "VISA", "amount": 9.99, "date_added": "2016-03-16 13:28:04.0", "approvalcode": "2253060583", "event": null }, "links": [ { "href": "https://127.0.0.1:8443/donations/17", "rel": "self", "method": "GET" } ] } ]
{ "entity": { "id": 111111, "donor_id": 7311, "project": null, "chapter": { "id": 6, "name": "Silicon Valley", "short_name": "sv", "website": "https://sv.ashanet.org/", "email": "sv@ashanet.org", "mailing_list": "ashasv-vol@yahoogroups.com", "join_list": "ashasv-vol-subscribe@yahoogroups.com", "status": { "code": 1, "description": "active", "declaring_class": "org.ashaforeducation.service.core.ChapterStatusEnum" }, "is_satellite": false, "satellite_established": 0, "parent_chapter": 0, "year_started": 1995, "year_closed": 0, "accept_donations": true, "address": { "address": "Asha for Education, Silicon Valley", "address2": "PO Box 641741", "city": "San Jose", "state": "CA", "zip": "95164-1741", "country": "USA", "country_code": "US" }, "phone": "408-394-3761", "comments": "", "last_modified": "2014-08-06 22:47:05.0", "date_added": "2002-11-05 22:53:00.0" }, "currency": null, "privacy": "unknown", "successful": true, "payment_method": "CreditCard", "donor_name": "Donor Name", "donor_email": "donor@name.com", "description": "Asha Silicon Valley Spring Run 2020 Registration 16.20.03 21:35:40 CDT", "invoice": "", "custom_note": "", "billing_address": { "address": " 1 Address St.", "address2": "", "city": "City Name", "state": "CA", "zip": "00000", "country": "OTHER" }, "card_type": "VISA", "amount": 25, "phone": "", "receipt": 0, "date_sent": null, "how_heard": null, "referral": "", "http_ref": "", "organization": "", "join_list": false, "company_id": 0, "comments": "", "notes": null, "last_modified": "2016-03-29 20:40:10.0", "date_added": "2016-03-21 02:35:43.0", "responsecode": "1", "authresponse": "\n This transaction has been approved.", "approvalcode": "06274C", "event": null, "channel_id": 0, "cart": "", "order":[] "ip": "73.202.55.173", "host": "NA" }, "links": [ { "href": "https://127.0.0.1:8443/donations/111111", "rel": "self", "method": "GET" } ] }
{ "item": 123456 "count": 4 }
{ "entity": { "total": 312, "count": 14 }, "links": [ { "href": "https://127.0.0.1:8443/donations/counts/event/832", "rel": "self", "method": "GET" } ] }
{ "sandbox" : false, "notify" : true, "donation_amount" : 101.0, "donor_first_name" : "Jon", "donor_last_name" : "Doe", "donor_email" : "jondoe@email.com", "address" : { "address_one" : "address street", "address_two" : "Apt. 101", "town_name" : null, "city" : "San Jose", "district_name" : null, "state" : "CA", "zip_code" : "95054", "country" : "USA", "country_code" : null }, "payment_method" : "CREDITCARD", "card_expiration_month" : "12", "card_expiration_year" : "2050", "card_number": "4242424242424242", "donation_app_url" : "donate.ashanet.org", "donation_callback_url" : "https://donate.ashanet.org/index.php", "project" : null, "chapter" : { "id" : 58, "name" : "General Funds", "shortName" : "treasurer", "website_url" : "https://www.ashanet.org", "email" : "treasurer@ashanet.org", "mailing_list" : , "join_list" : , "status" : CLOSED, "is_satellite" : false, "satellite_established" : 0, "parent_chapter_id" : 0, "year_started" : 1991, "year_closed" : 0, "accept_donations" : true, "address" : { "address_one" : "Asha for Education", "address_two" : "P.O. Box 322", "town_Name" : null, "city" : "New York", "district_name" : null, "state" : NY, "zip_code" : "10040-0322", "country" : "USA", "country_code" : "US" }, "phone" : "1-877-811-6943", "comments" : "this is not an actual chapter, but funds are disbursed through the asha general funds account for certain projects. previously called master account.", "lastModified" : "2012-12-10 16:03:26.0", "dateAdded" : "2002-12-04 18:10:00.0" }, "event" : null, "channelId" : 0, "donation_description" : null, "donation_comment" : "some random comment", "cart" : null, "donation_private" : false, "donation_amount_private" : false, "donor_join_list" : 0, "payment_id" : null, "payer_id" : null, "donor_IP" : null, "donor_host_name" : null, "creation_time" : null }
{ "success" : true, "transaction_id" : "8320928593", "response_code" : "01596R", "response_message" : "I00001 Successful.", "donation" : Donation Object, "approval_url" : null }
{ "entity": [ { "entity": { Subscription Summary }, "links": [ { "href": "https://127.0.0.1:8443/subscriptions/123456", "rel": "self", "method": "GET" } ] } ], "links": [ { "href": "https://127.0.0.1:8443/subscriptions/, "rel": "self", "method": "GET" } ] }
NOTE subscription_id is the internal recurring donation id (see subscription object).
NOTE billing_agreement is a PayPal Recurring Payments Billing Agreement id.
NOTE Integration with https://donate.ashanet.org is highly recommeneded instead of using this API directy, see Donation Integration Guide for details.
{ "entity": [ { "entity": { "id": 98988, "complete": 0, "donor": { "id": 1, "firstname": "Recurring", "lastname": "Donor", "email": "recurring.donor@email.com" "address": { "city": "San Jose", "state": "CA" } }, "amount": "100.00", "period": "1", "donor_name": "Abir Karma", "num": "0", "num_completed": "2", "start_month": "12", "description": "Monthly Donation for Asha for Education", }, "links": [ { "href": "https://127.0.0.1:8443/subscriptions/98988", "rel": "self", "method": "GET" } ] } ]
{ "entity": { "id": 9999999999, "completed": 0, "donor": { "id": 81278, "firstname": "Jon", "lastname": "Doe", "is_volunteer": false, "current_chapter": 0, "email": "jondoe@email.com", "address": { "country": "USA" }, "home_phone": null, "work_phone": null, "cell_phone": null, "comments": null, "is_donor": true, "is_same_address": true, "billing_address": { "country": "USA" }, "mailing_list": false, "privacy": "unknown", "last_modified": "2015-05-28 11:23:45.0", "date_added": "2015-05-28 11:23:45.0" }, "project_id": null, "chapter_id": 6, "event_id": 0, "channel_id": 0, "amount": 20, "period": 1, "num": null, "num_completed": null, "start_month": 1, "description": "PAYPAL-SUBSCRIPTION I-XXXXXXXXXXXX", "receipt": null, "how_heard": null, "comments": "", "last_modified": "2016-01-07 01:42:53.0", "date_added": "2016-01-07 01:42:53.0" }, "links": [ { "href": "https://69.64.32.124:8443/subscriptions/9999999999", "rel": "self", "method": "GET" } ] }
{ "success" : true, "subscription_id" : "8320928593", "subscription_term" : "MONTH", "initial_payment_amount" : 20.00, "responseMessage" : "Created", "subscription" : { Subscription }, "approval_url" : null }
filter | description |
---|---|
id |
Comma separated (one or more) project_id of the projects NOTE project.stats are skipped in this view and are only set while loading a single project by its project_id NOTE Its recommended to limit upto 20 comma separated project_id in query string. |
{ "entity": [ { Project Summary }, { Project Summary } ], "links": [ { "href": "https://127.0.0.1:8443/donations/project/?id=123456,234567", "rel": "self", "method": "GET" } ] }
{ "entity": { Project }, "links": [ { "href": "https://69.64.32.124:8443/project/123456", "rel": "self", "method": "GET" }, { "href": "https://69.64.32.124:8443/grants/project/123456", "rel": "project_grants", "method": "GET" }, { "href": "https://69.64.32.124:8443/donations/counts/project/123456", "rel": "project_donations", "method": "GET" }, { "href": "https://69.64.32.124:8443/documents/project/123456", "rel": "project_documents", "method": "GET" } ] }
resource | resource_id | |
---|---|---|
chapter | numeric chapter chapter_id | /projects/chapter/6 |
types | numeric project_type id | /projects/types/3 |
focus | numeric project_focus id | /projects/focus/2 |
state | numeric state state_id | /projects/state/2 |
status | numeric project_status status_id | /projects/status/12 |
name |
partner/organization or project nameno spaces or special characters allowed in the name, escape spaces with a '+' symbol. string is fuzzy matched with project or organization name |
/projects/partner/BASERA |
{ "entity": [ { Project.Stats }, { Project.Stats } ], "links": [ { "href": "https://127.0.0.1:8443/projects/1/details", "rel": "self", "method": "GET" } ] }
{ "entity": [ { Project Focus }, { Project Focus ], "links": [ { "href": "https://127.0.0.1:8443/projects/project_focus", "rel": "self", "method": "GET" } ] }
{ "entity": { "id": 1, "name": "Fellowship: Vallabh", "type": { "id": 2, "name": "Fellowship" }, "chapter": { "id": 1, "name": "SiliconValley", "website": "https://www.ashanet.org/", "status": { "description": "active" } }, "status": { "description": "current/ongoing" }, "brief": "fellowship project test", "organization": "fellow", "asha_webpage": null, "address": { "city": "Kaithai", "state": "Rajasthan" } }
{ "entity": { "id": 879, "name": "TRUWDES - School for Tribal Children, Manjampatti", "short_name": "", "proposal": false, "type": { "id": 17, "name": "Residential School", "description": "Asha supports projects which are residential schools for children. The students learn traditional reading, writing, and arithmetic - but also learn cleanliness, community service, and other skills that are not taught in a regular school." }, "chapter": { "id": 6, "name": "Silicon Valley", "short_name": "sv", "website": "https://sv.ashanet.org/", "email": "sv@ashanet.org", "mailing_list": "ashasv-vol@yahoogroups.com", "join_list": "ashasv-vol-subscribe@yahoogroups.com", "status": { "code": 1, "description": "active", "declaring_class": "org.ashaforeducation.service.core.ChapterStatusEnum" }, "is_satellite": false, "satellite_established": 0, "parent_chapter": 0, "year_started": 1995, "year_closed": 0, "accept_donations": true, "address": { "address": "Asha for Education, Silicon Valley", "address2": "PO Box 641741", "city": "San Jose", "state": "CA", "zip": "95164-1741", "country": "USA", "country_code": "US" }, "phone": "408-394-3761", "comments": "", "last_modified": "2014-08-06 22:47:05.0", "date_added": "2002-11-05 22:53:00.0" }, "status": { "code": 1, "description": "current/ongoing", "declaring_class": "org.ashaforeducation.service.core.ProjectStatusEnum" }, "steward": { "id": 46787, "firstname": "Madhu", "lastname": "Kakarala", "is_volunteer": true, "current_chapter": 6, "email": "tomadhu@yahoo.com", "address": { "address": "", "address2": "", "city": "", "state": "", "zip": "", "country": "" }, "home_phone": "", "work_phone": "", "cell_phone": "", "comments": "", "is_donor": true, "is_same_address": true, "billing_address": { "address": "1744 Ledgewood Drive", "address2": "", "city": "San Jose", "state": "CA", "zip": "95124", "country": "OTHER" }, "mailing_list": false, "privacy": "unknown", "last_modified": "2012-06-26 19:38:42.0", "date_added": "2009-07-13 04:18:04.0" }, "co-steward": { "id": 30080, "firstname": "Bhaskar", "lastname": "Venkateswaran", "is_volunteer": true, "current_chapter": 33, "email": "bhasve@gmail.com", "address": { "address": "19/17, Veenus Apartments,", "address2": "Venus Colony 2nd Street, Alwarpet", "city": "Chennai", "state": "TamilNadu", "zip": "600018", "country": "2" }, "home_phone": "", "work_phone": "", "cell_phone": "+91-9884437340", "comments": "", "is_donor": null, "is_same_address": true, "billing_address": { "address": "", "address2": "", "city": "", "state": "", "zip": "", "country": "OTHER" }, "mailing_list": null, "privacy": "unknown", "last_modified": "2011-08-02 13:08:07.0", "date_added": "2007-08-30 07:16:50.0" }, "partner": { "id": 33299, "firstname": "Alexander", "lastname": "J", "is_volunteer": false, "current_chapter": 0, "email": "truwdes@rediffmail.com", "address": { "address": "", "address2": "", "city": "", "state": "", "zip": "", "country": "" }, "home_phone": "", "work_phone": "", "cell_phone": "+91-9360523555", "comments": "Secretary, TRUWDES", "is_donor": null, "is_same_address": true, "billing_address": { "address": "", "address2": "", "city": "", "state": "", "zip": "", "country": "OTHER" }, "mailing_list": null, "privacy": "unknown", "last_modified": "2007-11-07 05:15:57.0", "date_added": "2007-11-07 05:15:57.0" }, "focus": { "id": 15, "name": "children of dalits/tribals", "description": "this project focuses on children of dalits or children of tribals" }, "focus2": null, "focus3": null, "brief": "Primary school in Manjampatti village, a tribal hamlet in Kodai hills, TamilNadu, educating about 60 tribal children from 3 hamlets with no other schools nearby.", "description": "Trichirapalli Rural and Urban Welfare Development Educational Society (TRUWDES) in Trichy, TamilNadu has been running a school for tribal children in Manjampatti village, a tribal hamlet in Kodai hills, for the past five years targeting tribal children from 3-5 villages/hamlets nearby. There are no link roads, no electricity (except some solar lamps), no schools, no ration shop and no shops in these villages. The only way to reach the villages is by trekking about 3-4 hours through reserved forests, after taking permission from the forest department.\r\n\r\nManjampatti, the main village in this hilly area, and the villages nearby are predominantly inhabited by tribals or \"Adivasis\" who live off the land. Being in the midst of reserved forests, the people are forced to protect their crops from wild elephants, bison, wild boar, deer, etc. Once they harvest their crops (mostly just paddy), they have to hire ponies to take them down to Udumalpet (closest big town, about 50km away) and sell them there. The main village has about 60-70 families.", "purpose": "", "org_webpage": "", "asha_webpage": "", "sac": false, "email": "truwdes@rediffmail.com", "project_mailing_list": "", "location": { "id": 1, "name": "Rural/Tribal", "declaring_class": "org.ashaforeducation.service.core.ProjectLocationEnum" }, "address": { "address": "Vallalar Thai Tamil Palli", "address2": "Keelanavayal Post, Manavanur via", "city": "Ma.Manjampatti", "state": "TAMIL NADU", "zip": "", "country": "INDIA" }, "phone": "", "fax": "", "asha_star": false, "memo": null, "comments": "", "accept_donations": true, "photos": [ "" ], "video": "", "story": "", "album": "", "stats": [ { "id": 328, "start_year": 2008, "end_year": 0, "standards": "1-8", "teachers": 2, "children": 63, "boys": 41, "girls": 22, "adult_males": 0, "adult_females": 0, "comments": "" } ], "last_modified": "2014-05-20 01:54:06.0", "date_added": "2007-11-07 05:20:32.0" }, "links": [ { "href": "https://69.64.32.124:8443/projects/879", "rel": "self", "method": "GET" }, { "href": "https://69.64.32.124:8443/grants/project/879", "rel": "project_grants", "method": "GET" }, { "href": "https://69.64.32.124:8443/donations/counts/project/879", "rel": "project_donations", "method": "GET" }, { "href": "https://69.64.32.124:8443/documents/project/879", "rel": "project_documents", "method": "GET" } ] }
{ "entity": { "id": 1, "start_year": 2015, "end_year": 2016, "standards": "8", "teachers": 12, "children": 120, "boys": 60, "girls": 60, "adult_males": 0, "adult_females": 0, "comments": "2015 stats" }, "links": [ { "href": "https://127.0.0.1:8443/projects/1/details/1", "rel": "self", "method": "GET" } ] }
{ "entity": { "id": 1, "name": "Government Schools", "description": "something" }, "links": [ { "href": "https://127.0.0.1:8443/projects/project_focus/1", "rel": "self", "method": "GET" } ] }
{ "entity": { "id": 1, "name": "Formal Schools", "description": "formal formal formal" }, "links": [ { "href": "https://127.0.0.1:8443/projects/project_types/1", "rel": "self", "method": "GET" } ] }
[ { "id": 0, "name": "unknown or not specified", "declaring_class": "org.ashaforeducation.service.core.ProjectStatusEnum" }, { "id": 1, "name": "current/ongoing", "declaring_class": "org.ashaforeducation.service.core.ProjectStatusEnum" }, { "id": 2, "name": "completed - requirements ended", "declaring_class": "org.ashaforeducation.service.core.ProjectStatusEnum" }, { "id": 3, "name": "completed - sustainable", "declaring_class": "org.ashaforeducation.service.core.ProjectStatusEnum" }, { "id": 4, "name": "completed - things went wrong", "declaring_class": "org.ashaforeducation.service.core.ProjectStatusEnum" }, { "id": 5, "name": "proposal - evaluation by chapter", "declaring_class": "org.ashaforeducation.service.core.ProjectStatusEnum" }, { "id": 6, "name": "proposal - received", "declaring_class": "org.ashaforeducation.service.core.ProjectStatusEnum" }, { "id": 7, "name": "terminated", "declaring_class": "org.ashaforeducation.service.core.ProjectStatusEnum" }, { "id": 8, "name": "rejected", "declaring_class": "org.ashaforeducation.service.core.ProjectStatusEnum" }, { "id": 9, "name": "support ended", "declaring_class": "org.ashaforeducation.service.core.ProjectStatusEnum" }, { "id": 10, "name": "proposal - closed", "declaring_class": "org.ashaforeducation.service.core.ProjectStatusEnum" } ]
[ { "id": 0, "name": "Urban/City", "declaring_class": "org.ashaforeducation.service.core.ProjectLocationEnum" }, { "id": 1, "name": "Rural/Tribal", "declaring_class": "org.ashaforeducation.service.core.ProjectLocationEnum" }, { "id": 2, "name": "Sub-Urban", "declaring_class": "org.ashaforeducation.service.core.ProjectLocationEnum" } ]
filter | description |
---|---|
all |
include inactive and/or defunct or chapters with treasury hold, by default only active chapters are returned one of true or false |
{ "entity": [ { Chapter Summary }, { Chapter Summary } ], "links": [ { "href": "https://127.0.0.1:8443/chapters", "rel": "self", "method": "GET" } ] }
{ "entity": { "id": 1, "name": "SiliconValley", "website": "https://www.ashanet.org/", "email": null, "mailing_list": null, "status": { "description": "active" }, "year_started": null, "address": { "city": "new", "state": "new" }, "team": [ { "id": 1, "chapter": 1, "person": { "id": 14, "firstname": "test", "lastname": "User", "email": "aarohi.amit@gmail.com", "address": { "city": "San Jose", "state": "CA" }, "cell_phone": null }, "role": { "id": 2, "name": "coordinator" } }, { "id": 2, "chapter": 1, "person": { "id": 17, "firstname": "Asha", "lastname": "Doner", "email": "amitsharma04@yahoo.com", "address": { "city": "", "state": "" }, "cell_phone": null }, "role": { "id": 3, "name": "project coordinator" } } ] }, "links": [ { "href": "https://127.0.0.1:8443/chapters/1", "rel": "self", "method": "GET" } ] }Chapter Summary
{ "entity": { "id": 3, "name": "Varanasi", "website": "https://www.ashanet.org/", "status": { "description": "active" } }, "links": [ { "href": "https://127.0.0.1:8443/chapters/3", "rel": "self", "method": "GET" } ] }Chapter
{ "entity": { "id": 1, "name": "SiliconValley", "short_name": "SV", "website": "https://www.ashanet.org/", "email": "coordinator@ashanet.org", "mailing_list": "coordinator@ashanet.org", "join_list": null, "status": { "code": 1, "description": "active", "declaring_class": "org.ashaforeducation.service.core.ChapterStatusEnum" }, "is_satellite": false, "satellite_established": null, "parent_chapter": null, "year_started": null, "year_closed": null, "accept_donations": true, "address": { "address": "new", "city": "new", "state": "new", "zip": "new", "country": "USA", "country_code": "US" }, "phone": null, "comments": null, "last_modified": "2016-02-19 23:01:20.0", "date_added": null }, "links": [ { "href": "https://127.0.0.1:8443/chapters/1", "rel": "self", "method": "GET" }, { "href": "https://127.0.0.1:8443/projects/chapter/1", "rel": "chapter_projects", "method": "GET" }, { "href": "https://127.0.0.1:8443/grants/counts/chapter/1", "rel": "chapter_grants", "method": "GET" } ] }Chapter Status
[ { "code": 0, "description": "closed", "declaring_class": "org.ashaforeducation.service.core.ChapterStatusEnum" }, { "code": 1, "description": "active", "declaring_class": "org.ashaforeducation.service.core.ChapterStatusEnum" }, { "code": 2, "description": "hold", "declaring_class": "org.ashaforeducation.service.core.ChapterStatusEnum" } ]
{ "entity": [ { Event Summary }, { Event Summary } ], "links": [ { "href": "https://127.0.0.1:8443/events", "rel": "self", "method": "GET" }, { "href": "https://127.0.0.1:8443/events?p=1", "rel": "next", "method": "GET" } ] }
{ "entity": [ { Event Summary }, { Event Summary } ], "links": [ { "href": "https://127.0.0.1:8443/events", "rel": "self", "method": "GET" }, { "href": "https://127.0.0.1:8443/events?p=1", "rel": "next", "method": "GET" } ] }
{ "entity": { Event }, "links": [ { "href": "https://127.0.0.1:8443/events/5", "rel": "self", "method": "GET" }, { "href": "https://127.0.0.1:8443/donations/event/5", "rel": "event_donations", "method": "GET" }, { "href": "https://127.0.0.1:8443/donations/counts/event/5", "rel": "donation_counts", "method": "GET" } ] }
{ "entity": [ { "entity": { "id": 5, "chapter_id": 1, "title": "Runner Campaign", "name": "Runner Campaign", "email": "foobar@yahoo.com", "active": true }, "links": [ { "href": "https://127.0.0.1:8443/events/5", "rel": "self", "method": "GET" } ] } ], "links": [ { "href": "https://127.0.0.1:8443/events", "rel": "self", "method": "GET" }, { "href": "https://127.0.0.1:8443/events/?p=1", "rel": "next", "method": "GET" } ] }
{ "entity": { "id": 5, "chapter_id": 1, "project_id": null, "title": "Runner Campaign", "name": "Runner Campaign", "email": "test@foo.com", "description": "description", "active": true, "channels": [ { "id": 8, "title": "Runner Test Runner 2016", "name": "Runner Test Runner 2016", "description": "Runner Description", "amount": 0, "total": 0, "available": 0, "email": "test@foo.com", "active": true, "last_modified": "2016-03-11 12:43:43.0", "date_added": "2016-03-11 12:43:43.0" }, { "id": 9, "title": "Runner New Runner 2016", "name": "Runner New Runner 2016", "description": "Runner 2 Description", "amount": 0, "total": 0, "available": 0, "email": "test@yahoo.com", "active": true, "last_modified": "2016-03-11 12:44:01.0", "date_added": "2016-03-11 12:44:01.0" } ], "last_modified": "2016-03-11 12:41:39.0", "date_added": "2016-03-11 12:41:39.0" }, "links": [ { "href": "https://127.0.0.1:8443/events/5", "rel": "self", "method": "GET" }, { "href": "https://127.0.0.1:8443/donations/event/5", "rel": "event_donations", "method": "GET" } ] }
{ "id": 5, "chapter_id": 1, "project_id": null, "title": "Runner Campaign", "name": "Runner Campaign", "email": "test@foo.com", "description": "description", "active": true, "channels": [ { "id": 8, "title": "Runner Test Runner 2016", "name": "Runner Test Runner 2016", "description": "Runner Description", "amount": 0, "total": 0, "available": 0, "email": "test@foo.com", "active": true, "last_modified": "2016-03-11 12:43:43.0", "date_added": "2016-03-11 12:43:43.0" }, { "id": 9, "title": "Runner New Runner 2016", "name": "Runner New Runner 2016", "description": "Runner 2 Description", "amount": 0, "total": 0, "available": 0, "email": "test@yahoo.com", "active": true, "last_modified": "2016-03-11 12:44:01.0", "date_added": "2016-03-11 12:44:01.0" } ], "remove": [ 10, 11, 12 ] }
{ "id": 8, "title": "Runner Test Runner 2016", "name": "Runner Test Runner 2016", "description": "Runner Description", "amount": 0, "total": 0, "available": 0, "email": "foo@yahoo.com", "active": true, "last_modified": "2016-03-11 12:43:43.0", "date_added": "2016-03-11 12:43:43.0" }
resource | resource_id | |
---|---|---|
chapter | numeric chapter chapter_id | /grants/chapter/6 |
project | numeric project_type id | /grants/project/3 |
year | numeric year in YYYY format | /grants/year/2015 |
{ "entity": [ { "entity": { "id": 6008, "chapter": 1, "project": 1, "currency": "INR", "amount": 11900, "year": 2016, "month": 9 }, "links": [ { "href": "https://127.0.0.1:8443/grants/6008", "rel": "self", "method": "GET" } ] } ], "links": [ { "href": "https://127.0.0.1:8443/grants/", "rel": "self", "method": "GET" }, { "href": "https://127.0.0.1:8443/grants?p=4", "rel": "next", "method": "GET" }, { "href": "https://127.0.0.1:8443/grants?p=2", "rel": "prev", "method": "GET" } ] }
{ "entity": { "id": 6005, "chapter": 1, "project": 1, "currency": "USD", "amount": 10400, "year": 2014, "month": 12, "day": 3, "comments": "test1", "last_modified": "2016-05-10 15:06:08.0", "date_added": "2016-05-10 15:06:08.0" }, "links": [ { "href": "https://127.0.0.1:8443/grants/6005", "rel": "self", "method": "GET" } ] }
{ "entity": [ Document Summary ], "links": [ { "href": "https://127.0.0.1:8443/documents/", "rel": "self", "method": "GET" } ] }
{ "entity": { "id": 1, "name": "Proposal", "description": "proposal for a project", "last_modified": "2002-12-04 23:06:00.0", "date_added": "2002-12-04 23:06:00.0" }, "links": [ { "href": "https://127.0.0.1:8443/documents/doctypes/1", "rel": "self", "method": "GET" } ] }
{ "entity": { "id": 16593, "project": 1, "type": { "id": 12, "name": "project proposal" }, "name": "proposal1", "month": 12, "year": 2015, "webpage": "https://ashanet.org/project-new/documents/12345/report.docx", "date_added": "2016-05-10 20:36:32.0" }, "links": [ { "href": "https://127.0.0.1:8443/documents/16593", "rel": "self", "method": "GET" } ] }
{ "entity": { "id": 16593, "project": 1, "type": { "id": 12, "name": "project proposal", "description": "test description", "last_modified": "2016-05-10 20:34:38.0", "date_added": "2016-05-10 20:34:38.0" }, "name": "proposal1", "month": 12, "day": 3, "year": 2015, "webpage": "https://ashanet.org/project-new/documents/12345/report.docx", "url": null, "text": null, "comments": "test", "last_modified": "2016-05-10 20:36:32.0", "date_added": "2016-05-10 20:36:32.0" }, "links": [ { "href": "https://127.0.0.1:8443/documents/16593", "rel": "self", "method": "GET" } ] }
{ "entity": [ { "entity": { "id": 1, "name": "Proposal", "description": "proposal for a project", "last_modified": "2002-12-04 23:06:00.0", "date_added": "2002-12-04 23:06:00.0" }, "links": [ { "href": "https://127.0.0.1:8443/documents/doctypes/1", "rel": "self", "method": "GET" } ] }, { "entity": { "id": 2, "name": "Site Visit Report", "description": "project site visit report", "last_modified": "2002-12-04 23:06:00.0", "date_added": "2002-12-04 23:06:00.0" }, "links": [ { "href": "https://127.0.0.1:8443/documents/doctypes/2", "rel": "self", "method": "GET" } ] }, { "entity": { "id": 3, "name": "Progress Report", "description": "project progress report", "last_modified": "2002-12-04 23:06:00.0", "date_added": "2002-12-04 23:06:00.0" }, "links": [ { "href": "https://127.0.0.1:8443/documents/doctypes/3", "rel": "self", "method": "GET" } ] }, { "entity": { "id": 4, "name": "Financial Report", "description": "project financial report", "last_modified": "2002-12-04 23:06:00.0", "date_added": "2002-12-04 23:06:00.0" }, "links": [ { "href": "https://127.0.0.1:8443/documents/doctypes/4", "rel": "self", "method": "GET" } ] }, { "entity": { "id": 5, "name": "Questions and Discussion", "description": "questions on a project or project proposal and/or chapter discussion. Includes chapter projects meeting, minutes of a meeting, conference call, etc.", "last_modified": "2002-12-04 23:06:00.0", "date_added": "2002-12-04 23:06:00.0" }, "links": [ { "href": "https://127.0.0.1:8443/documents/doctypes/5", "rel": "self", "method": "GET" } ] }, { "entity": { "id": 6, "name": "FAQ", "description": "frequently asked questions about a project", "last_modified": "2002-12-04 23:06:00.0", "date_added": "2002-12-04 23:06:00.0" }, "links": [ { "href": "https://127.0.0.1:8443/documents/doctypes/6", "rel": "self", "method": "GET" } ] }, { "entity": { "id": 7, "name": "Student / Teacher List", "description": "List of students, teachers, directors, etc.", "last_modified": "2003-01-02 21:40:00.0", "date_added": "2003-01-02 21:40:00.0" }, "links": [ { "href": "https://127.0.0.1:8443/documents/doctypes/7", "rel": "self", "method": "GET" } ] }, { "entity": { "id": 8, "name": "Other", "description": "Use this if your document/report does not fit into any of the other categories.", "last_modified": "2003-01-08 00:21:00.0", "date_added": "2003-01-08 00:21:00.0" }, "links": [ { "href": "https://127.0.0.1:8443/documents/doctypes/8", "rel": "self", "method": "GET" } ] }, { "entity": { "id": 9, "name": "Photos", "description": "Document containing photos from the project.", "last_modified": "2003-01-08 00:21:00.0", "date_added": "2003-01-08 00:21:00.0" }, "links": [ { "href": "https://127.0.0.1:8443/documents/doctypes/9", "rel": "self", "method": "GET" } ] }, { "entity": { "id": 10, "name": "Conference Call", "description": "This document/report is from a conference call between members, between members and the project, etc.", "last_modified": "2003-01-08 05:24:00.0", "date_added": "2003-01-08 05:24:00.0" }, "links": [ { "href": "https://127.0.0.1:8443/documents/doctypes/10", "rel": "self", "method": "GET" } ] }, { "entity": { "id": 11, "name": "WAH Proposal", "description": "Work An Hour Proposal", "last_modified": "2015-09-21 23:08:04.0", "date_added": null }, "links": [ { "href": "https://127.0.0.1:8443/documents/doctypes/11", "rel": "self", "method": "GET" } ] } ], "links": [ { "href": "https://127.0.0.1:8443/documents/doctypes", "rel": "self", "method": "GET" } ] }