Monday, November 23, 2015

AwesomeAPI

Awesome API Awesome

A curated list of awesome resources for design and implement RESTful APIs.

Design

Overview

REST allows us to create services and applications that can be used by any device or client who understands HTTP.

Status Code

When you are using a REST design you have to provide the HTTP status code that are the more appropriated to respond to the request.

Authentication

JWT

JSON Web Token (JWT) is a compact, URL-safe means of representing claims to be transferred between two parties.

Authorization

OAuth

An open protocol to allow secure authorization in a simple and standard method from web, mobile and desktop applications

Format

  • JSON API - Standard for building APIs in JSON.
  • RAML - Simple and succinct way to describe RESTful API.
  • JSend - Simple specification that lays down some rules for how JSON responses from web servers should be formatted.
  • OData - Open protocol to allow the creation and consumption of queryable and interoperable RESTful APIs. Quite complex.
  • HAL - Simple format that gives a consistent and easy way to hyperlink between resources in your API (see: HATEOAS).
  • JSON-LD - Standard for describing Linked Data and hypermedia relations in JSON (W3C).
  • Hydra - Vocabulary for Hypermedia-Driven Web APIs (W3C).
  • Schema.org - Collection of schemas describing common data models.

Discover

Need a API for your project? Check in this sites.

Testing

Querying

  • httpie - Command line HTTP client, far more dev-friendly than curl.
  • Postman REST Client - Chrome extension essential to test manually REST API.
  • resty - Little command line REST client that you can use in pipelines (bash or zsh).
  • jq - Command line JSON processor, to use in combination with a command-line HTTP client like cURL.
  • HttpMaster - GUI tool for testing REST APIs and services. Windows OS only.

Mocking

  • FakeRest - Patch XMLHttpRequest to fake a REST API client-side.
  • json-server - Serve a REST API from fixture files using quick prototyping.
  • Mocky.io - Free online service to create fake HTTP responses.
  • Swagger API Mock - Mock RESTful API based on swagger schema

Public REST APIs To Use In Tests

Documentation

One of the most important part of your API is have a good documentation and updated with the code.

Free

Services

Logging

Modeling and SaaS

Based in DDD (Domain Driven Development). Generates automatically API's in different languages.

Libraries

Used it for improve your workflow

Frameworks

Designed specify for build quickly RESTful API's.

Gateways

Manage API infrastructure concerns such as authentication/authorization, rate limiting, scaling, analytics, etc.

Open Source / Self-hosted


REFERENCE: https://github.com/Kikobeats/awesome-api

No comments:

HTMLCode

HTMLCode Content