1c have beautiful odata interface& This instrument have 3 options:
- Work as library for 1C odata interface. Project generate methods and types by metadata with translating cyrillic with dictionary(types.json, fields.json)
- Work as grpc middleware
- Work as graphql middleware
For using you must install protobuf and protoc-gen-go(https://github.com/golang/protobuf):
go get -u github.com/golang/protobuf/protoc-gen-go
git clone <repo>
cd cmd/1c-native/
go generate
go install
-
Go to dir with project
-
Fill types.json and fileds.json
-
Run generate lib
1c-gateway <1c-server> <1c-odata-instance> <odata-usesrname> <odata-password>
For example
1c-gateway 127.0.0.1:80 JewelleryTrade odata 11111
Use as middleware with graphql interface
git clone <repo>
cd cmd/1c-graphql-gateway/
go generate
go install
(In feature versions)