https://github.com/zosconnect/db2servicegen
Program to create z/OS Connect Db2 service projects
https://github.com/zosconnect/db2servicegen
Last synced: 5 months ago
JSON representation
Program to create z/OS Connect Db2 service projects
- Host: GitHub
- URL: https://github.com/zosconnect/db2servicegen
- Owner: zosconnect
- License: apache-2.0
- Created: 2019-09-14T09:49:47.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-16T21:49:20.000Z (over 6 years ago)
- Last Synced: 2024-06-21T21:06:12.813Z (almost 2 years ago)
- Language: Go
- Size: 121 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# db2servicegen
Sample program to create z/OS Connect EE service projects for Db2 RESTful Services.
## Usage
```
db2servicegen --server http://example.mainframe.com:42100 --user admin --password adminpass
```
* `--server` : The hostname and port of the Db2 server
* `--user` : The UserId of the user that can retrieve all the Db2 services
* `--password` : The password for the UserId specified in the `--user` parameter
## How it works
The program does the following to create the files required to create SARs for the Db2 services.
1. Connect to the Db2 server and retrieve the list of services from the `/services` endpoint.
1. Iterate through the services returned and get the information about each one.
1. Extract the request and response schemas for the Db2 service and remove any references to `null` types which are unsupported by z/OS Connect EE.
1. Create a `service.properties` file with the details of the service.
1. Save the files in a new directory, named the same as the Db2 service, in the current working directory.
SAR files can then be built using the z/OS Connect EE build toolkit by going into the directory and running
```
zconbt -p service.properties -f serviceName.sar
```
## License
```
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```