Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solutions for part 0 #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions 0.4.text
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
title Adding Notes Diagram

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/notes
server-->browser: main.js
browser->server: HTTP GET https://studies.cs.helsinki.fi/exampleapp/data.json
server-->browser: data.json

browser->server: HTTP POST https://studies.cs.helsinki.fi/exampleapp/new_note

note over browser:
HTML submit event triggers an HTTP POST
where we send text data to the server
end note


note over browser:
HTML page refreshes
end note

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/notes
server-->browser: main.js
browser->server: HTTP GET https://studies.cs.helsinki.fi/exampleapp/data.json
server-->browser: data.json
18 changes: 18 additions & 0 deletions 0.5.text
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
title SPA Diagram

browser->server: HTTP GET https://studies.cs.helsinki.fi/exampleapp/notes
server-->browser: HTML-code

note right of browser
HTML page fetched from the server, the contents of which
are manipulated with JavaScript that executes in the browser.
end note

browser->server: HTTP POST https://studies.cs.helsinki.fi/exampleapp/spa


note right of browser
The data is sent to the server with form submit, and the
server instructs the browser to reload the Notes page with
a redirect
end note
18 changes: 18 additions & 0 deletions 0.6.text
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
title Adding Notes SPA Diagram

browser->server: HTTP GET https://studies.cs.helsinki.fi/exampleapp/notes
server-->browser: HTML-code

note right of browser
HTML page fetched from the server, the contents of which
are manipulated with JavaScript that executes in the browser.
end note

browser->server: HTTP POST https://studies.cs.helsinki.fi/exampleapp/spa


note right of browser
The data is sent to the server with form submit, and the
server instructs the browser to reload the Notes page with
a redirect
end note