Skip to content

SudoSOS Back-end API / banners

banners ​

banners are used to manage promotional material within SudoSOS, commonly displayed on the point of sale. They can be configured with a duration, activation status, and start/end dates to control their visibility.

Usage ​

  • Banners can be created, updated, or deleted by admins.
  • Active banners can be retrieved without authentication.

For API interactions, refer to the Swagger Documentation.

Classes ​

ClassDescription
BannerTypeORM entity for the banners table.
BannerControllerController for managing all routes related to the banner entity.
BannerImageTypeORM entity for banner images. Note that the image itself is stored in the file system, but the table is used to store the location of the image.
BannerServiceService class for the banner entity,

Interfaces ​

InterfaceDescription
BannerFilterParametersFilter parameters for the banner entity.
BannerRequestAPI Request for creating a banner entity.
BannerResponseAPI Response for the banner entity.
PaginatedBannerResponsePaginated API Response for the banner entity.