Core Application Resources ========================== While there are a number of tangential api calls that the application makes, the above description of the BaseModeLReource should give a good idea as to how to handle them. However, when it comes to making the application work, we have a number of core requests that allow us to provide data for our core functionaliy. These endpoints are listed in relative importance to the application. ``/api/v1/all_meta/`` +++++++++++++++++++++ .. autoclass:: rhizome.api.resources.all_meta.AllMetaResource Response Format ~~~~~~~~~~~~~~~ .. code-block:: json { meta: {...}, objects: [{ campaigns: , charts: , dashboards: , indicators: , indicator_tags: , indicator_to_tags: , locations: , offices: , is_supeuser: }], errors: {...} } ``/api/v1/geo/`` ++++++++++++++++ .. autoclass:: rhizome.api.resources.geo.GeoResource Response Format ~~~~~~~~~~~~~~~ .. code-block:: json { meta: {...}, objects: [{ location_id: , type: , properties , geometry: , parent_location_id: }], errors: {...} } ``/api/v1/campaign/`` +++++++++++++++++++++ .. autoclass:: rhizome.api.resources.campaign.CampaignResource Response Format ~~~~~~~~~~~~~~~ .. code-block:: json { meta: {}, objects: [ campaign_type_id: , created_at: , start_date: , end_date: , id: , name: , office_id: , pct_complete: , top_lvl_indicator_tag_id: , top_lvl_location_id: , ], errors: {} } ``/api/v1/custom_chart/`` +++++++++++++++++++++++++ .. autoclass:: rhizome.api.resources.custom_chart.CustomChartResource Response Format ~~~~~~~~~~~~~~~ .. code-block:: json { meta: {...}, objects: [{ id: , uuid: , title: , chart_json: }], errors: {...} } ``/api/v1/custom_dashboard/`` +++++++++++++++++++++++++++++ .. autoclass:: rhizome.api.resources.custom_dashboard.CustomDashboardResource Response Format ~~~~~~~~~~~~~~~ .. code-block:: json { meta: {}, objects: [ id: , title: , description: , layout: , rows: , ], errors: {} } ``/api/v1/location/`` +++++++++++++++++++++ .. autoclass:: rhizome.api.resources.location.LocationResource Response Format ~~~~~~~~~~~~~~~ .. code-block:: json { meta: {...}, objects: [{ id: , name: , latitude: , longitude: , location_code: , location_type: , office_id: , parent_location_id: , resource_uri: , created_at: "YYYY-MM-DDTHH:MM:SS.sss", }], errors: {...} } ``/api/v1/indicator/`` ++++++++++++++++++++++ .. autoclass:: rhizome.api.resources.indicator.IndicatorResource Response Format ~~~~~~~~~~~~~~~ .. code-block:: json { meta: {}, objects: [ short_name: , name: , description: , is_reported: , data_format: , created_at: , bound_json: , tag_json: , office_id: , good_bound: , bad_bound: , source_name: ], errors: {} } ``/api/v1/indicator_tag/`` ++++++++++++++++++++++++++ .. autoclass:: rhizome.api.resources.indicator_tag.IndicatorTagResource .. code-block:: json { meta: {...}, objects: [{ id: , tag_name:, parent_tag_id: }], errors: {...} } ``/api/v1/indicator_to_tag/`` +++++++++++++++++++++++++++++ .. autoclass:: rhizome.api.resources.indicator_to_tag.IndicatorToTagResource {"id": 146, "indicator__short_name": "Polio From Saliva", "indicator_id": 123, "indicator_tag__tag_name": "Perceived Threat", "indicator_tag_id": 19 Response Format ~~~~~~~~~~~~~~~ .. code-block:: json { meta: {...}, objects: [{ id: , indicator_short_name: , indicator_id: , indicator_tag_name: , indicator_tag_id: , }], errors: {...} } ``/api/v1/refresh_master/`` +++++++++++++++++++++++++++ .. autoclass:: rhizome.api.resources.refresh_master.RefreshMasterResource Response Format ~~~~~~~~~~~~~~~ .. code-block:: json { meta: {...}, objects: [{ docfile: , doc_title: , file_header: , guid: , created_at: , id: , resource_uri: }], errors: {...} } ``/api/v1/source_doc/`` +++++++++++++++++++++++ .. autoclass:: rhizome.api.resources.document.DocumentResource Response Format ~~~~~~~~~~~~~~~ .. code-block:: json { meta: {...}, objects: [{ docfile: , doc_title: , file_header: , guid: , created_at: , id: , resource_uri: }], errors: {...} } ``/api/v1/source_submission/`` ++++++++++++++++++++++++++++++ .. autoclass:: rhizome.api.resources.source_submission.SourceSubmissionResource Response Format ~~~~~~~~~~~~~~~ .. code-block:: json { meta: {...}, objects: [{ document_id: , instance_guid: , row_number: , data_date: , location_code: , campaign_code: , location_display: , submission_json: , created_at: , process_status: }], errors: {...} } ``/api/v1/transform_upload/`` +++++++++++++++++++++++++++++ .. autoclass:: rhizome.api.resources.doc_trans_form.DocTransFormResource Response Format ~~~~~~~~~~~~~~~ .. code-block:: json { meta: {...}, objects: [{ docfile: , doc_title: , file_header: , guid: , created_at: , id: , resource_uri: }], errors: {...} }