Last active
August 29, 2015 14:17
-
-
Save jasonrhaas/152307388a1ea553ac09 to your computer and use it in GitHub Desktop.
GNIP for allowing outside parties to manage the GNIP ruleset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET (pull ruleset) | |
{ | |
"stream": "prod-darpa", # GNIP stream to pull rules from. Choices are `prod-darpa` or `dev-darpa` | |
"rules": [ | |
{"tag": "House", "value": "Highgarden"}, | |
{"tag": "Tyrell", "value": "Mace"}, | |
{"tag": "Tyrell", "value": "Margery"}, | |
] | |
} | |
POST (new rules) | |
{ | |
"stream"; "prod-darpa", # GNIP stream ruleset to update | |
"rules": [ | |
{"tag": "Lannister", "value": "Tywin"}, | |
{"tag": "Lannister", "value": "Jaime"}, | |
] | |
} | |
PUT (update rules) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment