Commit 9c5b5cc7 authored by Andres Käver's avatar Andres Käver

hw5, slides

parent 980e195f
......@@ -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
......
......@@ -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
......
# 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.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment