atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "liutongfeng (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ATLAS-208) Remove "\n" characters in the REST API json response
Date Wed, 28 Oct 2015 16:14:27 GMT

    [ https://issues.apache.org/jira/browse/ATLAS-208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14978673#comment-14978673
] 

liutongfeng commented on ATLAS-208:
-----------------------------------

Not PUT, should use POST.

> Remove "\n" characters in the REST API json response
> ----------------------------------------------------
>
>                 Key: ATLAS-208
>                 URL: https://issues.apache.org/jira/browse/ATLAS-208
>             Project: Atlas
>          Issue Type: Bug
>    Affects Versions: 0.6-incubating
>            Reporter: Ayub Khan
>            Priority: Minor
>         Attachments: ATLAS-208.txt
>
>
> "\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"
> }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message