Skip to content

davidflavigne/vtcrebu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create a new promocode

curl -X POST 'http://localhost:8765/api/promocode' -H "Content-Type: application/json" -d '{"name":"WeatherCode","avantage":{"percent":20},"restrictions":{"or":[{"age":40},{"age":{"lt":35,"gt":15}}],"meteo":{"is":"clear","temp":{"gt":15}}}}'

Get authorization for a promocode

curl -X POST 'http://localhost:8765/api/reduction' -H "Content-Type: application/json" -d '{"promocode_name":"WeatherCode","arguments":{"age":"24"}}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published