Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-208

Remove "\n" characters in the REST API json response

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.6-incubating
    • Fix Version/s: 0.6-incubating
    • Component/s: None
    • Labels:
      None

      Description

      "\n" characters are seen in REST API response, which is not needed and can be removed..

      curl -k -s --negotiate -u : http://localhost:21000/api/atlas/types/traitWithSuperTypefxgy2bhnev | python -m json.tool
      {
      "definition": "{\n \"enumTypes\":[\n \n ],\n \"structTypes\":[\n \n ],\n \"traitTypes\":[\n {\n \"superTypes\":[\n \"traitSuperType1fxgy2bhnev\",\n \"traitSuperType2fxgy2bhnev\"\n ],\n \"hierarchicalMetaTypeName\":\"org.apache.atlas.typesystem.types.TraitType\",\n \"typeName\":\"traitWithSuperTypefxgy2bhnev\",\n \"attributeDefinitions\":[\n

      {\n \"name\":\"string\",\n \"dataTypeName\":\"string\",\n \"multiplicity\":\"optional\",\n \"isComposite\":false,\n \"isUnique\":false,\n \"isIndexable\":true,\n \"reverseAttributeName\":null\n }

      \n ]\n }\n ],\n \"classTypes\":[\n \n ]\n}",
      "requestId": "1146437560@qtp-1778535015-267 - d982526c-f6b6-4fe5-a4ed-722cbc29eb38",
      "typeName": "traitWithSuperTypefxgy2bhnev"
      }

        Attachments

        1. ATLAS-208.txt
          3 kB
          Satya Narayan

          Activity

            People

            • Assignee:
              patel_satya Satya Narayan
              Reporter:
              ayubpathan Ayub Pathan
            • Votes:
              5 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: