REST APIs (08) - Big Data Analytics - Julian M. Kunkel
- Seiten
- 11
- Định dạng
- Dung lượng
- 77.5 KB
- Năm
- 2016
- Trường
- University of Hamburg
- Aufrufe
- 0
- Kommentare
- 0
- Lượt tải
- 0
Vorschau wird generiert...
Slide bài giảng về REST APIs trong khuôn khổ môn Big Data Analytics, trình bày các khái niệm RESTful services, HTTP và cách truy cập.
- Dokumentenname
- REST APIs (08) - Big Data Analytics - Julian M. Kunkel
- Schule / Kurs
- University of Hamburg · Big Data
- Inhalt
- Tài liệu này cung cấp kiến thức cơ bản về REST APIs, bao gồm khái niệm, lợi ích, ngữ nghĩa HTTP và cách truy cập dịch vụ. Nó cũng giới thiệu công cụ `curl` để tương tác với webserver.
- Inhaltsverzeichnis
- REST APIs
- Accessing RESTful Services
- Seiten
- 11 Seiten
- Hochgeladen von
- Uni24h
Beschreibung
Trích nội dung tài liệu
REST APIs Lecture BigData Analytics Julian M. Kunkel julian.kunkel@googlemail.com University of Hamburg / German Climate Computing Center (DKRZ) 2016-12-09 Disclaimer: Big Data software is constantly updated, code samples may be outdated. REST APIs Accessing RESTful Services Outline 1 REST APIs 2 Accessing RESTful Services Julian M. Kunkel Lecture BigData Analytics, 2016 2 / 11 REST APIs Accessing RESTful Services REST [11] Representational state transfer (REST): System API utilizing HTTP / TCP RESTful: Term indicates the system is conforming to REST constraints Advantages (due to HTTP) Simplicity of the interfaces Portability Cachable Tracable: Communication can be inspected Semantics of HTTP request verbs [13] GET: retrieve a representation of a resource (no updates) PUT: store the enclosed data under the given URI POST: transfer an entity/data as subordinate of the web resource DELETE: remove the given URI PUT and DELETE are idempotent and GET (w/o concurrent updates) Julian M. Kunkel Lecture BigData Analytics, 2016 3 / 11 REST APIs Accessing RESTful Services HTTP 1.1 [13] The Hypertext Transfer Protocol (HTTP) is a stateless protocol Request via TCP ⇒ Response (status and content) Request/Response are encoded in ASCII Include a header with standardized key/value pairs [14] Non-standard key/value pairs can be added Usually prefixed with X for eXtension One data section (at the end) according to the media type Separation between header and data via one newline Example HTTP Request 1 2 3 4 5 GET /dir/file HTTP/1.1 Host: www.test.de:50070 User-Agent: mozilla Cache-Control: no-cache Accept: */* Julian M. Kunkel Lecture BigData Analytics, 2016 4 / 11 REST APIs Accessing RESTful Services HTTP 1.1 Media types [15] Based on Multipurpose Internet Mail Extensions (MIME) types Media type is composed of type, subtype and optional parameters e.g., image/png e.g., text/html; charset=UTF-8 Media types should be registered by the IANA1 Example
Häufig gestellte Fragen
Ist dieses Dokument kostenlos?
Ja. „REST APIs (08) - Big Data Analytics - Julian M. Kunkel“ ist kostenlos — melden Sie sich einfach an und klicken Sie auf Herunterladen, um die Originaldatei zu erhalten.
Wie viele Seiten hat dieses Dokument?
Das Dokument hat 11 Seiten, für den Kurs Big Data. Sie können es vor dem Herunterladen online in der Vorschau ansehen.
Kann ich vor dem Herunterladen eine Vorschau ansehen?
Ja. Sie können sich dieses Dokument direkt auf dieser Seite im Online-Reader ansehen und dann entscheiden, ob Sie es herunterladen möchten.
REST APIs (08) - Big Data Analytics - Julian M. Kunkel
Vorschau wird generiert...
Trích nội dung tài liệu
REST APIs Lecture BigData Analytics Julian M. Kunkel julian.kunkel@googlemail.com University of Hamburg / German Climate Computing Center (DKRZ) 2016-12-09 Disclaimer: Big Data software is constantly updated, code samples may be outdated. REST APIs Accessing RESTful Services Outline 1 REST APIs 2 Accessing RESTful Services Julian M. Kunkel Lecture BigData Analytics, 2016 2 / 11 REST APIs Accessing RESTful Services REST [11] Representational state transfer (REST): System API utilizing HTTP / TCP RESTful: Term indicates the system is conforming to REST constraints Advantages (due to HTTP) Simplicity of the interfaces Portability Cachable Tracable: Communication can be inspected Semantics of HTTP request verbs [13] GET: retrieve a representation of a resource (no updates) PUT: store the enclosed data under the given URI POST: transfer an entity/data as subordinate of the web resource DELETE: remove the given URI PUT and DELETE are idempotent and GET (w/o concurrent updates) Julian M. Kunkel Lecture BigData Analytics, 2016 3 / 11 REST APIs Accessing RESTful Services HTTP 1.1 [13] The Hypertext Transfer Protocol (HTTP) is a stateless protocol Request via TCP ⇒ Response (status and content) Request/Response are encoded in ASCII Include a header with standardized key/value pairs [14] Non-standard key/value pairs can be added Usually prefixed with X for eXtension One data section (at the end) according to the media type Separation between header and data via one newline Example HTTP Request 1 2 3 4 5 GET /dir/file HTTP/1.1 Host: www.test.de:50070 User-Agent: mozilla Cache-Control: no-cache Accept: */* Julian M. Kunkel Lecture BigData Analytics, 2016 4 / 11 REST APIs Accessing RESTful Services HTTP 1.1 Media types [15] Based on Multipurpose Internet Mail Extensions (MIME) types Media type is composed of type, subtype and optional parameters e.g., image/png e.g., text/html; charset=UTF-8 Media types should be registered by the IANA1 Example
- Dokumentenname
- REST APIs (08) - Big Data Analytics - Julian M. Kunkel
- Schule / Kurs
- University of Hamburg · Big Data
- Inhalt
- Tài liệu này cung cấp kiến thức cơ bản về REST APIs, bao gồm khái niệm, lợi ích, ngữ nghĩa HTTP và cách truy cập dịch vụ. Nó cũng giới thiệu công cụ `curl` để tương tác với webserver.
- Inhaltsverzeichnis
- REST APIs
- Accessing RESTful Services
- Seiten
- 11 Seiten
- Hochgeladen von
- Uni24h
Kommentare (0)
Noch keine Kommentare. Seien Sie der Erste!
Stream (11) (Xử lý luồng dữ liệu) - Julian M. Kunkel
Krone (09) (Sự phát triển của dữ liệu) (Tiếng Anh)
Parallel mf (09) (Thuật toán phân tán phân tích ma trận dữ liệu lớn)
Big Data Analytics - Phân tích dữ liệu lớn (Lecture 5)
NoSQL db (06) (Cơ sở dữ liệu NoSQL)
Tổng hợp Đề Toán 5 - Luyện thi vào Lớp 6 - CLB EMath
Bài giảng vật lý đại cương (Chương 3) - Đỗ Ngọc Uấn
Chương 8.Nguyên tử - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 7.Cơ học lượng tử - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 6.Quang học lượng tử - Vật lý đại cương 3 - TS.Nguyễn Thị Trang

Kommentare (0)
Noch keine Kommentare. Seien Sie der Erste!