Merge pull request #2737 from guohuang/pom-update

updated reference to use go-resty
This commit is contained in:
wing328
2016-04-29 17:47:23 +08:00
2 changed files with 3 additions and 3 deletions

View File

@@ -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>

View File

@@ -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, "")