Skip to content

Instantly share code, notes, and snippets.

# API Design Guidelines
# Introduction
The PayPal platform is a collection of reusable services that encapsulate well-defined business capabilities. Developers are encouraged to access these capabilities through Application Programming Interfaces (APIs) that enable consistent design patterns and principles. This facilitates a great developer experience and the ability to quickly compose complex business processes by combining multiple, complementary capabilities as building blocks.
PayPal APIs follow the [RESTful][0] architectural style as much as possible. To support our objectives, we have developed a set of rules, standards, and conventions that apply to the design of RESTful APIs. These have been used to help design and maintain hundreds of APIs and have evolved over several years to meet the needs of a wide variety of use cases.
We are sharing these guidelines to help propagate good API design practices in general. We have pulled extensively from the broader community and believe that it is importan
@klummy
klummy / .gitlab-ci.yml
Last active April 29, 2022 08:25
Envoy config (Cloud Run playground)
image: docker:19.03.12
variables:
APPLICATION_NAME: envoy-front-proxy
GCP_REGION: us-central1
services:
- docker:19.03.12-dind
stages:
/**
* Hook based method to allow for making GraphQL requests easily.
* @param {string} query Query string
* @param {object} variables [Optional] Optional GraphQL parameters/variables
* @param {Array<any>} deps [Optional] Optional dependencies which when any of the values in the array changes, the request is retried. Ignored on the server
*/
export const useGraphql = (query, variables = {}, dependencies = []) => {
// Loading state if action is in progress
const [loading, setLoading] = useState(true);
// Error state
# Created by https://www.gitignore.io/api/node
# Edit at https://www.gitignore.io/?templates=node
### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
const mockContent = {
about: '...',
generic: '...',
home: '...',
termsAndConditions: '...',
}
/**
* Handles getting content from the content service
* @param {string} contentID Required: the ID for the content
@klummy
klummy / Workspace Styling.json
Created February 4, 2019 02:09
Customize a workspace to differentiate it from others
{
"editor.formatOnSave": false,
"workbench.colorCustomizations": {
"titleBar.activeBackground": "#4caf50",
"titleBar.inactiveBackground": "#4caf50",
"activityBar.background": "#4caf50"
}
}
@klummy
klummy / Fluid typography using viewport units
Last active November 25, 2018 13:29
Precise control over responsive typography for Sass
// Source - https://www.smashingmagazine.com/2016/05/fluid-typography/
// ----
// libsass (v3.5.0.beta.2)
// ----
// =========================================================================
//
// PRECISE CONTROL OVER RESPONSIVE TYPOGRAPHY FOR SASS
// ---------------------------------------------------
@klummy
klummy / container-layout-names.md
Created November 2, 2018 10:27 — forked from joshfortyfour/container-layout-names.md
List of container layout names in Magento 2 Community Edition
  • actions_apply_to
  • admin.scope.col.wrap
  • adminhtml.block.report.product.lowstock.grid.container
  • adminhtml.catalog.product.set.edit.wrapper
  • after.body.start
  • alert.urls
  • assign_products_container
  • available_sort_by_group
  • backend.page
  • backend.session.activity
@klummy
klummy / block-layout-names.md
Created November 2, 2018 10:27 — forked from joshfortyfour/block-layout-names.md
List of block layout names in Magento 2 Community Edition
  • absolute_footer
  • accountConfirmation
  • additional.product.info
  • address_book
  • addtocart.shortcut.buttons
  • addtocart.shortcut.buttons.additional
  • adjustments
  • admin.block.customer.grid.container
  • admin.block.customer.grid.export
  • admin.customer.carts
@klummy
klummy / .zshrc
Created September 18, 2018 08:48
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/yekeen/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="ys"