Skip to content

Commit

Permalink
Added a new API to expose over custom domain to the external world
Browse files Browse the repository at this point in the history
  • Loading branch information
mrj4001 committed Jan 23, 2025
1 parent 2264b38 commit 43ab9fe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/reciter/controller/ReCiterController.java
Original file line number Diff line number Diff line change
Expand Up @@ -847,6 +847,13 @@ else if(analysis.getReCiterFeature()!=null)
return new ResponseEntity<>(reCiterOutputFeature, HttpStatus.OK);
}

// This API is exposed over a custom domain as an HTTP API to the external world and does not need to be on Swagger.
@RequestMapping(value = "/reciter/article-retrieval/by/uid/{uid}", method = RequestMethod.GET, produces = "application/json")
@ResponseBody
public ResponseEntity runArticleRetrievalByUid(@PathVariable String uid) throws IOException {
return runArticleRetrievalByUid(uid, null,null);
}

@ApiOperation(value = "Article retrieval by UID.", response = ReCiterFeature.class, notes = "This api returns all the publication for a supplied uid.")
@ApiImplicitParams({
@ApiImplicitParam(name = "api-key", value = "api-key for this resource", paramType = "header", dataTypeClass = String.class),
Expand Down

0 comments on commit 43ab9fe

Please sign in to comment.