Skip to content

Commit 0cdd1c2

Browse files
committed
Observability stack on Kubernetes
1 parent 79cf9c8 commit 0cdd1c2

File tree

18 files changed

+4442
-95
lines changed

18 files changed

+4442
-95
lines changed

api-specs/AccessToken.bru renamed to api-specs/bruno/AccessToken.bru

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
meta {
22
name: AccessToken
33
type: http
4-
seq: 2
4+
seq: 1
55
}
66

77
post {

api-specs/Add Course.bru renamed to api-specs/bruno/Add Course.bru

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
meta {
22
name: Add Course
33
type: http
4-
seq: 4
4+
seq: 2
55
}
66

77
post {

api-specs/Add Review.bru renamed to api-specs/bruno/Add Review.bru

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
meta {
22
name: Add Review
33
type: http
4-
seq: 5
4+
seq: 3
55
}
66

77
post {

api-specs/Course-Composite.bru renamed to api-specs/bruno/Course-Composite.bru

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
meta {
22
name: Course-Composite
33
type: http
4-
seq: 3
4+
seq: 4
55
}
66

77
get {
File renamed without changes.
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
vars {
2+
keycloakBaseUrl: http://localhost:8081
3+
baseUrl: http://localhost:9000
4+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
vars {
2+
keycloakBaseUrl: http://keycloak.local
3+
baseUrl: http://127.0.0.1
4+
}

api-specs/environments/docker.bru

-2
This file was deleted.

api-specs/environments/kubernetes.bru

-2
This file was deleted.

api-specs/openapi-specs/OpenApi.yml

+144
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
openapi: 3.0.3
2+
info:
3+
title: apis
4+
version: 1.0.0
5+
contact: {}
6+
servers:
7+
- url: http://localhost:8081
8+
- url: http://localhost:9000
9+
paths:
10+
/realms/course-management-realm/protocol/openid-connect/token:
11+
post:
12+
summary: AccessToken
13+
description: ''
14+
operationId: accesstoken
15+
requestBody:
16+
content:
17+
application/x-www-form-urlencoded:
18+
schema:
19+
type: object
20+
properties:
21+
client_id:
22+
type: string
23+
example: course-app
24+
client_secret:
25+
type: string
26+
example: v1sCIPjANbvyJ87RsTkYeI9xHonDqZh7
27+
grant_type:
28+
type: string
29+
example: password
30+
password:
31+
type: string
32+
example: password
33+
scope:
34+
type: string
35+
example: openid roles
36+
username:
37+
type: string
38+
example: nasruddin
39+
examples:
40+
AccessToken:
41+
value:
42+
client_id: course-app
43+
client_secret: v1sCIPjANbvyJ87RsTkYeI9xHonDqZh7
44+
grant_type: password
45+
password: password
46+
scope: openid roles
47+
username: nasruddin
48+
responses:
49+
'200':
50+
description: ''
51+
security:
52+
- {}
53+
/courses:
54+
post:
55+
summary: Add Course
56+
description: ''
57+
operationId: addCourse
58+
requestBody:
59+
content:
60+
application/json:
61+
schema:
62+
type: object
63+
properties:
64+
author:
65+
type: string
66+
example: John Doe
67+
price:
68+
type: number
69+
example: 29.79
70+
publisher:
71+
type: string
72+
example: Whatsapp
73+
title:
74+
type: string
75+
example: Microservices with Quarkus
76+
examples:
77+
Add Course:
78+
value:
79+
author: John Doe
80+
price: 29.79
81+
publisher: Whatsapp
82+
title: Microservices with Quarkus
83+
responses:
84+
'200':
85+
description: ''
86+
security:
87+
- bearerAuth: []
88+
/reviews:
89+
post:
90+
summary: Add Review
91+
description: ''
92+
operationId: addReview
93+
requestBody:
94+
content:
95+
application/json:
96+
schema:
97+
type: object
98+
properties:
99+
author:
100+
type: string
101+
example: John Doe
102+
content:
103+
type: string
104+
example: Amazing book and loved reading it
105+
courseId:
106+
type: number
107+
example: 2
108+
email:
109+
type: string
110+
111+
examples:
112+
Add Review:
113+
value:
114+
author: John Doe
115+
content: Amazing book and loved reading it
116+
courseId: 2
117+
118+
responses:
119+
'200':
120+
description: ''
121+
security:
122+
- bearerAuth: []
123+
/course-aggregate/4/with-details:
124+
get:
125+
summary: Course-Composite
126+
description: ''
127+
operationId: courseComposite
128+
parameters:
129+
- name: ''
130+
in: header
131+
schema:
132+
type: string
133+
example: ''
134+
responses:
135+
'200':
136+
description: ''
137+
security:
138+
- bearerAuth: []
139+
components:
140+
securitySchemes:
141+
bearerAuth:
142+
type: http
143+
scheme: bearer
144+
tags: []

0 commit comments

Comments
 (0)