Skip to content

EnviousSwan/akka-http-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

akka-http-example

Multi-user service that calculates special floating point coefficients. There are two modifiable files in the resources folder. f1.csv contains input floating point numbers, f2.csv contains intermediate floating point numbers.

Requests:

  • Get(v1): return v1-th result from f2 (starting from 0) and correct
      if (f2[v1] > 10)
        f2[v1] - 10
      else f2[v1]

       Result is returned to client via JSON, input is in the URL

  • Post(v2, v3, v4): calculate following expression
      if (f1[v3] + v2) < 10
        f2[v4] = f1[v3] + v2 + 10
      else f2[v4] = f1[v3] + v2

       Result is saved in f2. If condition is true return 0, else 1, both in JSON.
       Input parameters are sent via JSON:
        { "tuple" : [v2, v3, v4] }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages