Created
October 9, 2012 20:50
-
-
Save jwaldrip/3861329 to your computer and use it in GitHub Desktop.
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
{ | |
"resource": "Widget", | |
"description": "Api for Widget", | |
"attributes": [ | |
"id", | |
"account_id", | |
"key", | |
"name", | |
"default_location", | |
"custom_pages", | |
"premium", | |
"filter_provider_list", | |
"display_categories", | |
"created_at", | |
"updated_at", | |
"widget_medical_facilities", | |
"widget_medical_specialties", | |
"widget_medical_facility_categories", | |
"layout" | |
], | |
"actions": [ | |
{ | |
"method": "GET", | |
"path": "/api(/v:api_version)/widgets", | |
"name": "widgets", | |
"parameters": [], | |
"responds_with": "collection" | |
}, | |
{ | |
"method": "POST", | |
"path": "/api(/v:api_version)/widgets", | |
"name": null, | |
"parameters": [ | |
"account_id", | |
"key", | |
"name", | |
"default_location", | |
"custom_pages", | |
"premium", | |
"filter_provider_list", | |
"display_categories", | |
"widget_medical_facilities", | |
"widget_medical_specialties", | |
"widget_medical_facility_categories", | |
"layout", | |
"account_id", | |
"key", | |
"name", | |
"default_location", | |
"custom_pages", | |
"premium", | |
"filter_provider_list", | |
"display_categories", | |
"widget_medical_facilities", | |
"widget_medical_specialties", | |
"widget_medical_facility_categories", | |
"layout" | |
], | |
"responds_with": "member" | |
}, | |
{ | |
"method": "GET", | |
"path": "/api(/v:api_version)/widgets/:id", | |
"name": "widget", | |
"parameters": [], | |
"responds_with": "member" | |
}, | |
{ | |
"method": "PUT", | |
"path": "/api(/v:api_version)/widgets/:id", | |
"name": null, | |
"parameters": [ | |
"account_id", | |
"key", | |
"name", | |
"default_location", | |
"custom_pages", | |
"premium", | |
"filter_provider_list", | |
"display_categories", | |
"widget_medical_facilities", | |
"widget_medical_specialties", | |
"widget_medical_facility_categories", | |
"layout" | |
], | |
"responds_with": "success" | |
}, | |
{ | |
"method": "DELETE", | |
"path": "/api(/v:api_version)/widgets/:id", | |
"name": null, | |
"parameters": [], | |
"responds_with": "success" | |
}, | |
{ | |
"method": "OPTIONS", | |
"path": "/api(/v:api_version)/widgets", | |
"name": "specification_widgets", | |
"parameters": [], | |
"responds_with": "specification" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment