Class PwaManifestRest

java.lang.Object
io.meeds.pwa.rest.PwaManifestRest

@RestController @RequestMapping("manifest") public class PwaManifestRest extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity<String>
    getManifest(org.springframework.web.context.request.WebRequest request, String version)
     
    org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource>
    getManifestLargeIcon(org.springframework.web.context.request.WebRequest request, String sizes)
     
    org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource>
    getManifestLargeIcon(org.springframework.web.context.request.WebRequest request, String size, String version)
     
    org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource>
    getManifestSmallIcon(org.springframework.web.context.request.WebRequest request, String sizes)
     
    org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource>
    getManifestSmallIcon(org.springframework.web.context.request.WebRequest request, String size, String version)
     
    void
    updateManifest(org.springframework.web.context.request.WebRequest request, PwaManifestUpdate manifestUpdate)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PwaManifestRest

      public PwaManifestRest()
  • Method Details

    • getManifest

      @GetMapping public org.springframework.http.ResponseEntity<String> getManifest(org.springframework.web.context.request.WebRequest request, @RequestParam(name="v",required=false) String version)
    • updateManifest

      @PutMapping @Secured("administrators") public void updateManifest(org.springframework.web.context.request.WebRequest request, @RequestBody PwaManifestUpdate manifestUpdate)
    • getManifestLargeIcon

      @GetMapping("/largeIcon/{version}/{size}.png") public org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> getManifestLargeIcon(org.springframework.web.context.request.WebRequest request, @PathVariable("size") String size, @PathVariable("version") String version)
    • getManifestSmallIcon

      @GetMapping("/smallIcon/{version}/{size}.png") public org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> getManifestSmallIcon(org.springframework.web.context.request.WebRequest request, @PathVariable("size") String size, @PathVariable("version") String version)
    • getManifestLargeIcon

      @GetMapping("/largeIcon") public org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> getManifestLargeIcon(org.springframework.web.context.request.WebRequest request, @RequestParam(name="sizes",required=false) String sizes)
    • getManifestSmallIcon

      @GetMapping("/smallIcon") public org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> getManifestSmallIcon(org.springframework.web.context.request.WebRequest request, @RequestParam(name="sizes",required=false) String sizes)