Skip to content

Commit

Permalink
Merge pull request #264 from OCHA-DAP/docs/HDXDSYS-1328/add-changelog
Browse files Browse the repository at this point in the history
HDXDSYS-1328 add rtd changelog
  • Loading branch information
alexandru-m-g authored Nov 26, 2024
2 parents 8af64f1 + 40ade64 commit 2029054
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 50 deletions.
1 change: 1 addition & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
mkdocs~=1.5.2
mkdocs-include-markdown-plugin~=7.1.1
mkdocs-material~=9.2.6
mkdocs-table-reader-plugin~=2.2.2

Expand Down
32 changes: 32 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# HDX HAPI Changelog

HDX HAPI is built on several interconnected codebases:

- [hdx-hapi](https://github.com/OCHA-DAP/hdx-hapi): provides the API endpoints,
API documentation, and ReadTheDocs
- [hapi-sqlalchemy-schema](https://github.com/OCHA-DAP/hapi-sqlalchemy-schema):
defines the schema for the underlying database
- [hapi-pipelines](https://github.com/OCHA-DAP/hapi-pipelines)
handles data collection and transformation from HDX, populating the
database with structured datasets
- [hapi-pipelines-prod](https://github.com/OCHA-DAP/hapi-pipelines-prod),
a clone of `hapi-pipelines` used for deployment

Below we outline the major changes and updates to the production version of
the API.

## Latest changes

### 2024-11-21

- Increased geographical coverage to global for
baseline population and poverty rate subcategories

### 2024-11-11

- Gender, age, and disability disaggregation in
humanitarian needs reduced to a single freeform category column
- Switch from using Cadre Harmonisé to IPC for food security data.
This change entails that geographical coverage is expanded to global,
and involves p-coding the administrative names.
- Added `provider_admin1_name` and `provider_admin2_name` columns
72 changes: 24 additions & 48 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,60 +1,36 @@
# Overview
# HDX HAPI

The [HDX Humanitarian API](https://data.humdata.org/hapi) (HDX HAPI) is a way to access standardised indicators from multiple sources to automate workflows and visualisations.
The [HDX Humanitarian API](https://hapi.humdata.org) (HDX HAPI) is a way
to access standardised indicators from multiple sources to automate workflows
and visualisations.

HDX HAPI is in beta phase, and we are seeking feedback. To share your thoughts or join our slack channel, send an email to [hdx@un.org](mailto:hdx@un.org).
HDX HAPI is in beta phase, and we are seeking feedback. To share your thoughts
or join our Slack channel, send an email to [hdx@un.org](mailto:hdx@un.org).

# Data Coverage
Thematically, HAPI aims to include all the data sub-categories from the [HDX data grids](https://data.humdata.org/dashboards/overview-of-data-grids).
Geographically, HAPI focuses on all countries that have a humanitarian response plan but also includes other countries for which the data is available.
The [Data Availability Table](https://data.humdata.org/hapi#data-availability) details the data coverage that we have achieved at present, and to which administrative level the data is available: national (admin 0),
admin 1, or admin 2.
## Data Coverage

# App Identifier
Thematically, HAPI aims to include all the data subcategories from the
[HDX data grids](https://data.humdata.org/dashboards/overview-of-data-grids).
Geographically, HAPI focuses on all countries that have a humanitarian response
plan but also includes other countries for which the data is available.
The [Data Availability Table](https://data.humdata.org/hapi#data-availability)
details the data coverage that we have achieved at present, and to which
administrative level the data is available: national (admin 0), admin 1,
or admin 2.

To access HDX HAPI you need to generate an API identifier. This can be done via the the [sandbox interface encode_identifier endpoint](https://hapi.humdata.org/docs#/Utility/get_encoded_identifier_api_v1_encode_identifier_get). Enter your application name and email address and it will return the app identifier. The key must be included as a query string parameter e.g.
## Latest Changes

```
https://hapi.humdata.org/api/v1/themes/3w?app_identifier={your app identifier}
```
_Note: this is only a 10-line snippet, for full details please refer
to the complete [changelog](changelog.md)._

We may use the email address to reach out to you directly about usage issues or to learn more about how you are using HAPI, but will not use it for any automated bulk mailings. See the [Terms of Service](https://data.humdata.org/hapi/terms) for more information.
--8<-- "docs/changelog.md:18:30"

# The Structure of HDX HAPI
## Terms Of Use

## Data Subcategory Endpoints
HDX HAPI is organised around a set of key humanitarian data subcategories like **Baseline Population** and **Conflict Events**. Each of these subcategories can be queried via its endpoint.

### Current list of data subcategory endpoints in HAPI

#### Affected People

- [Refugees & Persons of Concern](https://hapi.humdata.org/docs#/Affected%20people/get_refugees_api_v1_affected_people_refugees_get)
- [Humanitarian Needs](https://hapi.humdata.org/docs#/Affected%20people/get_humanitarian_needs_api_v1_affected_people_humanitarian_needs_get)
- [Internally Displaced Persons](https://hapi.humdata.org/docs#/Affected%20People/get_idps_api_v1_affected_people_idps_get)
- [Returnees](https://hapi.humdata.org/docs#/Affected%20People/get_returnees_api_v1_affected_people_returnees_get)

#### Coordination & Context

- [Who is Doing What Where - Operational Presence](https://hapi.humdata.org/docs#/Coordination%20%26%20Context/get_operational_presence_api_v1_coordination_context_operational_presence_get)
- [Funding](https://hapi.humdata.org/docs#/Coordination%20%26%20Context/get_funding_api_v1_coordination_context_funding_get)
- [Conflict Events](https://hapi.humdata.org/docs#/Coordination%20%26%20Context/get_conflict_event_api_v1_coordination_context_conflict_event_get)
- [National Risk](https://hapi.humdata.org/docs#/Coordination%20%26%20Context/get_national_risk_api_v1_coordination_context_national_risk_get)

#### Food Security & Nutrition

- [Food Security](https://hapi.humdata.org/docs#/Food%20Security%20%26%20Nutrition/get_food_security_api_v1_food_food_security_get)
- [Food Prices](https://hapi.humdata.org/docs#/Food%20Security%20%26%20Nutrition/get_food_price_api_v1_food_food_price_get)

#### Population & Socio-economy

- [Baseline Population](https://hapi.humdata.org/docs#/Population%20%26%20Socio-Economy/get_population_api_v1_population_social_population_get)
- [Poverty Rate](https://hapi.humdata.org/docs#/Population%20%26%20Socio-Economy/get_poverty_rate_api_v1_population_social_poverty_rate_get)

# Terms Of Use

Use of HDX HAPI is governed by the [HDX HAPI Terms of Use](https://data.humdata.org/hapi/terms).
Use of HDX HAPI is governed by the
[HDX HAPI Terms of Use](https://data.humdata.org/hapi/terms).

## FAQS

Please [refer to the landing page](https://data.humdata.org/hapi) for non-technical FAQs
Please [refer to the landing page](https://data.humdata.org/hapi)
for non-technical FAQs
3 changes: 1 addition & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ site_name: HDX HAPI - The Humanitarian API
nav:
- Home: index.md
- Getting Started: getting-started.md
- Data Availability: https://ocha-dap.github.io/viz-hapi-availability/
- Code Examples: examples.md
- Data Usage Guide:
- Affected People: data_usage_guides/affected_people.md
Expand All @@ -12,6 +11,7 @@ nav:
- Metadata: data_usage_guides/metadata.md
- Enums: data_usage_guides/enums.md
- Geo Data: geo.md
- Changelog: changelog.md
- Contact: contact.md
theme:
name: "material"
Expand All @@ -31,4 +31,3 @@ plugins:
base_path: "docs_dir"
extra_css:
- extra.css

0 comments on commit 2029054

Please sign in to comment.