open-horizon / exchange-api

Horizon Exchange REST API Server
Apache License 2.0
11 stars 30 forks source link

Update exchange swagger to latest (2.7.x)? #173

Closed bmpotter closed 4 years ago

bmpotter commented 5 years ago

This might get done as part of moving to akka-http

org.scalatra scalatra-swagger was recently updated to 2.7.x, but will require code changes on our part.

The line in ExchangeApiSwagger.scala should be changed to:

class ExchangeApiSwagger extends Swagger(Swagger.SpecVersion, "1", ApiInfo("The Data Exchange API","Docs for the data exchange","https://termsofservice.bluehorizon.network/",ContactInfo("IBM","https://www.ibm.com",""),LicenseInfo("apache2","http://www.apache.org/licenses/LICENSE-2.0")))

Restore the relevant line in build.sbt to:

"org.scalatra" %% "scalatra-swagger"  % "latest.release",

At that point there will be other swagger changes that are needed for each api method, which i haven't investigated yet.

bmpotter commented 4 years ago

Swagger was updated as part of the conversion to akka-http