19 Commits

Author SHA1 Message Date
antihax
831e8d7c87 [Go] Add context to all requests for tracing, logging, cancellations, etc. (#6997)
* Add context to all requests for tracing, logging, cancellations, etc.

* Fix compile error with when call has no parameters.
2017-11-30 00:30:35 +08:00
Vaughn Dice
40ae715392 [go] add http request host override for api client (#6174) 2017-07-27 15:53:33 +08:00
antihax
3ed1aa8e79 Rewrite of Go Client #2 (#5037)
* Rewrite of Go Client

* Revert to older version of context.Context

* Clean and bulk up concurrency test.

* Correct {{path}} to {{{path}}}

* change custom date type to string.

* Add APIKey authentication

* Correct missing line from resolving conflicts.

Correct missing line from resolving conflicts.
2017-04-22 01:17:18 +08:00
Dan Wilson
774dd33af0 Add optional parameters to go client using map[string]interface{} (#4415)
* Add VSCode to the list of ignores.

* Move optional parameters into a map[string]interface{}
Refactor tests to new API and add concurrency test.

* Add optional check to postBody.
The pet-store does not create this scenario.
2016-12-20 16:32:44 +08:00
Guo Huang
41b7649e62 fixed array return type return as pointer issue 2016-05-04 10:39:30 -07:00
wing328
27b8d1af81 Merge branch 'tests' of https://github.com/guohuang/swagger-codegen into guohuang-tests
Conflicts:
	samples/client/petstore/go/pet_api_test.go
2016-05-04 10:21:38 +08:00
Guo Huang
60ee308da5 added assert to check response status match the query 2016-05-03 11:55:51 -07:00
Guo Huang
035ee18ba4 fixed testing issue 2016-05-03 10:27:27 -07:00
Guo Huang
e6fb2507a4 changed go client to return object pointer 2016-04-30 23:18:59 -07:00
Guo Huang
1de18eb074 added implementation of the new ApiResponse struct 2016-04-23 17:50:17 -07:00
Guo Huang
7df5c8ffbf added model ApiResponse, moved ApiResponse parameter 2016-04-23 16:41:14 -07:00
Guo Huang
0e3bb2c23e added more tests functions, clean up generated code 2016-04-19 15:48:34 -07:00
Guo Huang
9cf6eb4d8b added ApiResponse to all api calls 2016-04-19 15:18:13 -07:00
Guo Huang
611b711a7e clean up generated code, added delete pet test 2016-04-19 12:52:51 -07:00
wing328
993d121e35 update go test, update pom 2016-04-17 16:41:35 +08:00
wing328
8af6903757 Merge branch 'issue2611' of https://github.com/guohuang/swagger-codegen into guohuang-issue2611
Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/GoClientCodegen.java
	samples/client/petstore/go/pet_api_test.go
2016-04-17 16:02:12 +08:00
Guo Huang
85d30191df fixed go build issue after removing swagger folder 2016-04-16 22:22:23 -07:00
Guo Huang
c458834652 updated pom file, temporary disable unit test errors 2016-04-16 15:37:49 -07:00
wing328
c702a6aaa4 regenerate go sample, rename configuration.go 2016-04-14 15:15:19 +08:00