MSSE SENG 5199

Course Materials for the MSSE Web Application Development Course

autoscale: true theme: Next, 3

REST


Defining Web Services


Old School Web Services


Elements of XML Web Services


Benefits of XML Web Services


Problems with XML Web Services


REST and JSON


REST


Resources


REST Constraints


Uniform Interface


HTTP Methods


Method Characteristics


URI Conventions


Good URI Rules


REST Data Formats


JSON


JSON Value Types


JSON Object Format

{
  "name": "Bill",
  "age": 66,
  "golfer": true,
  "address": {
    "country": "USA"
  }
}

JSON List format

[ 1, 2, 3, 'a', false]

[{"name": "Mike"}, {"name": "Lars"}]

REST Considerations


Approaches to Detaching API Payload


Return Proper Status


REST API Security


Basic HTTP Authentication


API Versioning


REST Not Just for APIs


Final Notes on REST


Alternatives to REST/JSON