Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Feature/issue 39 #68

Merged
merged 8 commits into from
Jan 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
### Deprecated
### Removed
- Issue 39 - Clean up code, removed comments and unused parameters
### Fixed
### Security

Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,4 @@ services:
AWS_SECRET_ACCESS_KEY: fakeSecretAccessKey
AWS_DEFAULT_REGION: us-west-2
networks:
# The presence of these objects is sufficient to define them
hydrocron: {}
2 changes: 0 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
ARG FUNCTION_DIR="/function"

FROM public.ecr.aws/lambda/python:3.10 as build_image
# Include global arg in this stage of the build
ARG FUNCTION_DIR
ENV BUILD_DIR=/hydrocron

Expand All @@ -23,7 +22,6 @@ COPY docker/docker-entrypoint.sh ${FUNCTION_DIR}/bin/docker-entrypoint.sh
RUN chmod 755 ${FUNCTION_DIR}/bin/docker-entrypoint.sh

FROM public.ecr.aws/lambda/python:3.10
# Include global arg in this stage of the build
ARG FUNCTION_DIR
WORKDIR ${FUNCTION_DIR}

Expand Down
2 changes: 1 addition & 1 deletion docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Search for a single river reach by reach ID.

/timeseries?feature=Reach&reach_id=73111000545&output=geojson&start_time=2023-06-04T00:00:00&end_time=2023-06-10T00:00:00&fields=feature_id,time_str,wse,geometry
/timeseries?feature=Reach&feature_id=73111000545&output=geojson&start_time=2023-06-04T00:00:00&end_time=2023-06-10T00:00:00&fields=feature_id,time_str,wse,geometry

Will return geojson, eg:

Expand Down
4 changes: 1 addition & 3 deletions docs/overview.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# Overview

Hydrocron has two main API endpoints:
Hydrocron has a main API endpoint:

- [timeseries/](/timeseries) which returns all of the timesteps for a single feature ID, and

- timeseriesSubset/ which returns all of the timesteps for all of the features within a given GeoJSON polygon (not yet released)

## Feature ID

The main timeseries endpoint allows users to search by feature ID.
Expand Down
218 changes: 0 additions & 218 deletions hydrocron/api/controllers/subset.py

This file was deleted.

Loading