Skip to content

API overhaul: add version prefix v1 to the API endpoints #238

@josecelano

Description

@josecelano

Parent issue: #141

Add a URL prefix to all API urls:

Current URLs:

  • /api/key/:seconds_valid_or_key
  • /api/keys/reload
  • /api/stats
  • /api/torrent/:info_hash
  • /api/torrents
  • /api/whitelist/:info_hash
  • /api/whitelist/reload

New URLs:

  • /api/v1/key/:seconds_valid_or_key
  • /api/v1/keys/reload
  • /api/v1/stats
  • /api/v1/torrent/:info_hash
  • /api/v1/api/torrents
  • /api/v1/whitelist/:info_hash
  • /api/v1/whitelist/reload

We will keep the current ones (without prefixes) until we update the torrust index backend.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions