Retrieve a list of vendors

GET /api/vendors/

Retrieve a list of vendors

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • id integer
    • name string Required

      Maximum length is 200.

    • contact_details string Required
    • address string Required
    • vendor_code string Required

      Maximum length is 200.

    • on_time_delivery_rate number | null

      Optional

    • quality_rating_avg number | null

      Optional

    • average_response_time number | null

      Optional

    • fulfillment_rate number | null

      Optional

GET /api/vendors/
curl \
 --request GET 'https://vendorms.pythonanywhere.com/api/vendors/' \
 --header "Authorization: Token $ACCESS_TOKEN"
Response examples (200)
[
  {
    "id": 42,
    "name": "string",
    "contact_details": "string",
    "address": "string",
    "vendor_code": "string",
    "on_time_delivery_rate": 42.0,
    "quality_rating_avg": 42.0,
    "average_response_time": 42.0,
    "fulfillment_rate": 42.0
  }
]