Skip to content

Commit

Permalink
Merge pull request #187 from internetofwater/sequence-diagram
Browse files Browse the repository at this point in the history
Add a sequence diagram
  • Loading branch information
dblodgett-usgs authored Nov 17, 2022
2 parents a08e5f7 + 386e80f commit 4cc94a7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ GeoJSON. We can link data to the network via latitude/longitude coordinates or N
- [Maven](#maven)
- [JAR File](#jar-file)
- [Docker](#docker)
- [Sequence Diagram](#sequence-diagram)

## Contributing

Expand Down Expand Up @@ -120,3 +121,11 @@ and run with:
```shell
docker-compose run -e CRAWLER_SOURCE_ID=<crawler_source_id> nldi-crawler
```

## Sequence Diagram

The image below is a sequence diagram detailing how the NLDI crawler operates.

![Sequence Diagram](images/CrawlerDiagram.png)

An internal user starts the crawler with an input source value. The crawler gathers information from the database for that source. A `GET` request to the source URL is made to get the target GeoJSON features. That collection of features is then looped through and each one is added as a row to a database table specific to the feature source.
Binary file added images/CrawlerDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4cc94a7

Please sign in to comment.