Skip to content

Commit 4fbeb1b

Browse files
committed
fix: do not use v1 anymore
1 parent a67c755 commit 4fbeb1b

File tree

4 files changed

+20
-17
lines changed

4 files changed

+20
-17
lines changed

api/openapi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ info:
33
title: "MassBank3 API"
44
version: "3.0"
55
# servers:
6-
# - url: "https://api.server.test/v1"
6+
# - url: "http://localhost:8081"
77
paths:
88
/records:
99
parameters:

charts/massbank3-server/values.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,12 @@ podAnnotations: {}
7373
podLabels:
7474
app: massbank3-server
7575

76-
podSecurityContext: {}
76+
podSecurityContext:
77+
{}
7778
# fsGroup: 2000
7879

79-
securityContext: {}
80+
securityContext:
81+
{}
8082
# capabilities:
8183
# drop:
8284
# - ALL
@@ -108,7 +110,8 @@ ingress:
108110
# hosts:
109111
# - chart-example.local
110112

111-
resources: {}
113+
resources:
114+
{}
112115
# We usually recommend not to specify default resources and to leave this as a conscious
113116
# choice for the user. This also increases chances charts run on environments with little
114117
# resources, such as Minikube. If you do want to specify resources, uncomment the following
@@ -123,11 +126,11 @@ resources: {}
123126
# This is to setup the liveness and readiness probes more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
124127
livenessProbe:
125128
httpGet:
126-
path: /v1/version
129+
path: /version
127130
port: http
128131
readinessProbe:
129132
httpGet:
130-
path: /v1/version
133+
path: /version
131134
port: http
132135

133136
# This section is for setting up autoscaling more information can be found here: https://kubernetes.io/docs/concepts/workloads/autoscaling/

cmd/mb3server/src/api_default.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,61 +52,61 @@ func (c *DefaultAPIController) Routes() Routes {
5252
{
5353
"GetRecords",
5454
strings.ToUpper("Get"),
55-
"/v1/records",
55+
"/records",
5656
c.GetRecords,
5757
},
5858
{
5959
"GetSearchResults",
6060
strings.ToUpper("Get"),
61-
"/v1/records/search",
61+
"/records/search",
6262
c.GetSearchResults,
6363
},
6464
{
6565
"GetRecord",
6666
strings.ToUpper("Get"),
67-
"/v1/records/{accession}",
67+
"/records/{accession}",
6868
c.GetRecord,
6969
},
7070
{
7171
"GetSimpleRecord",
7272
strings.ToUpper("Get"),
73-
"/v1/records/{accession}/simple",
73+
"/records/{accession}/simple",
7474
c.GetSimpleRecord,
7575
},
7676
{
7777
"GetCount",
7878
strings.ToUpper("Get"),
79-
"/v1/records/count",
79+
"/records/count",
8080
c.GetCount,
8181
},
8282
{
8383
"GetBrowseOptions",
8484
strings.ToUpper("Get"),
85-
"/v1/filter/browse",
85+
"/filter/browse",
8686
c.GetBrowseOptions,
8787
},
8888
{
8989
"GetMetadata",
9090
strings.ToUpper("Get"),
91-
"/v1/metadata",
91+
"/metadata",
9292
c.GetMetadata,
9393
},
9494
{
9595
"GetVersion",
9696
strings.ToUpper("Get"),
97-
"/v1/version",
97+
"/version",
9898
c.GetVersion,
9999
},
100100
{
101101
"GetStatus",
102102
strings.ToUpper("Get"),
103-
"/v1/status",
103+
"/status",
104104
c.GetStatus,
105105
},
106106
{
107107
"GetSimilarity",
108108
strings.ToUpper("Get"),
109-
"/v1/similarity",
109+
"/similarity",
110110
c.GetSimilarity,
111111
},
112112
}

compose/env.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,4 @@ DISTRIBUTOR_URL=""
127127
# ---------------------------
128128

129129
# The URL of the API server (from external)
130-
MB3_API_URL=http://${MB3_API_HOST}:${MB3_API_PORT}/v1
130+
MB3_API_URL=http://${MB3_API_HOST}:${MB3_API_PORT}

0 commit comments

Comments
 (0)