HTTP Building Blocks: API Deprecation; Linkset; Content Warning

IETF [https://www.ietf.org/how/meetings/] 109 [https://www.ietf.org/how/meetings/109/]

Erik Wilde
Axway Catalysts

November 20, 2020

Creative Commons License [https://creativecommons.org/licenses/by/4.0/]

This work is licensed under a CC
Attribution 4.0 International License
[https://creativecommons.org/licenses/by/4.0/]

Contents Erik Wilde : HTTP Building Blocks: API Deprecation; Linkset; Content Warning

Contents

Introduction

Outline (Introduction)

  1. Introduction [1]
  2. API Deprecation [3]
  3. Linkset [4]
  4. Content Warning [5]
  5. Summary [2]
Introduction Erik Wilde : HTTP Building Blocks: API Deprecation; Linkset; Content Warning

(3) Erik Wilde [http://twitter.com/dret]

Erik Wilde, "From API Craftsmanship to API Landscaping", keynote at Nordic APIs 2018 Platform Summit, Stockholm, Sweden, 10/23/2018


API Deprecation

Outline (API Deprecation)

  1. Introduction [1]
  2. API Deprecation [3]
  3. Linkset [4]
  4. Content Warning [5]
  5. Summary [2]
API Deprecation Erik Wilde : HTTP Building Blocks: API Deprecation; Linkset; Content Warning

(5) Deprecation: Motivation

I-D: draft-dalal-deprecation-header [https://datatracker.ietf.org/doc/draft-dalal-deprecation-header]

Co-author: Sanjay Dalal



API Deprecation Erik Wilde : HTTP Building Blocks: API Deprecation; Linkset; Content Warning

(6) Deprecation Model



API Deprecation Erik Wilde : HTTP Building Blocks: API Deprecation; Linkset; Content Warning

(7) Deprecation: History

deprecation-history.png

Linkset

Outline (Linkset)

  1. Introduction [1]
  2. API Deprecation [3]
  3. Linkset [4]
  4. Content Warning [5]
  5. Summary [2]
Linkset Erik Wilde : HTTP Building Blocks: API Deprecation; Linkset; Content Warning

(9) Linkset: Motivation

I-D: draft-wilde-linkset [https://datatracker.ietf.org/doc/draft-wilde-linkset]

Co-author: Herbert Van de Sompel



Linkset Erik Wilde : HTTP Building Blocks: API Deprecation; Linkset; Content Warning

(10) Linkset Model



Linkset Erik Wilde : HTTP Building Blocks: API Deprecation; Linkset; Content Warning

(11) Linkset Example

{ "linkset": [
  {
    "anchor": "http://example.net/bar",
    "next": [
      {"href": "http://example.com/foo1"}
      ]
  },
  {
    "anchor": "http://example.net/boo",
    "http://example.com/relations/baz": [
      {"href": "http://example.com/foo2"}
      ]
  }
]}


Linkset Erik Wilde : HTTP Building Blocks: API Deprecation; Linkset; Content Warning

(12) Linkset: History

linkset-history.png

Content Warning

Outline (Content Warning)

  1. Introduction [1]
  2. API Deprecation [3]
  3. Linkset [4]
  4. Content Warning [5]
  5. Summary [2]
Content Warning Erik Wilde : HTTP Building Blocks: API Deprecation; Linkset; Content Warning

(14) Warning: Motivation

I-D: draft-cedik-http-warning [https://datatracker.ietf.org/doc/draft-cedik-http-warning]

Co-author: André Cedik



Content Warning Erik Wilde : HTTP Building Blocks: API Deprecation; Linkset; Content Warning

(15) Content Warning Model



Content Warning Erik Wilde : HTTP Building Blocks: API Deprecation; Linkset; Content Warning

(16) Content Warning Model



Content Warning Erik Wilde : HTTP Building Blocks: API Deprecation; Linkset; Content Warning

(17) Content Warning Example

POST /example HTTP/1.1
Host: example.com
Accept: application/json

HTTP/1.1 200 OK
Content-Type: application/json
Content-Warning: "embedded-warning"; 1590190500

{
  "request_id": "2326b087-d64e-43bd-a557-42171155084f",
  "warnings": [
    {
      "detail": "Street name was too long. It has been shortened ...",
      "instance": "https://example.com/shipments/3a186c51/msgs/c94d",
      "status": "200",
      "title": "Street name too long. It has been shortened.",
      "type": "https://example.com/errors/shortened_entry"
    },
    {
      "detail": "City for this zipcode unknown. Code for shipment ...",
      "instance": "https://example.com/shipments/3a186c51/msgs/5927",
      "status": "200",
      "title": "City for zipcode unknown.",
      "type": "https://example.com/errors/city_unknown"
    }
  ],
  "id": "3a186c51d4281acb",
  "carrier_tracking_no": "84168117830018",
  "tracking_url": "http://example.com/3a186c51d",
  "label_url": "http://example.com/shipping_label_3a186c51d.pdf",
  "price": 3.4
}


Content Warning Erik Wilde : HTTP Building Blocks: API Deprecation; Linkset; Content Warning

(18) Warning: History

warning-history.png

Summary

Outline (Summary)

  1. Introduction [1]
  2. API Deprecation [3]
  3. Linkset [4]
  4. Content Warning [5]
  5. Summary [2]
Summary Erik Wilde : HTTP Building Blocks: API Deprecation; Linkset; Content Warning

(20) Overview



Summary Erik Wilde : HTTP Building Blocks: API Deprecation; Linkset; Content Warning

(21) Thank You!

What's Next?

November 20, 2020 IETF [https://www.ietf.org/how/meetings/] 109 [https://www.ietf.org/how/meetings/109/]