Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-3606

Use enum for rest api categories (core, eperson, discover)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Volunteer Needed (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 7.0
    • Fix Version/s: None
    • Component/s: REST API v7
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      0
    • Documentation Status:
      Needed

      Description

      Following up on https://github.com/DSpace/DSpace/pull/1750, consider replacing the category string constants and parameters with a category enum.

      One thing to consider: local DSpace instances might choose to implement local endpoint categories.  If so, an enum value of "local" could be reserved OR the category enum could implement a category interface.

          public enum Category {core,eperson,discover,local;}   

          public enum Category implements CategoryEnum {core,eperson,discover;}

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            terrywbrady Terrence W Brady
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: