Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atrakh/ice-cream-api
RESTful API built on Flask, using LaunchDarkly feature flags to serve rate limits.
https://github.com/atrakh/ice-cream-api
Last synced: 3 months ago
JSON representation
RESTful API built on Flask, using LaunchDarkly feature flags to serve rate limits.
- Host: GitHub
- URL: https://github.com/atrakh/ice-cream-api
- Owner: atrakh
- License: apache-2.0
- Created: 2017-01-16T03:53:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-03-16T01:20:51.000Z (over 7 years ago)
- Last Synced: 2024-01-20T22:40:31.755Z (5 months ago)
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Lists
- awesome-launchdarkly - atrakh/ice-cream-api - Feature flags to serve rate limits (Apps)
README
# ice-cream-api
RESTful API built on Flask, using LaunchDarkly feature flags to serve rate limits.
Want to test out this API? There's a live demo available!
Try entering these commands in a terminal evironment to make an API request. Note: Replace text in capitals with desired resource/field
Get all flavors:
$ curl -v http://atrakh.com/api/v1/flavors
Get a specific flavor:
$ curl -v http://atrakh.com/api/v1/flavors/FLAVOR_NAME
Create a new flavor:
$ curl -v -H "Content-Type: application/json" -X POST -d
'{"name":FLAVOR_NAME, "stock":FLAVOR_AMOUNT}' http://atrakh.com/api/v1/flavorsModify an existing flavor:
$ curl -v -H "Content-Type: application/json" -X PUT -d
'{"name":NEW_FLAVOR_NAME, "stock":NEW_FLAVOR_AMOUNT}' http://atrakh.com/api/v1/flavors/FLAVOR_NAMEDelete a flavor:
$ curl -v -X DELETE http://atrakh.com/api/v1/flavors/FLAVOR_NAME