REST APIs (08) - Big Data Analytics - Julian M. Kunkel
Génération de l'aperçu...
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
Résumé IA
- Nom du document
- REST APIs (08) - Big Data Analytics - Julian M. Kunkel
- École / Cours
- University of Hamburg · Big Data
- Contenu
- 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 des matières
- REST APIs
- Accessing RESTful Services
- Pages
- 11 pages
- Téléversé par
- Uni24h
Foire aux questions
Ce document est-il gratuit ?
Oui. « REST APIs (08) - Big Data Analytics - Julian M. Kunkel » est gratuit — il suffit de vous connecter et de cliquer sur Télécharger pour obtenir le fichier original.
Combien de pages compte ce document ?
Le document contient 11 pages, pour le cours Big Data. Vous pouvez le prévisualiser en ligne avant de le télécharger.
Puis-je prévisualiser avant de télécharger ?
Oui. Vous pouvez prévisualiser ce document directement sur cette page avec le lecteur en ligne, puis décider de le télécharger ou non.
REST APIs (08) - Big Data Analytics - Julian M. Kunkel
Génération de l'aperç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
Lire le document entier
- Nom du document
- REST APIs (08) - Big Data Analytics - Julian M. Kunkel
- École / Cours
- University of Hamburg · Big Data
- Contenu
- 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 des matières
- REST APIs
- Accessing RESTful Services
- Pages
- 11 pages
- Téléversé par
- Uni24h
Commentaires (0)
Aucun commentaire pour le moment. Soyez le premier !
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
Commentaires (0)
Aucun commentaire pour le moment. Soyez le premier !