class 10 Flashcards

1
Q

co je API?+def.

A

Application Programming Interface-sada pravidiel na základe ktorých aplikácie medzi sebou komunikuju.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

REST API

A

REpresentational State Transfer- je navrhnutý tak, aby využíval výhody existujúcich protokolov.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Protokol HTTP+skladba

A

HyperText Transfer Protocol skladá z
hlavičky (eng. header) – vždy povinná
tela (eng. body) – ak je potrebné

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

HTTP request - URL def. +východzi port

A

Uniform Resource Locator,adresa KAM chceme zaslať požiadavku, 80

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

HTTPS?+porty

A

HyperText Transfer Protocol Secure nesifrovane 80, sifrovane 443

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

metódy pre požiadavky v HTTP

A

get- získanie informácií
post - odoslanie informácií
put - uložit objekt v destinácií
delete - zmazanie

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

HTTP hlavicka def.

A

Dovoľujú prenos dodatočných informácií medzi klientom a serverom

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

HTTP response - obsah

A

HTTP response sa skladá zo status kódu, hlavičky a tela

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

status kódy

A
1XX - Informational
2XX - Sucess
3XX - Redirect
4XX – Client error
5XX – Server error
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

HTTP z coho je telo

A

formát JSON JavaScript Object Notation

dátový formát nezávislí na platforme, určený na prenos dát

How well did you know this?
1
Not at all
2
3
4
5
Perfectly