Cisco coding assignment
$ make installDocker
# development
$ make start
# watch mode
$ make develop- Get all paths starting from the root node Send a GET request to:
http://localhost:8080/graph/pathsThis will return all possible paths through the directed acyclic graph (DAG), starting from the root node.
- Walk through all nodes in the graph Send a GET request to:
http://localhost:8080/graph/walkThis will return a list of all unique nodes in the graph, visited once in traversal order.
- Upload a text file to count words Send a POST request to:
http://localhost:8080/word-counter/uploadContent-Type: multipart/form-data- Body: Include the text file as the file property in the request.
- Retrieve documents by tag Send a GET request to:
http://localhost:8080/taggedContent?tag=<tag>
- Replace with the tag you want to search for. Possible values for are
animalsandtechnologyas there is a dummy hardcoded json database. This will return a JSON array of all documents associated with the specified tag and its sub-tags.