You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You should be able to start the example application by executing com.mytaxi.MytaxiServerApplicantTestApplication, which starts a webserver on port 8080 (http://localhost:8080) and serves SwaggerUI where can inspect and try existing endpoints.
3
+
## Description
4
+
MyTaxiApi, which starts a webserver on port 8080 (http://localhost:8080) and serves SwaggerUI where can inspect and try existing endpoints.
5
5
6
6
The project is based on a small web service which uses the following technologies:
7
7
8
8
* Java 1.8
9
9
* Spring MVC with Spring Boot
10
10
* Database H2 (In-Memory)
11
11
* Maven
12
-
* Intellij as IDE is preferred but not mandatory. We do provide code formatter for intellij and eclipse in the etc folder.
12
+
* Intellij as IDE is preferred but not mandatory.
13
13
14
14
15
-
You should be aware of the following conventions while you are working on this exercise:
15
+
NOTE:
16
16
17
17
* All new entities should have an ID with type of Long and a date_created with type of ZonedDateTime.
18
18
* The architecture of the web service is built with the following components:
19
-
* DataTransferObjects: Objects which are used for outside communication via the API
19
+
* DataTransferObjects: Objects which are used for outside communication via the API
20
20
* Controller: Implements the processing logic of the web service, parsing of parameters and validation of in- and outputs.
21
21
* Service: Implements the business logic and handles the access to the DataAccessObjects.
22
22
* DataAccessObjects: Interface for the database. Inserts, updates, deletes and reads objects from the database.
23
23
* DomainObjects: Functional Objects which might be persisted in the database.
24
-
* TestDrivenDevelopment is a good choice, but it's up to you how you are testing your code.
25
-
26
-
You should commit into your local git repository and include the commit history into the final result.
24
+
* TDD/BDD are good choices.
27
25
28
26
---
29
27
30
28
31
-
## Task 1
29
+
## Objective 1
32
30
* Write a new Controller for maintaining cars (CRUD).
33
31
* Decide on your own how the methods should look like.
34
32
* Entity Car: Should have at least the following characteristics: license_plate, seat_count, convertible, averageRating, engine_type (electric, gas, ...)
@@ -41,13 +39,13 @@ You should commit into your local git repository and include the commit history
41
39
---
42
40
43
41
44
-
## Task 2
42
+
## Objective 2
45
43
First come first serve: A car can be selected by exactly one ONLINE Driver. If a second driver tries to select a already used car you should throw a CarAlreadyInUseException.
46
44
47
45
---
48
46
49
47
50
-
## Task 3
48
+
## Objective 3
51
49
Imagine a driver management frontend that is used internally by mytaxi employees to create and edit driver related data. For a new search functionality, we need an endpoint to search for drivers. It should be possible to search for drivers by their attributes (username, online_status) as well as car characteristics (license plate, averageRating, etc).
52
50
53
51
* implement a new endpoint for searching or extend an existing one
@@ -57,18 +55,9 @@ Imagine a driver management frontend that is used internally by mytaxi employees
57
55
---
58
56
59
57
60
-
## Task 4 (optional)
61
-
This task is _voluntarily_, if you can't get enough of hacking tech challenges, implement security.
62
-
Secure the API so that authentication is needed to access it. The details are up to you.
63
-
64
-
Please include instructions how to authenticate/login, so that we can test the endpoints you implemented!
58
+
## Objective 4
59
+
The API is secured (with Spring Security) such that authentication is needed to access it.
65
60
66
61
---
67
62
68
-
69
-
Good luck!
70
-
❤️ mytaxi
71
-
72
-
73
-
74
-
_NOTE: Please make sure to not submit any personal data with your tests result. Personal data is for example your name, your birth date, email address etc._
@NotNull(message = "Selection-State can not be null!")
24
+
privateSelectionStateselectionState;
25
+
@NotNull(message = "Licence-No can not be null!")
26
+
privateStringlicenceNo;
27
+
28
+
publicSelectDTO() {
29
+
super();
30
+
}
31
+
32
+
publicSelectDTO(@NotNull(message = "Driver-ID can not be null!") LongdriverId, @NotNull(message = "Selection-State can not be null!") SelectionStateselectionState, @NotNull(message = "Licence-No can not be null!") StringlicenceNo) {
0 commit comments