module
Version:
v0.4.7
Opens a new window with list of versions in this module.
Published: Sep 16, 2020
License: Apache-2.0
Opens a new window with license information.
README
¶
Web-Service for Converting SIF to JSON & Vice Versa
Getting Started
-
Make sure GOLANG
dev package & GIT
are available in your machine.
-
Build.
Run ./build.sh
to build service with SIF 3.4.6 & 3.4.7
-
Release.
Run release.sh 'dest-platform' 'dest-path'
.
e.g. run ./release.sh [linux64|win64|mac] ~/Desktop/sif2json/linux64/
-
Docker Deploy (local, only for linux64 platform server).
Make sure Docker
is installed.
Jump into your release dest-path in above step.
e.g. jump into ~/Desktop/sif2json/linux64/
Run docker build --tag n3-sif2json .
to make docker image.
Run docker run --name sif2json --net host n3-sif2json:latest
to run docker image.
-
Test.
Make sure curl
is installed.
curl test script in "test.sh", which goes through all examples in ./data/
.
Before running ./test.sh
, modify some params like URL (IP, PORT ...) if needed (especially service version number in URL).
Refer to 'test.sh', write more your own curl test.
Prerequisites
SIF Specification Description File (txt file). It's text readable format, and at least contains:
-
Spec VERSION.
-
LIST, NUMERIC, BOOLEAN attribute type description.
-
Element TRAVERSE description.
Directories
¶
|
|
|
|
|
|
|
|
SIFSpec
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.