Skip to content

Commit

Permalink
Merge pull request #9 from CIAT-DAPA/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
CarlosNasayo authored Sep 18, 2023
2 parents 2273f8b + a4c7d8c commit 1384915
Show file tree
Hide file tree
Showing 15 changed files with 223 additions and 373 deletions.
3 changes: 2 additions & 1 deletion src/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,14 @@ celerybeat.pid

# Environments
.venv
env/
/env/
venv/
ENV/
env.bak/
venv.bak/
/env/
./env
/env

# Spyder project settings
.spyderproject
Expand Down
3 changes: 3 additions & 0 deletions src/api_modules/adm1.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ def get(self):
Get all Administrative levels 1 from database (zone)
---
description: Query the information of all administrative levels 1 and the API will respond with the list of all regions, this endpoint has no parameters.
tags:
- Administrative levels
responses:
200:
description: Administrative level 1
schema:
id: Adm1
properties:
Expand Down
3 changes: 3 additions & 0 deletions src/api_modules/adm2.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ def get(self, adm1 = None):
Get all Administrative levels 2 from database (woreda)
---
description: Query the information of the administrative levels 2 (woreda). This endpoint needs one parameter, **adm1** that is id of the administrative levels 1 (zone) to be queried (this id can be obtained from the endpoint `/adm1`); The API will respond with the list of the woredas from that specific zone.
tags:
- Administrative levels
parameters:
- in: path
name: adm1
type: string
required: true
description: adm1 id to be query, for example 64d1be9c16bfd546aec4f58b
responses:
200:
description: Administrative levels 2
Expand Down
3 changes: 3 additions & 0 deletions src/api_modules/adm3.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ def get(self,adm2=None):
Get all Administrative levels 3 from database (kebele)
---
description: Query the information of the administrative levels 3 (kebele). This endpoint needs one parameter, **adm2** that is id of the administrative levels 2 (woreda) to be queried (this id can be obtained from the endpoint `/adm2`); The API will respond with the list of the kebeles from that specific woreda.
tags:
- Administrative levels
parameters:
- in: path
name: adm2
type: string
required: true
description: adm2 id to be query, for example 64d1bec4f8b9461ac6ed74cb
responses:
200:
description: Administrative levels 3
Expand Down
3 changes: 3 additions & 0 deletions src/api_modules/monitored_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ def get(self, waterpoint=None):
Get all Monitored data
---
description: Query the information of monitored data from one waterpoint . This endpoint needs one parameter, **waterpoint** that is id of the waterpoint to be queried (this id can be obtained from the endpoint `/waterpoint`); The API will respond with the list of the monitored values from that specific waterpoint.
tags:
- Waterpoint Monitored data
parameters:
- in: path
name: waterpoint
type: string
required: true
description: waterpoint id to be query, for example 64d1bf1cc703fe54e05ee7d6
responses:
200:
description: Monitored data
Expand Down
3 changes: 3 additions & 0 deletions src/api_modules/monitored_latest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ def get(self, waterpoint=None):
Get last Monitored data
---
description: Query the information of last monitored data from one waterpoint . This endpoint needs one parameter, **waterpoint** that is id of the waterpoint to be queried (this id can be obtained from the endpoint `/waterpoint`); The API will respond with the list of the last monitored values from that specific waterpoint.
tags:
- Waterpoint Monitored data
parameters:
- in: path
name: waterpoint
type: string
required: true
description: waterpoint id to be query, for example 64d1bf1cc703fe54e05ee7d6
responses:
200:
description: Monitored data
Expand Down
3 changes: 3 additions & 0 deletions src/api_modules/sigle_waterpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ def get(self,waterpoint=None):
Get all one waterpoint from database
---
description: Query the information of the ons specific waterpoint. This endpoint needs one parameter, **waterpoint** that is id of the waterpoint to be queried (this id can be obtained from the endpoint `/waterpoints`); The API will respond with the waterpoit with the id provided.
tags:
- Waterpoint information
parameters:
- in: path
name: waterpoint
type: string
required: true
description: waterpoint id to be query, for example 64d1bf1cc703fe54e05ee7d6
responses:
200:
description: Waterpoint
Expand Down
137 changes: 0 additions & 137 deletions src/api_modules/single_waterpoint_profile.py

This file was deleted.

131 changes: 0 additions & 131 deletions src/api_modules/warterpoint_profile.py

This file was deleted.

2 changes: 2 additions & 0 deletions src/api_modules/waterpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ def get(self):
Get all waterpoints from database
---
description: Query the information of the waterpoints. This endpoint has not parameter.
tags:
- Waterpoint information
responses:
200:
description: Waterpoints
Expand Down
Loading

0 comments on commit 1384915

Please sign in to comment.