Interface PostImpl

All Known Implementing Classes:
PostSvc

@RequestMapping("/posts")
public interface PostImpl
Interface for endpoints relating to Patreon posts
  • Method Summary

    Modifier and Type Method Description
    org.springframework.http.ResponseEntity<?> GetCreatorPosts​(int campaignId)
    Endpoint that will get a list of PostBean objects from the database given a specified creator
    org.springframework.http.ResponseEntity<?> GetMultipleCreatorPosts​(PostGetMultipleRequest postGetMultipleRequest)
    Endpoint that will get a list of PostBean objects from the database given list of creators
  • Method Details

    • GetCreatorPosts

      @GetMapping("/creator") org.springframework.http.ResponseEntity<?> GetCreatorPosts​(@RequestParam(required=true,name="campaign") int campaignId)
      Endpoint that will get a list of PostBean objects from the database given a specified creator
      Parameters:
      campaignId - is the creator of the posts we want to get
      Returns:
      a json body of post objects from a given creator
    • GetMultipleCreatorPosts

      @GetMapping("/creators") org.springframework.http.ResponseEntity<?> GetMultipleCreatorPosts​(@RequestBody PostGetMultipleRequest postGetMultipleRequest) throws PSException
      Endpoint that will get a list of PostBean objects from the database given list of creators
      Parameters:
      postGetMultipleRequest - is the PostGetMultipleRequest object holding json data about our request
      Returns:
      a json body of post objects from the given list of creators
      Throws:
      PSException