This patch changes the base path of the V2 of the API to be '/'. That means that the v2 prefix will be part of the path definition. Currently, it only affect the config API that is created from code. The motivation for the change is for Swagger definitions that are read from a file. Currently, when using the swagger-ui with a doc path set to http://localhost:10000/v2 and reading the Swagger from a file swagger ui will concatenate the path and look for http://localhost:10000/v2/v2/{path} Instead, the base path is now '/' and the /v2 prefix will be added by each endpoint definition. From the user perspective, there is no change in current functionality. Signed-off-by: Amnon Heiman <amnon@scylladb.com>
30 lines
610 B
JSON
30 lines
610 B
JSON
{
|
|
"swagger": "2.0",
|
|
"info": {
|
|
"version": "1.0.0",
|
|
"title": "Scylla API",
|
|
"description": "The scylla API version 2.0",
|
|
"termsOfService": "http://www.scylladb.com/tos/",
|
|
"contact": {
|
|
"name": "Scylla Team",
|
|
"email": "info@scylladb.com",
|
|
"url": "http://scylladb.com"
|
|
},
|
|
"license": {
|
|
"name": "AGPL",
|
|
"url": "https://github.com/scylladb/scylla/blob/master/LICENSE.AGPL"
|
|
}
|
|
},
|
|
"host": "{{Host}}",
|
|
"basePath": "/",
|
|
"schemes": [
|
|
"http"
|
|
],
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"paths": {
|