SIT-14249: Publish Listing to API

How to Use This Feature

Publish/Unpublish Listing Feature

Overview

The Publish/Unpublish listing feature allows users to update the status of a listing on the platform.

Behavior

  • When publishing a listing:
  • + Sends data to the catchall API

    + Updates the "Broadcast" column with "Yes"

  • When unpublishing a listing:
  • + Sends data to the catchall API

    + Updates the "Broadcast" column with "No"

    API Calls

    To publish or unpublish a listing, the following API calls are made:

  • Publish: `PUT` request to `https://anytickets.tech/api/private/v1/listing/<listing_id>` with JSON payload containing `"IsPublished": true`
  • Unpublish: `PUT` request to `https://anytickets.tech/api/private/v1/listing/<listing_id>` with JSON payload containing `"IsPublished": false`
  • Response

    The API returns a response in the following format:

    ```json

    {

    "status": "listing updated.",

    "code": "success",

    "timestamp": "YYYY-MM-DDTHH:MM:SSZ",

    "details": {

    ...

    }

    }

    ```

    Note: The actual response may vary depending on the specific listing and API request.

    Additional Information

    Status: Pending UAT Deployment
    Assigned to: Matthew Heinke
    🏠 Home View in Jira