diff --git a/docker-compose.yml b/docker-compose.yml index 6af372b..edf2c4d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,8 +11,6 @@ services: - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} - POSTGRES_DB=${POSTGRES_DB} - PGDATA=/var/lib/postgresql/data - ports: - - "5432:5432" volumes: - history_db_data:/var/lib/postgresql/data healthcheck: diff --git a/docs/docs.go b/docs/docs.go index 610dc17..6f1af9d 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -4045,6 +4045,44 @@ const docTemplate = `{ } } }, + "/wikis/content/{id}": { + "get": { + "description": "Get detailed information about a specific wiki content version", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Wikis" + ], + "summary": "Get wiki content by ID", + "parameters": [ + { + "type": "string", + "description": "Wiki Content ID", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/history-api_internal_dtos_response.CommonResponse" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/history-api_internal_dtos_response.CommonResponse" + } + } + } + } + }, "/wikis/slug/exists": { "get": { "description": "Check if a given slug already exists for wikis", diff --git a/docs/swagger.json b/docs/swagger.json index 2099536..a76e231 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -4038,6 +4038,44 @@ } } }, + "/wikis/content/{id}": { + "get": { + "description": "Get detailed information about a specific wiki content version", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Wikis" + ], + "summary": "Get wiki content by ID", + "parameters": [ + { + "type": "string", + "description": "Wiki Content ID", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/history-api_internal_dtos_response.CommonResponse" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/history-api_internal_dtos_response.CommonResponse" + } + } + } + } + }, "/wikis/slug/exists": { "get": { "description": "Check if a given slug already exists for wikis", diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 4902b65..7ae70dc 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -3316,6 +3316,31 @@ paths: summary: Get wiki by ID tags: - Wikis + /wikis/content/{id}: + get: + consumes: + - application/json + description: Get detailed information about a specific wiki content version + parameters: + - description: Wiki Content ID + in: path + name: id + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/history-api_internal_dtos_response.CommonResponse' + "500": + description: Internal Server Error + schema: + $ref: '#/definitions/history-api_internal_dtos_response.CommonResponse' + summary: Get wiki content by ID + tags: + - Wikis /wikis/slug/{slug}: get: consumes: