How to Return Ajax Response From Asynchronous JavaScript Call: Methods and Code Examples

When JavaScript is used in conjunction with XML or REST APIs, you can create some useful behaviors with a set of web-development techniques collectively known as Ajax. Let’s take a look at a specific Ajax functionality: returning an Ajax response from an asynchronous JavaScript call. First, What Is Ajax? Asynchronous JavaScript and XML, or Ajax,…

An excellent article on the what, why and how of AJAX.  It’s not just for XML.

via How to Return Ajax Response From Asynchronous JavaScript Call: Methods and Code Examples — DZone Web Dev Zone

Understanding JSON Schema


JSON Schema is a powerful tool for validating the structure of JSON data. However, learning to use it by reading its specification is like learning to drive a car by looking at its blueprints. You don’t need to know how an internal combustion engine fits together if all you want to do is pick up the groceries. This book, therefore, aims to be the friendly driving instructor for JSON Schema. It’s for those that want to write it and understand it but maybe aren’t interested in building their own car—er, writing their own JSON Schema validator—just yet.

This is a web based book on JSON and the practical usage of the JSON Schema.  It starts out with the trike and training wheels and moves all the way up to a racing bike.  I learned something in each chapter I read.  I also see the connection between the JSON schema and the Swagger/OAS definitions.  If you have used WSDL for the schema definition in an XML web service you will appreciate how much simpler and easier it is to read a JSON schema.

I did a post a little while ago about a JSON editor that can take advantage of a JSON schema if it’s available.

There is a print version of this book at the following link.

via: Understanding JSON Schema

API Gateways, the Rosetta Stone for data

Services in a microservices architecture share some common requirements regarding authentication and transportation when they need to be accessible by external clients. API Gateway s provide a shared layer to handle differences between service protocols and fulfills the requirements of specific clients like desktop browsers, mobile devices, and legacy systems. Click to see all chapters…

API Gateways are the middle man in the Application-Data relationship.  They serve as a community hall where folks go to meet and talk to one another.  This community hall has a universal translator like on Star Trek that makes data understood by all the people in the room.   Developers don’t worry about XML/JSON because the gateway understands them both.   DBA don’t worry about formatting the data because the gateway loves to format stuff.

Have you ever been fustrated with Sri, OK Google or Alexa?  Gateway quality varies from one vendor to another.  Write your own in Node may be an alternative, I don’t know.  Let’s talk.

via Building an API Gateway using Node.js — RisingStack Engineering