diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..8752b2e Binary files /dev/null and b/.DS_Store differ diff --git a/Excercise-0.6.png b/Excercise-0.6.png new file mode 100644 index 0000000..47d329d Binary files /dev/null and b/Excercise-0.6.png differ diff --git a/Exercise 0.5 b/Exercise 0.5 new file mode 100644 index 0000000..9cc6eda --- /dev/null +++ b/Exercise 0.5 @@ -0,0 +1,3 @@ +browser->server: HTTP GET https://studies.cs.helsinki.fi/exampleapp/spa. +server-->browser: HTML-code +end note \ No newline at end of file diff --git a/Exercise 0.6 b/Exercise 0.6 new file mode 100644 index 0000000..6beb25d --- /dev/null +++ b/Exercise 0.6 @@ -0,0 +1,11 @@ +browser->server: HTTP POST https://studies.cs.helsinki.fi/exampleapp/spa. +server-->browser: HTTP status code 302 +browser->server: HTTP GET https://studies.cs.helsinki.fi/exampleapp/spa./main.css +server-->browser: main.css +browser->server: HTTP GET https://studies.cs.helsinki.fi/exampleapp/spa./main.js +server-->browser: main.js +browser->server: HTTP GET https://studies.cs.helsinki.fi/exampleapp/spa./json +server-->browser: main.js +browser->server: HTTP GET https://studies.cs.helsinki.fi/exampleapp/spa./data.json +server-->browser: [{...},{...},{...}] +end note \ No newline at end of file diff --git a/Exercise 01 b/Exercise 01 new file mode 100644 index 0000000..751d6cb --- /dev/null +++ b/Exercise 01 @@ -0,0 +1,19 @@ +browser->server: HTTP GET https://studies.cs.helsinki.fi/exampleapp/notes +server-->browser: HTML-code +browser->server: HTTP GET https://studies.cs.helsinki.fi/exampleapp/main.css +server-->browser: main.css +browser->server: HTTP GET https://studies.cs.helsinki.fi/exampleapp/main.js +server-->browser: main.js +​ +note over browser: +browser starts executing js-code +that requests JSON data from server +end note +​ +browser->server: HTTP GET https://studies.cs.helsinki.fi/exampleapp/data.json +server-->browser: [{ content: "HTML is easy", date: "2019-05-23" }, ...] +​ +note over browser: +browser executes the event handler +that renders notes to display +end note \ No newline at end of file diff --git a/Exercise-0.5.png b/Exercise-0.5.png new file mode 100644 index 0000000..3bcfeb4 Binary files /dev/null and b/Exercise-0.5.png differ diff --git a/Exercise-01.png b/Exercise-01.png new file mode 100644 index 0000000..72414ce Binary files /dev/null and b/Exercise-01.png differ