Skip to content

Commit fb190be

Browse files
authored
Merge pull request #12 from Backbase/12.1.0_updates
Changes for 12.1.0
2 parents a9314e5 + fdd245c commit fb190be

File tree

31 files changed

+969
-450
lines changed

31 files changed

+969
-450
lines changed

service-sdk/12.0.0/add-persistence-to-service/example-service/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<parent>
1010
<artifactId>service-sdk-starter-core</artifactId>
1111
<groupId>com.backbase.buildingblocks</groupId>
12-
<version>12.0.0</version>
12+
<version>12.1.0</version>
1313
<relativePath />
1414
</parent>
1515

service-sdk/12.0.0/create-core-service/example-service/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<parent>
1010
<artifactId>service-sdk-starter-core</artifactId>
1111
<groupId>com.backbase.buildingblocks</groupId>
12-
<version>12.0.0</version>
12+
<version>12.1.0</version>
1313
<relativePath />
1414
</parent>
1515

service-sdk/12.0.0/create-openapi-client/banking-service/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
can declare it as a dependency instead, see pom-as-dependency.xml -->
1010
<parent>
1111
<groupId>com.backbase.buildingblocks</groupId>
12-
<version>12.0.0</version>
12+
<version>12.1.0</version>
1313
<artifactId>service-sdk-starter-core</artifactId>
1414
<relativePath />
1515
</parent>

service-sdk/12.0.0/create-openapi-spec-project/messaging-api/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
.idea
44
*.iml
55
/src/main/java
6-
6+
/src/main/resources/lib
77
node_modules
88
fe-dist

service-sdk/12.0.0/create-openapi-spec-project/messaging-api/pom.xml

Lines changed: 55 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>com.backbase.buildingblocks</groupId>
88
<artifactId>backbase-openapi-spec-starter-parent</artifactId>
9-
<version>11.3.0</version>
9+
<version>12.1.0</version>
1010
</parent>
1111

1212
<groupId>com.backbase.message</groupId>
@@ -16,7 +16,7 @@
1616

1717
<properties>
1818
<!-- plugin versions -->
19-
<boat-maven-plugin.version>0.1.7</boat-maven-plugin.version>
19+
<boat-maven-plugin.version>0.13.0</boat-maven-plugin.version>
2020
</properties>
2121

2222
<build>
@@ -33,10 +33,62 @@
3333
<goal>validate</goal>
3434
</goals>
3535
<configuration>
36-
<input>${project.basedir}/src/main/resources/openapi.yaml</input>
36+
<input>${project.basedir}/src/main/resources/client-api-v1.yaml</input>
3737
<failOnWarning>true</failOnWarning>
3838
</configuration>
3939
</execution>
40+
<!-- main version of the specs - dynamically versioned filename -->
41+
<execution>
42+
<id>boat-bundle</id>
43+
<phase>generate-sources</phase>
44+
<goals>
45+
<goal>bundle</goal>
46+
</goals>
47+
<configuration>
48+
<input>${project.basedir}/src/main/resources</input>
49+
<output>${project.build.directory}</output>
50+
<versionFileName>true</versionFileName>
51+
</configuration>
52+
</execution>
53+
<!-- unversioned - static filename for docs -->
54+
<execution>
55+
<id>boat-bundle-unversioned</id>
56+
<phase>generate-sources</phase>
57+
<goals>
58+
<goal>bundle</goal>
59+
</goals>
60+
<configuration>
61+
<input>${project.basedir}/src/main/resources</input>
62+
<output>${project.build.directory}/unversioned</output>
63+
<versionFileName>false</versionFileName>
64+
</configuration>
65+
</execution>
66+
<execution>
67+
<id>boat-linting</id>
68+
<phase>package</phase>
69+
<goals>
70+
<goal>lint</goal>
71+
</goals>
72+
<configuration>
73+
<inputSpec>${project.build.directory}</inputSpec>
74+
<output>${project.basedir}/target/boat-lint-reports</output>
75+
<writeLintReport>true</writeLintReport>
76+
<failOnWarning>true</failOnWarning>
77+
</configuration>
78+
</execution>
79+
<execution>
80+
<id>boat-docs</id>
81+
<phase>package</phase>
82+
<goals>
83+
<goal>generate</goal>
84+
</goals>
85+
<configuration>
86+
<inputSpec>${project.build.directory}/unversioned/client-api-v1.yaml</inputSpec>
87+
<output>${project.build.directory}/generated-docs</output>
88+
<generatorName>html2</generatorName>
89+
<generateAliasAsModel>true</generateAliasAsModel>
90+
</configuration>
91+
</execution>
4092
</executions>
4193
</plugin>
4294
</plugins>
Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
openapi: 3.0.3
2+
info:
3+
title: Message Service API Spec
4+
description: Specs for Message Service API
5+
version: 1.0.0
6+
x-icon: credit_card
7+
8+
servers:
9+
- description: local test
10+
url: http://localhost:8080/api/v1
11+
12+
tags:
13+
- name: Retail
14+
15+
paths:
16+
17+
/client-api/v1/messages:
18+
description: No description available
19+
20+
get:
21+
summary: Returns available items, optionally filtered by name.
22+
description: Returns available items, optionally filtered by name
23+
operationId: getMessage
24+
parameters:
25+
- description: Id of the message record
26+
example: a5b0fe7d-c4dd-40a7-bd80-dfc7869327e1
27+
in: query
28+
name: id
29+
required: true
30+
schema:
31+
type: string
32+
responses:
33+
'200':
34+
content:
35+
application/json:
36+
example:
37+
$ref: examples/body/example-message.json
38+
schema:
39+
$ref: '#/components/schemas/Message'
40+
description: No description available
41+
'400':
42+
$ref: 'lib/common-types.yaml#/components/responses/400BadRequest'
43+
'500':
44+
$ref: 'lib/common-types.yaml#/components/responses/500InternalServerError'
45+
tags:
46+
- message
47+
48+
delete:
49+
summary: Delete message.
50+
description: Deletes a message
51+
operationId: deleteMessage
52+
parameters:
53+
- description: Id of the message record
54+
example: a5b0fe7d-c4dd-40a7-bd80-dfc7869327e1
55+
in: query
56+
name: id
57+
required: true
58+
schema:
59+
type: string
60+
responses:
61+
'204':
62+
description: request to delete completed
63+
'400':
64+
$ref: 'lib/common-types.yaml#/components/responses/400BadRequest'
65+
'500':
66+
$ref: 'lib/common-types.yaml#/components/responses/500InternalServerError'
67+
tags:
68+
- message
69+
70+
post:
71+
summary: Adds or updates a message.
72+
description: Adds or updates a message
73+
operationId: postMessage
74+
requestBody:
75+
content:
76+
application/json:
77+
example:
78+
$ref: examples/body/example-message.json
79+
schema:
80+
$ref: '#/components/schemas/Message'
81+
description: Adds or updates a message
82+
responses:
83+
'201':
84+
content:
85+
application/json:
86+
example:
87+
$ref: examples/body/example-message-created.json
88+
schema:
89+
$ref: '#/components/schemas/MessagePostResponseBody'
90+
description: request to create item accepted
91+
'400':
92+
$ref: 'lib/common-types.yaml#/components/responses/400BadRequest'
93+
'500':
94+
$ref: 'lib/common-types.yaml#/components/responses/500InternalServerError'
95+
tags:
96+
- message
97+
98+
put:
99+
summary: Adds or updates a message.
100+
description: Adds or updates a message
101+
operationId: putMessage
102+
requestBody:
103+
content:
104+
application/json:
105+
example:
106+
$ref: examples/body/example-message.json
107+
schema:
108+
$ref: '#/components/schemas/Message'
109+
description: Adds or updates a message
110+
responses:
111+
'204':
112+
description: request to update item completed
113+
'400':
114+
$ref: 'lib/common-types.yaml#/components/responses/400BadRequest'
115+
'500':
116+
$ref: 'lib/common-types.yaml#/components/responses/500InternalServerError'
117+
tags:
118+
- message
119+
120+
/client-api/v1/all-messages:
121+
summary: messages
122+
description: No description available
123+
get:
124+
summary: Returns all available messages.
125+
description: Returns all available messages
126+
operationId: getMessages
127+
responses:
128+
'200':
129+
content:
130+
application/json:
131+
example:
132+
$ref: examples/body/example-messages-get.json
133+
schema:
134+
$ref: '#/components/schemas/MessagesGetResponseBody'
135+
description: No description available
136+
'400':
137+
$ref: 'lib/common-types.yaml#/components/responses/400BadRequest'
138+
'500':
139+
$ref: 'lib/common-types.yaml#/components/responses/500InternalServerError'
140+
tags:
141+
- message
142+
143+
components:
144+
schemas:
145+
ErrorItem:
146+
$ref: 'lib/schemas/error-item.yaml'
147+
Message:
148+
$ref: schemas/body/message.json
149+
MessagesGetResponseBody:
150+
$ref: schemas/body/messages-get.json
151+
MessagePostResponseBody:
152+
$ref: schemas/body/message-created.json
153+
NotAcceptableError:
154+
properties:
155+
message:
156+
type: string
157+
supportedMediaTypes:
158+
description: List of supported media types for this endpoint
159+
items:
160+
type: string
161+
type: array
162+
type: object
163+
UnauthorizedError:
164+
properties:
165+
message:
166+
type: string
167+
required:
168+
- message
169+
type: object

service-sdk/12.0.0/create-openapi-spec-project/messaging-api/src/main/resources/lib/schemas/bad-request-error.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
title: BadRequestError
12
type: object
23
properties:
34
message:

service-sdk/12.0.0/create-openapi-spec-project/messaging-api/src/main/resources/lib/schemas/conflict-error.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
title: ConflictError
12
type: object
23
properties:
34
message:

service-sdk/12.0.0/create-openapi-spec-project/messaging-api/src/main/resources/lib/schemas/currency.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
title: Currency
12
type: object
23
properties:
34
amount:

service-sdk/12.0.0/create-openapi-spec-project/messaging-api/src/main/resources/lib/schemas/error-item.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
title: ErrorItem
12
type: object
23
properties:
34
message:

0 commit comments

Comments
 (0)