forked from loafle/openapi-generator-original
Merge pull request #2737 from guohuang/pom-update
updated reference to use go-resty
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>go-get-sling</id>
|
||||
<id>go-get-resty</id>
|
||||
<phase>pre-integration-test</phase>
|
||||
<goals>
|
||||
<goal>exec</goal>
|
||||
@@ -50,7 +50,7 @@
|
||||
<executable>go</executable>
|
||||
<arguments>
|
||||
<argument>get</argument>
|
||||
<argument>github.com/dghubble/sling</argument>
|
||||
<argument>github.com/go-resty/resty</argument>
|
||||
</arguments>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
||||
@@ -22,7 +22,7 @@ func main() {
|
||||
s.UpdatePetWithForm(12830, "golang", "available")
|
||||
|
||||
// test GET
|
||||
resp, err, apiResponse := s.GetPetById(12830)
|
||||
resp, apiResponse, err := s.GetPetById(12830)
|
||||
fmt.Println("GetPetById: ", resp, err, apiResponse)
|
||||
|
||||
err2, apiResponse2 := s.DeletePet(12830, "")
|
||||
Reference in New Issue
Block a user