Skip to content
This repository has been archived by the owner on Aug 27, 2019. It is now read-only.

18F/wic_rules

Repository files navigation

WIC eligibility rules

CircleCI

A Django Rest Framework prototype implementation of the eligibility rules service postulated at eligibility-rules-service

Using the API

A sample server is running at https://eligibility-rules.fr.cloud.gov/rulings/wic/federal/.

From the "examples" directory:

curl -X POST -H "Content-Type: application/json" -d @wic-federal0.json https://eligibility-rules.fr.cloud.gov/rulings/wic/federal/

If pipes are available (UNIX-like systems, including the Windows Subsystem for Linux), you can prettify the output with Python or jq:

curl -X POST -H "Content-Type: application/json" -d @wic-federal0.json https://eligibility-rules.fr.cloud.gov/rulings/wic/federal/ | python -m json.tool

curl -X POST -H "Content-Type: application/json" -d @wic-federal0.json https://eligibility-rules.fr.cloud.gov/rulings/wic/federal/ | jq

Installation instructions here

Deployment instructions here

Technical info