Skip to content

Commit

Permalink
v12.2.0-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
kataras committed Sep 13, 2020
1 parent 8161c88 commit c8325a9
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
language: go

go:
- 1.14.x
- 1.15.x

matrix:
fast_finish: true
include:
- go: 1.14.x
- go: 1.15.x
env: GO111MODULE=on

script:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
MIT License

Copyright (c) 2017 Swaggo
Copyright (c) 2019 Gerasimos Maropoulos
Copyright (c) 2019-2020 Gerasimos Maropoulos

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Swagger for the Iris web framework

[Iris](https://github.com/kataras/iris) middleware to automatically generate RESTful API documentation with Swagger 2.0. Based on the [gin-swagger](https://github.com/swaggo/gin-swagger) as requested at [#1231](https://github.com/kataras/iris/issues/1231).
[Iris](https://github.com/kataras/iris) middleware to automatically generate RESTful API documentation with Swagger 2.0 as requested at [#1231](https://github.com/kataras/iris/issues/1231).

[![Travis branch](https://img.shields.io/travis/iris-contrib/swagger/v12.svg)](https://travis-ci.org/iris-contrib/swagger)
[![Codecov branch](https://img.shields.io/codecov/c/github/iris-contrib/swagger/master.svg)](https://codecov.io/gh/iris-contrib/swagger)
Expand All @@ -27,7 +27,7 @@ $ swag init
4. Download [swagger for Iris](https://github.com/iris-contrib/swagger) by using:

```sh
$ go get github.com/iris-contrib/swagger/v12@latest
$ go get github.com/iris-contrib/swagger/v12@v12.2.0-alpha
```

And import following in your code:
Expand Down
2 changes: 1 addition & 1 deletion example/basic/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package api
import (
"fmt"

"github.com/iris-contrib/swagger/v12/example/basic/web"
"github.com/kataras/iris/v12"
"github.com/swaggo/swag/example/basic/web"
)

//
Expand Down
5 changes: 3 additions & 2 deletions example/basic/main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package main

import (
"github.com/kataras/iris/v12"

"github.com/iris-contrib/swagger/v12"
"github.com/iris-contrib/swagger/v12/swaggerFiles"
"github.com/kataras/iris/v12"

_ "github.com/iris-contrib/swagger/v12/example/basic/docs"
)
Expand All @@ -28,5 +29,5 @@ func main() {
url := swagger.URL("http://localhost:8080/swagger/doc.json") //The url pointing to API definition
app.Get("/swagger/{any:path}", swagger.WrapHandler(swaggerFiles.Handler, url))

app.Run(iris.Addr(":8080"))
app.Listen(":8080")
}
7 changes: 4 additions & 3 deletions example/gzipped/main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package main

import (
"github.com/kataras/iris/v12"

"github.com/iris-contrib/swagger/v12"
"github.com/iris-contrib/swagger/v12/swaggerFiles"
"github.com/kataras/iris/v12"

_ "github.com/iris-contrib/swagger/v12/example/basic/docs"
)
Expand All @@ -24,10 +25,10 @@ import (
// @BasePath /v2
func main() {
app := iris.New()
app.Use(iris.Gzip)
app.Use(iris.Compression)

url := swagger.URL("http://localhost:8080/swagger/doc.json") //The url pointing to API definition
app.Get("/swagger/{any:path}", swagger.WrapHandler(swaggerFiles.Handler, url))

app.Run(iris.Addr(":8080"))
app.Listen(":8080")
}
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/iris-contrib/swagger/v12

go 1.14
go 1.15

require (
github.com/kataras/iris/v12 v12.1.8
github.com/swaggo/swag v1.6.5
github.com/kataras/iris/v12 v12.2.0-alpha
github.com/swaggo/swag v1.6.7
)

0 comments on commit c8325a9

Please sign in to comment.