Skip to content

thaoto22/CS361-assignment8

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

CS361-assignment8

How to run

  1. Clone repository and navigate to project folder
  2. Install dependencies by running pip install flask
  3. Run microservice by running "python3 microservice.py"

Communication Contract

Requesting Data

To request data from the microservice, make an HTTP GET request to: http://127.0.0.1:5001/shuffle?length={length}

Example call using Python 'requests':

url = f"http://127.0.0.1:5001/shuffle?length={length}"

response = requests.get(url)

Receiving Data

The microservice responds with a list of shuffled integers in JSON format

Example call:

    return response.json()["shuffled_numbers"]

shuffled_numbers = get_shuffled_numbers(10)
print("Shuffled Numbers:", shuffled_numbers)

Response:

Screenshot 2025-02-24 at 5 43 58 PM

UML:

Screenshot 2025-02-24 at 10 06 20 PM

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%