REST APIs (08) - Big Data Analytics - Julian M. Kunkel
Generating preview...
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.
Description
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
AI summary
- Document name
- REST APIs (08) - Big Data Analytics - Julian M. Kunkel
- School / Course
- University of Hamburg · Big Data
- Content
- 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.
- Table of contents
- REST APIs
- Accessing RESTful Services
- Pages
- 11 pages
- Uploaded by
- Uni24h
Frequently asked questions
Is this document free?
Yes. “REST APIs (08) - Big Data Analytics - Julian M. Kunkel” is free — just sign in and click Download to get the original file.
How many pages is this document?
The document has 11 pages, for the course Big Data. You can preview it online before downloading.
Can I preview before downloading?
Yes. You can preview this document right on this page with the online reader, then decide whether to download.
REST APIs (08) - Big Data Analytics - Julian M. Kunkel
Generating preview...
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
Read full document
- Document name
- REST APIs (08) - Big Data Analytics - Julian M. Kunkel
- School / Course
- University of Hamburg · Big Data
- Content
- 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.
- Table of contents
- REST APIs
- Accessing RESTful Services
- Pages
- 11 pages
- Uploaded by
- Uni24h
Comments (0)
No comments yet. Be the first!
Neumann (mối quan hệ giữa Exascale Computing và Big Data) - Philipp Neumann
Tính toán trong bộ nhớ với Spark - Julian M. Kunkel
Intro to Mapreduce (02) (Giới thiệu về MapReduce và Hadoop) (Tiếng Anh)
GPUs (04) (Xử lý song song và bộ xử lý đồ họa)
Neo4j (08) (Xử lý đồ thị với Neo4j) - BigData Analytics - Julian M. Kunkel
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
Chương 5.Thuyết tương đối - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 4. Tán xạ ánh sáng - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 3.Phân cực ánh sáng - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Comments (0)
No comments yet. Be the first!