Skip to content

Commit 77d33eb

Browse files
committed
add dependency for get methor (not to have 500 status code)
1 parent 7c3d45a commit 77d33eb

File tree

3 files changed

+22
-6
lines changed

3 files changed

+22
-6
lines changed

api-contract/pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,40 +25,54 @@
2525
<groupId>org.springframework.boot</groupId>
2626
<artifactId>spring-boot-starter-web</artifactId>
2727
</dependency>
28+
2829
<dependency>
2930
<groupId>org.yaml</groupId>
3031
<artifactId>snakeyaml</artifactId>
3132
<version>2.0</version>
3233
</dependency>
34+
3335
<dependency>
3436
<groupId>io.swagger.core.v3</groupId>
3537
<artifactId>swagger-annotations</artifactId>
3638
<version>2.2.6</version>
3739
</dependency>
40+
3841
<dependency>
3942
<groupId>io.swagger</groupId>
4043
<artifactId>swagger-models</artifactId>
4144
<version>1.6.8</version>
4245
</dependency>
46+
4347
<dependency>
4448
<groupId>com.fasterxml.jackson.core</groupId>
4549
<artifactId>jackson-annotations</artifactId>
4650
</dependency>
51+
52+
<dependency>
53+
<groupId>com.fasterxml.jackson.core</groupId>
54+
<artifactId>jackson-databind</artifactId>
55+
<version>2.13.4.2</version>
56+
</dependency>
57+
4758
<dependency>
4859
<groupId>javax.validation</groupId>
4960
<artifactId>validation-api</artifactId>
5061
<version>2.0.1.Final</version>
5162
</dependency>
63+
5264
<dependency>
5365
<groupId>org.apache.tomcat</groupId>
5466
<artifactId>tomcat-annotations-api</artifactId>
5567
<version>9.0.16</version>
5668
</dependency>
69+
5770
<dependency>
5871
<groupId>org.threeten</groupId>
5972
<artifactId>threetenbp</artifactId>
6073
<version>1.5.1</version>
6174
</dependency>
75+
6276
<dependency>
6377
<groupId>org.assertj</groupId>
6478
<artifactId>assertj-core</artifactId>

api-contract/src/main/resources/api-contract.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ paths:
2525
schema:
2626
$ref: '#/components/schemas/NewRepresentativeModel'
2727
required: true
28-
2928
responses:
3029
'201':
3130
description: Successful operation
@@ -47,7 +46,7 @@ paths:
4746
'200':
4847
description: Successful operation
4948
content:
50-
multipart/form-data:
49+
application/json:
5150
schema:
5251
type: array
5352
items:

government-service/pom.xml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@
5656
<version>3.1.1</version>
5757
</dependency>
5858

59+
<dependency>
60+
<groupId>org.springframework.boot</groupId>
61+
<artifactId>spring-boot-starter-thymeleaf</artifactId>
62+
</dependency>
63+
5964
<dependency>
6065
<groupId>org.springframework.boot</groupId>
6166
<artifactId>spring-boot-starter-test</artifactId>
@@ -67,16 +72,14 @@
6772
<artifactId>h2</artifactId>
6873
<scope>test</scope>
6974
</dependency>
75+
7076
<dependency>
7177
<groupId>com.csaba79coder</groupId>
7278
<artifactId>api-contract</artifactId>
7379
<version>3.0.2</version>
7480
<scope>compile</scope>
7581
</dependency>
76-
<dependency>
77-
<groupId>org.apache.tomcat</groupId>
78-
<artifactId>tomcat-annotations-api</artifactId>
79-
</dependency>
82+
8083
</dependencies>
8184

8285
<build>

0 commit comments

Comments
 (0)