Skip to content

Commit e245d54

Browse files
fix: parametrize rid for swagger
1 parent fd43aa9 commit e245d54

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

src/apps/tabular/ResourceView.vue

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
</div>
136136

137137
<div v-if="tabId === 'api'">
138-
<openapi-explorer spec-url="https://tabular-api.data.gouv.fr/api/resources/91084b11-1316-422e-bccf-b86234cd3fd9/swagger/">
138+
<openapi-explorer :spec-url="'https://tabular-api.data.gouv.fr/api/resources/' + dgvInfos.resource.id + '/swagger/'">
139139
</openapi-explorer>
140140
</div>
141141
</div>
@@ -157,35 +157,6 @@ export default {
157157
data() {
158158
return {
159159
displayDetailColumn: "",
160-
jsonApi: {
161-
"swagger": "3.0",
162-
"info": {
163-
"title": "Sample API",
164-
"description": "API description in Markdown.",
165-
"version": "1.0.0"
166-
},
167-
"host": "api.example.com",
168-
"basePath": "/v1",
169-
"schemes": [
170-
"https"
171-
],
172-
"paths": {
173-
"/users": {
174-
"get": {
175-
"summary": "Returns a list of users.",
176-
"description": "Optional extended description in Markdown.",
177-
"produces": [
178-
"application/json"
179-
],
180-
"responses": {
181-
"200": {
182-
"description": "OK"
183-
}
184-
}
185-
}
186-
}
187-
}
188-
},
189160
}
190161
},
191162
props:{

0 commit comments

Comments
 (0)