Public Repository

Last pushed: 2 years ago
Short Description
A rest service for validating Swift SR 2015 message formats
Full Description

This is a rest service for testing the syntax and semantics of Swift SR 2015 messages.

To run it you will need a valid C24 License for Swift 2015

Running the application

  • Place your C24 license in a directory that you can reference in the next command which will copy it over to the docker container

i.e. ~/c24/license

  • Run the C24 validation service:

$ docker --tlsverify=false run -e IO_HOME="license" -d -p 8080:8080 -v $HOME/c24/license/:/license iainporter/c24-swift-rest-service

  • You now have the C24 Rest Service running locally on port 8080. Use curl to test it out:

$ curl -X POST $(docker-ip):8080/messages -H "Content-Type: application/json" --data-binary @MT101i-valid_1.dat

The @MT101i-valid_1.dat is a file reference to a swift file in your working directory (change it accordingly)

There is an additional function to return the original message in XML or JSON format.


$ curl -X POST $(docker-ip):8080/messages/XML -H "Content-Type: application/json" --data-binary @MT101i-valid_1.dat

$ curl -X POST $(docker-ip):8080/messages/JSON -H "Content-Type: application/json" --data-binary @MT101i-valid_1.dat

Docker Pull Command