Skip to content

cavandervoort/361_Microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

361_Microservice

Code for CS 361 Microservice for random movie selection microservice.

COMMUNICATION CONTRACT

I. Requesting Data

A user of the microservice may REQUEST data from the microservice by changing the first line of the specified text file to "run". The user must also write to the same text file in lines below the "run" line with any number of arrays of feature options, with one array per line, and with each item in each array separated by the "^" symbol.

For example, a user could request random movie attributes by changing the designated text file to:

run
action^drama^dark comedy
Cher^Johnny Depp^Kira Knightly
great^good^ok^fair^bad

II. Receiving Data

A user of the microservice may RECEIVE data from the microservice by reading from the same text file that was used to request data. The data received will be a selection of one item from each line below the "run" line of the request; thus, each choice gets its own line in the return text file.

For example, a user might receive the following after giving the sample request from above:

dark comedy
Cher
good

III. UML Sequence Diagram

Sequence Diagram_ ATM Transferal

About

Code for CS 361 Microservice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages