From 535eaac84677a0a7e0f32cd9333dcc2179a3401f Mon Sep 17 00:00:00 2001 From: Chris Malloy Date: Thu, 5 Sep 2024 10:17:13 -0300 Subject: [PATCH] Remove cache refresh controller (use _plugin/delta/cache tag) --- .../java/jasper/web/rest/ProxyController.java | 9 ------- src/main/resources/swagger/api.yml | 25 ------------------- 2 files changed, 34 deletions(-) diff --git a/src/main/java/jasper/web/rest/ProxyController.java b/src/main/java/jasper/web/rest/ProxyController.java index 5f65d1d4..e47ff20b 100644 --- a/src/main/java/jasper/web/rest/ProxyController.java +++ b/src/main/java/jasper/web/rest/ProxyController.java @@ -54,15 +54,6 @@ ResponseEntity preFetch( .build(); } - @ApiResponses({ - @ApiResponse(responseCode = "200"), - @ApiResponse(responseCode = "500", content = @Content(schema = @Schema(ref = "https://opensource.zalando.com/problem/schema.yaml#/Problem"))), - }) - @GetMapping("refresh") - void refresh(@RequestParam @Length(max = URL_LEN) String url) throws IOException { - proxyService.refresh(url); - } - @ApiResponses({ @ApiResponse(responseCode = "200"), @ApiResponse(responseCode = "404"), diff --git a/src/main/resources/swagger/api.yml b/src/main/resources/swagger/api.yml index c4229e04..ca898d09 100644 --- a/src/main/resources/swagger/api.yml +++ b/src/main/resources/swagger/api.yml @@ -665,31 +665,6 @@ paths: '*/*': schema: $ref: 'https://opensource.zalando.com/problem/schema.yaml#/Problem' - /api/v1/proxy/refresh: - get: - tags: - - Proxy - operationId: refresh - description: Immediately re-scrape a webpage and replace it in the cache. - parameters: - - name: url - in: query - required: true - schema: - $ref: '#/components/schemas/url' - responses: - '200': - description: Mime type scraped - content: - '*/*': - schema: - type: string - '500': - description: Error fetching - content: - '*/*': - schema: - $ref: 'https://opensource.zalando.com/problem/schema.yaml#/Problem' /api/v1/tags/response: post: tags: