Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-15737 Ensure all (desired) v1 APIs have v2 equivalent
  3. SOLR-16468

Create v2 equivalent of v1 'CREATESNAPSHOT', 'LISTSNAPSHOT' and 'DELETESNAPSHOT' (collection level)

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 9.2
    • None
    • v2 API

    Description

      Snapshot API has no v2 equivalent at collection level. This ticket is to track changes made to the Solr to add v2 equivalent of 'CREATESNAPSHOT', 'LISTSNAPSHOT' and 'DELETESNAPSHOT' api.

      Proposed API design

      • collection CREATESNAPSHOT - POST /api/collections/collName/snapshots/snapshotName
      • collection LISTSNAPSHOT - GET /api/collections/collName/snapshots
      • collection DELETESNAPSHOT - DELETE /api/collections/collName/snapshots/snapshotName

      A few other pointers that might be helpful, especially for newcomers:

      • The v1 logic for this API lives in CollectionsHandler (for the collection-level APIs) and CoreAdminHandler (for the core-level APIs).
      • Some discussion of how APIs work in Solr¬†(Particularly the "APIs in Solr" section.)
      • A step-by-step guide to creating APIs using the preferred v2 API framework
      • A recent PR that adds a v2 API, as an example

      Attachments

        Activity

          People

            gerlowskija Jason Gerlowski
            duttsanjay Sanjay Dutt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: