Skip to content

Instantly share code, notes, and snippets.

View kevprice83's full-sized avatar

Kevin kevprice83

  • Red Hat
  • Barcelona
View GitHub Profile
curl -X GET "http:example.com/api/pets?tags=TAGS&limit=LIMIT" -H "user_key: {user_key}"
curl -X POST "http:example.com/api/pets" -H "user_key: {user_key}" -d "{ "name": "NAME", "tag": "TAG", "id": ID }"
curl -X GET "http:example.com/api/pets/{id}" -H "user_key: {user_key}"
curl -X DELETE "http:example.com/api/pets/{id}" -H "user_key: {user_key}"
{
"swagger": "2.0",
"info": {
"version": "1.0.0",
"title": "Swagger Petstore",
"description": "A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification",
"termsOfService": "http://swagger.io/terms/",
"contact": {
"name": "Swagger API Team",
"email": "[email protected]",
@kevprice83
kevprice83 / adyen.html.liquid
Last active May 5, 2016 18:03
Adyen Payment Gateway
{% when "adyen12" %}
{% if current_account.has_billing_address? %}
{% adyen12_form %}
{% else %}
<p><a href="{{ current_account.edit_adyen12_billing_address_url }}">First add a billing address</a></p>
{% endif %}