[ https://issues.apache.org/jira/browse/ATLAS-208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14978356#comment-14978356 ]
Ayub Khan commented on ATLAS-208: --------------------------------- Entity submit's response does not seem to have this issue. {noformat} curl -v -X PUT 'http://localhost:21000/api/atlas/entity/5b96a521-eee2-4308-94e4-8e75b7a9f4d3?property=startTime&value=1446036006' -H 'Accept-Encoding: gzip, deflate, sdch' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36' -H 'Accept: application/json, text/plain, */*' -H 'Referer: http://localhost:21000/' -H 'Cookie: JSESSIONID=1h8rcfws7ptbdzso27pwf7zlq' -H 'Connection: keep-alive' --compressed * Trying ::1... * Connected to localhost (::1) port 21000 (#0) > PUT > /api/atlas/entity/5b96a521-eee2-4308-94e4-8e75b7a9f4d3?property=startTime&value=1446036006 > HTTP/1.1 > Host: localhost:21000 > Accept-Encoding: gzip, deflate, sdch > Accept-Language: en-US,en;q=0.8 > User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) > AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36 > Accept: application/json, text/plain, */* > Referer: http://localhost:21000/ > Cookie: JSESSIONID=1h8rcfws7ptbdzso27pwf7zlq > Connection: keep-alive > < HTTP/1.1 200 OK < Date: Wed, 28 Oct 2015 12:40:15 GMT < Content-Type: application/json; charset=UTF-8 < Transfer-Encoding: chunked < Server: Jetty(9.2.12.v20150709) < * Connection #0 to host localhost left intact {"requestId":"qtp1431107542-64808 - 2f03ceed-2e0d-4fbc-8239-e203bb6bcd72"} {noformat} > 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)