Class InternalController

java.lang.Object
org.localify.auth.InternalController

@RestController @RequestMapping("/v1/internal") @ConditionalOnWebApplication public class InternalController extends Object
Controller for internal endpoints. These endpoints are intended to be used by other services within the system.
  • Constructor Details

    • InternalController

      @Autowired public InternalController(RecommendService recommender)
      Constructs a new InternalController.
      Parameters:
      recommender - The recommendation service.
  • Method Details

    • trainNewModel

      @PostMapping(value="/switch-model", produces="application/json") @ResponseStatus(NO_CONTENT) public void trainNewModel()
      Switches the recommendation model. This is an admin-only endpoint.