Skip to content

Implemented POST and PUT methods for Restream Destinations

Rizwan Ahmed requested to merge rizwan95/flask-nginx-rtmp-manager:master into nightly

Description

This merge request introduces new POST and PUT methods for managing restream destinations in the api_1_GetRestreams resource. The POST method allows users to add new restream destinations to a specific channel, and the PUT method enables users to update existing restream destinations. Both methods include authorization checks and error handling.

Motivation and Context

The motivation for this change is to provide users with greater control over their restreaming settings through the API. Prior to this update, users could only retrieve restream destinations but could not add new ones or modify existing ones. By enabling these functionalities, we are enhancing the usability and flexibility of our service. This change does not fix an open issue but represents an enhancement of existing functionalities.

How Has This Been Tested?

The new methods have been tested locally to ensure they correctly add and update restream destinations in the database. The authorization checks and error handling have also been verified. Further testing may be required in different environments and with different test cases to ensure robustness and compatibility.

Screenshots (if appropriate):

N/A

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • Merge Request Follows the Merge Request Guidelines
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

Merge request reports