Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-42

VSE: Create an anchor in the given dataspace

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • None
    • None

      Create REST endpoint: POST /dataspaces/{dataspace-name}/anchors/

      JSON payload includes anchor name, module namespace and revision

      How?

      Acceptance/Criteria

      1. Dataspace has to exist, if not some HTTP Error code should be returned
      2. Module (namespace & revision  has to exist in same dataspace), if not some HTTP Error code should be returned
      3. Anchor Name should be unique if not some HTTP Error code should be returned
      4. Anchor Name should be 'URL-safe'
      5. 4/5xx error if already exist. (Rishi.Chail will provide link to short-list of agreed HTTP error codes in ONAP)
      6. If all OK tables populated and HTTP 201 is returned
      7. a SQL query in separate tool will can show all anchors created for a dataspace
      8. Document REST endpoint clearly in our YAML file including parameters and error code meaning

       

       

            rishi.chail rishi.chail
            ToineSiebelink Toine Siebelink
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: