API server which can analyse the content of big xml files
174
XML Analyser
XML Analyser is a StAX parser able to analyse large XML files
Download docker image
docker pull kamilak2019/xml_analyzer
To run docker conatiner
docker run -d -p 8080:8080 kamilak2019/xml_analyser
You can get inside a container
docker exec -it CONTAINER_ID /bin/ash
To view docker logs
docker logs CONTAINER_NAME
On the running container
XML files containing archival topics can be analyzed by sending a POST request to localhost:8080/analyze.
Example request:
curl -i -X POST
-H "Content-Type:application/json"
-d
'{
"url": "https://s3-eu-west-1.amazonaws.com/merapar-assessment/arabic-posts.xml"
}'
'http://localhost:8080/analyze/'
Example of Json response:
{
"dateOfCreation": "2016-04-25T14:52:30+00:00,
"analyzeDetails": {
"firstPost": "2016-01-12T18:45:19.963+00:00",
"lastPost": "2016-03-04T13:30:22.410+00:00",
"totalPosts": 80,
"avgScore": 13 }
}
Content type
Image
Digest
Size
260.8 MB
Last updated
over 5 years ago
docker pull kamilak2019/xml_analyzer