Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
iti0213-2019s
Course Materials
Commits
9c5b5cc7
Commit
9c5b5cc7
authored
May 04, 2020
by
Andres Käver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hw5, slides
parent
980e195f
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
48 additions
and
10 deletions
+48
-10
homeworks/HW2-backend.md
homeworks/HW2-backend.md
+14
-9
homeworks/HW2.md
homeworks/HW2.md
+0
-1
homeworks/HW5-ios.md
homeworks/HW5-ios.md
+34
-0
slides/Apple 06 - Memory, Protocols, UI in code.pptx
slides/Apple 06 - Memory, Protocols, UI in code.pptx
+0
-0
slides/Apple 07 - TableView.pdf
slides/Apple 07 - TableView.pdf
+0
-0
slides/Apple 07 - TableView.pptx
slides/Apple 07 - TableView.pptx
+0
-0
slides/Apple 08 - Core Data.pdf
slides/Apple 08 - Core Data.pdf
+0
-0
slides/Apple 08 - Core Data.pptx
slides/Apple 08 - Core Data.pptx
+0
-0
No files found.
homeworks/HW2-backend.md
View file @
9c5b5cc7
...
...
@@ -12,13 +12,16 @@ ERD schema is simple:
*
GpsLocation - locations for session (WP, CP, regular)
*
GpsLocationType - LocationTypes for location
Base url for RESTful api: https://sportmap.akaver.com/api/
Base url for RESTful api: https://sportmap.akaver.com/api/v1.0/
Check the latest api version from swagger documentation:
https://sportmap.akaver.com/swagger/index.html
Set the header on every request:
***Content-Type application/json**
*
Create account, log in - get and save the jwt.
POST https://sportmap.akaver.com/api/account/register
POST https://sportmap.akaver.com/api/
v1.0/
account/register
Payload in body as json:
~~~~
json
...
...
@@ -32,7 +35,7 @@ Payload in body as json:
or
POST https://sportmap.akaver.com/api/account/login
POST https://sportmap.akaver.com/api/
v1.0/
account/login
Payload in body as json:
~~~~
json
...
...
@@ -57,12 +60,12 @@ On every request include token and content-type in request header:
There are 3 RESTful endpoints defined for your app:
*
https://sportmap.akaver.com/api/GpsSessions
*
https://sportmap.akaver.com/api/GpsLocations
*
https://sportmap.akaver.com/api/GpsLocationTypes
*
https://sportmap.akaver.com/api/
v1.0/
GpsSessions
*
https://sportmap.akaver.com/api/
v1.0/
GpsLocations
*
https://sportmap.akaver.com/api/
v1.0/
GpsLocationTypes
Start a new session:
POST https://sportmap.akaver.com/api/GpsSessions
POST https://sportmap.akaver.com/api/
v1.0/
GpsSessions
Payload in body as json:
~~~
json
...
...
@@ -70,6 +73,8 @@ Payload in body as json:
"name"
:
"2020-04-15"
,
"description"
:
"2020-04-15 evening run"
,
"recordedAt"
:
"2020-04-15T23:41:57.352165+03:00"
,
"minSpeed"
:
420
,
"maxSpeed"
:
600
,
}
~~~
...
...
@@ -94,7 +99,7 @@ Save the session id!
Duration, speed etc will be calculated by the backend as data arrives.
Get the list of location types (these are predefined in db, id's and types are fixed)
GET https://sportmap.akaver.com/api/GpsLocationTypes
GET https://sportmap.akaver.com/api/
v1.0/
GpsLocationTypes
Response will be:
...
...
@@ -119,7 +124,7 @@ Response will be:
~~~~
Post the location updates to backend:
POST https://sportmap.akaver.com/api/GpsLocations
POST https://sportmap.akaver.com/api/
v1.0/
GpsLocations
Payload in body as json:
~~~
json
...
...
homeworks/HW2.md
View file @
9c5b5cc7
...
...
@@ -47,7 +47,6 @@ https://sportmap.akaver.com
https://git.akaver.com/iti0213-2019s/course-materials/-/blob/master/homeworks/HW2-backend.md
***Demo of Fused location in background foreground service**
*
https://git.akaver.com/iti0213-2019s/fusedlocationbackground2020
...
...
homeworks/HW5-ios.md
0 → 100644
View file @
9c5b5cc7
# HW5 - iOS - bonus
Project git repo:
**iti0213-2019s-hw5**
Deadline: When you are defending your projects
Implement Core Data based contact app. Continue with app started in lecture demo.
3 entities
Person +---0
<
Contact
>
0---+ ContactType
Make suitable responsive (all devices and orientations) Multi MVC UI.
~~~~
text
+------------------------+
|Kerman kerman@ttu.ee| <- in case of single contact
|Andres 5 kontakti| <- multiple contacts
| |
| |
| |
| |
| |
| |
| |
| |
+------------------------+
Add Person
~~~~
Add icons for different contact types, allow editing etc.
## Grading
This is a bonus HW, giving extra 10 points - ie rasing your final grade by 1.
slides/Apple 06 - Memory, Protocols, UI in code.pptx
0 → 100644
View file @
9c5b5cc7
File added
slides/Apple 07 - TableView.pdf
0 → 100644
View file @
9c5b5cc7
File added
slides/Apple 07 - TableView.pptx
0 → 100644
View file @
9c5b5cc7
File added
slides/Apple 08 - Core Data.pdf
0 → 100644
View file @
9c5b5cc7
File added
slides/Apple 08 - Core Data.pptx
0 → 100644
View file @
9c5b5cc7
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment