Skip to content

Commit

Permalink
Remove cache refresh controller (use _plugin/delta/cache tag)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmalloy committed Sep 5, 2024
1 parent 7795607 commit 535eaac
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 34 deletions.
9 changes: 0 additions & 9 deletions src/main/java/jasper/web/rest/ProxyController.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,6 @@ ResponseEntity<String> 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"),
Expand Down
25 changes: 0 additions & 25 deletions src/main/resources/swagger/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 535eaac

Please sign in to comment.