Fork me on GitHub
#aws
<
2020-02-04
>
slipset13:02:41

For the cognitect-labs/aws-api, the code that actually consumes stuff like https://github.com/aws/aws-sdk-js/blob/master/apis/s3-2006-03-01.normal.json and creates specs and the stuff that's needed to run aws-api, is that proprietary?

slipset18:02:52

The reason I’m asking is that we need to talk to azure, and they have their api specs in swagger, so it’d be fun to use the same approach.

rahul08032707:02:37

@ I was inspired by the aws lib to make a docker client: https://github.com/lispyclouds/clj-docker-client This uses docker API's swagger to do its things. This may be of interest? Also I could use some improvements in the process too 😄

slipset07:02:37

Sweet! I’ll have a look.

kenny16:02:13

@ It's pretty straightforward to do. We have also written an api that is very similar to aws-api for GCP: https://github.com/ComputeSoftware/gcp-api

kenny16:02:41

gcp-api takes in swagger and transforms it into descriptor files (it only does this to minimize the size of the final artifact). I'm somewhat sure a generic client could be made to take in Swagger and call a service. We're also going to need to build one of these for k8s soon. Once I have a better understanding of where things are common, I may pull the swagger part out into a separate library.