HUB
Sign inSign up

bszpara/xml-analyze

By bszpara

•Updated over 6 years ago

API server which can analyse the content of big xml files

Image
0

1.4K

bszpara/xml-analyze repository overview

⁠Xml Analyze API

API server which can analyse the content of big xml files

⁠Starting local development server

npm start:dev

⁠Running docker container

Api container is listening internally on port 8080. You can run it by:

docker run -p 8080:8080 bszpara/xml-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 response

{ "analyseDate":"2016-04-25T14:52:30+00:00", "details" { "firstPost":"2016-01-12T18:45:19.963+00:00", "lastPost":"2016-03-04T13:30:22.410+00:00", "totalPosts":80, "totalAcceptedPosts":7, "avgScore":13 } }

Tag summary

Content type

Image

Digest

Size

60.6 MB

Last updated

over 6 years ago

docker pull bszpara/xml-analyze