Skip to content

twiduch/locapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

locapi

Example of using advanced data model structure and private/public api interface

TargetGroup - tree structure

Location associated to LocationGroup Location also associated to country

Different pricing model based on Strategy pattern applied by Factory pattern

Tests

rspec spec

Run

rails s

GET Routes - examples

/public/v1/locations/uk
/public/v1/locations/sk
/public/v1/locations/jp

/private/v1/locations/uk?token=abcd

/public/v1/target_groups/uk
/private/v1/target_groups/uk?token=abcd

POST

accepts all parameters and returns price for each

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages