reading-notes2

https://m7madmomani2.github.io/reading-notes2

View the Project on GitHub M7madMomani2/reading-notes2

API

What is an API?

Image

  • An API is a set of programming code that enables data transmission between one software product and another. It also contains the terms of this data exchange.
  • Application programming interfaces consist of two components:
  • Technical specification describing the data exchange options between solutions with the specification done in the form of a request for processing and data delivery protocols
  • Software interface written to the specification that represents it

Types of APIs :

Web APIs:

  • Open APIs
  • Internal APIs
  • Partner APIs
  • Composite APIs

    API Architectures and Protocols:

  • REST
  • JSON-RPC and XML-RPC

Image

  • TLS options

  • In Node.js SuperAgent supports methods to configure HTTPS requests:
  • .ca() : Set the CA certificate(s) to trust.
  • .cert() : Set the client certificate chain(s).
  • .key() : Set the client private key(s).
  • .pfx() : Set the client PFX or PKCS12 encoded private key and certificate chain.
  • .disableTLSCerts() : Does not reject expired or invalid TLS certs.