Skip to content

pramineni01/volume_ex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Volume coding challenge

API format:

Defined using OpenAPI format. Can be found in api/FlightTrackerApi.yml Generated code using oapi-codegen tool (configuration is in api/oapi-codegen-config.yml)

HTTP method: POST

Tools/Frameworks used:

API spec defined using: OpenAPI
Boilerplate code generation using: oapi-codegen
Server framerwork: Echo

Makefile targets:

gen, build, test, run

Test with:

% make run

And then use following commands to send requests:

curl -X 'POST' \
  'http://localhost:8080/calculate' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '[  [ "SFO", "EWR" ] ]'
curl -X 'POST' \
  'http://localhost:8080/calculate' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '[["ATL", "EWR"], ["SFO", "ATL"]]'
curl -X 'POST' \
  'http://localhost:8080/calculate' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '[["IND", "EWR"], ["SFO", "ATL"], ["GSO", "IND"], ["ATL", "GSO"]]'

About

Volume exercise

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors