Commit Graph

113 Commits

Author SHA1 Message Date
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
Guo Huang
fe1afc35e6 Removed fileParams as the file content will be posted via postBody, fixed file upload issue 2016-04-19 11:46:57 -07:00
Guo Huang
d0123f40b7 fixed go reflection type checking issue 2016-04-18 23:30:30 -07:00
Guo Huang
b57d27d3fc added isFile logic to generate file parameters 2016-04-18 23:15:26 -07:00
Guo Huang
2fcda964ad added ParameterToString method to handle string array issue 2016-04-18 23:06:18 -07:00
Guo Huang
af19a70f72 updated api_client.go to ensure there is value before setting the request 2016-04-18 17:09:47 -07:00
Guo Huang
36219a00e9 fix go build errors after upgrading to the new api client 2016-04-18 14:38:11 -07:00
Guo Huang
8b896a2353 updated api.mustache to call the api client http request 2016-04-17 23:45:23 -07:00
Guo Huang
87f9ff189a Merge branch 'master' of https://github.com/swagger-api/swagger-codegen into apiclient_update
# Conflicts:
#	modules/swagger-codegen/src/main/resources/go/api.mustache
2016-04-17 20:41:07 -07:00
wing328
e612870e89 add new files 2016-04-17 17:10:28 +08:00
wing328
70e42cb0db add new go files 2016-04-17 17:10:10 +08:00
wing328
993d121e35 update go test, update pom 2016-04-17 16:41:35 +08:00
wing328
8d450a29da Merge pull request #2608 from guohuang/issue2359
issue#2359: added README document generation for Go
2016-04-17 16:14:59 +08:00
wing328
9257c94985 Merge branch 'bug' of https://github.com/guohuang/swagger-codegen into guohuang-bug 2016-04-17 16:09:27 +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
3118f932c8 added CallApiAsync method in api_client 2016-04-16 22:58:13 -07:00
Guo Huang
85d30191df fixed go build issue after removing swagger folder 2016-04-16 22:22:23 -07:00
Guo Huang
81a39990f4 Removed "packageName" folder for easy installation 2016-04-16 17:00:46 -07:00
Guo Huang
d72b501e40 added required parameters validation for Go 2016-04-16 16:43:04 -07:00
Guo Huang
a8273b9f08 changed code to use pacageVersion, removed unneeded comments 2016-04-16 15:47:34 -07:00
Guo Huang
c458834652 updated pom file, temporary disable unit test errors 2016-04-16 15:37:49 -07:00
Guo Huang
69150883c1 added pom.mustache to generate pom.xml 2016-04-15 14:57:47 -07:00
Guo Huang
7f4aa6f1fc issue#2611: added pom.xml for building Go 2016-04-15 10:53:23 -07:00
Guo Huang
11f90de808 issue#2543: added api_client to set content-type and accept for http request 2016-04-14 16:11:14 -07:00
Guo Huang
5fad90c3f6 issue#2359: added README document generation for Go 2016-04-14 14:10:15 -07:00
wing328
c702a6aaa4 regenerate go sample, rename configuration.go 2016-04-14 15:15:19 +08:00
wing328
994a77573d Merge pull request #2592 from guohuang/issue2582
issue#2582: change go api file name to snake case
2016-04-14 14:35:59 +08:00
Guo Huang
ad1bb22661 fixed model file name to be snake case 2016-04-13 22:26:03 -07:00
Guo Huang
1f085ccd52 isssue#2579: added "UserAgen" in configuration 2016-04-13 16:08:14 -07:00
Guo Huang
eb7d3dfe15 issue#2582: change go api file name to snake case 2016-04-13 15:40:11 -07:00
Guo Huang
2a2f8b1338 removed local variable declaration in Go 2016-04-12 20:50:58 -07:00
Guo Huang
6b92362735 remove unneeded function line 2016-04-12 20:20:32 -07:00
Guo Huang
4e6ff1a567 added api prefix for authentication 2016-04-11 22:25:02 -07:00
Guo Huang
7fda8699b1 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen into issue2535
# Conflicts:
#	modules/swagger-codegen/src/main/resources/go/configuration.mustache
#	samples/client/petstore/go/swagger/Configuration.go
2016-04-11 20:17:57 -07:00
wing328
fb8c001075 Merge pull request #2562 from guohuang/issue2548
issue #2548, added docstring to Go model and its properties
2016-04-12 10:49:19 +08:00
Guo Huang
fc80bce82f issue #2535, added authentication header for GO 2016-04-11 15:49:13 -07:00
Guo Huang
9c455880b2 issue #2548, added docstring to Go model and its properties 2016-04-11 11:14:33 -07:00
Guo Huang
ae3c628875 issue#2534, added _sling.Set in the go api 2016-04-11 10:37:50 -07:00
Guo Huang
963df24eee Merge branch 'master' of https://github.com/swagger-api/swagger-codegen into issue1946 2016-04-11 10:19:49 -07:00
wing328
d8963d0a85 udpate type mapping for go, fix indention in go model 2016-04-11 23:44:06 +08:00
Guo Huang
00fcf9946a issue #1946, added AddDefaultHeader method for GO 2016-04-10 20:50:53 -07:00
Guo Huang
21d7c8d260 added missing apiresponse.go, renamed petapi_test.go, fixed compilation error 2016-04-10 15:04:29 -07:00
wing328
4942ebdc73 Merge pull request #2532 from guohuang/issue1948
issue #1948, added testing code to test go api
2016-04-11 01:05:20 +08:00
wing328
6f7e3c71f2 update go sample 2016-04-10 23:16:32 +08:00
wing328
070d87a97c restore petstore.yaml 2016-04-10 23:11:42 +08:00
Guo Huang
b16439e17b formatted code 2016-04-09 21:43:46 -07:00
Guo Huang
33491a7a8f added testify assert 2016-04-09 21:40:47 -07:00
Guo Huang
aa9e19f3d9 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen into issue1948 2016-04-09 16:03:57 -07:00
Guo Huang
1f39a4d3a9 issue #1948, added testing code to test go api 2016-04-08 14:04:49 -07:00
Guo Huang
9cae125b2c updated sample files 2016-04-07 22:27:33 -07:00
Guo Huang
20a81ca66a Merge branch 'master' of https://github.com/swagger-api/swagger-codegen into issue1949 2016-04-07 22:22:22 -07:00
Guo Huang
316c2cb136 added Configuration struct for GO 2016-04-07 22:16:31 -07:00
wing328
f635e22be6 update go sample 2016-04-08 12:22:15 +08:00
wing328
a529d9dfe0 push new git_push and .gitinore file 2016-03-12 18:01:53 +08:00
wing328
637bdd2f50 add git_push and gitignore to most client generators 2016-03-12 17:35:25 +08:00
wing328
20e531d6dd update test case, add beta to go help 2016-01-22 17:27:30 +08:00
wing328
25b60a194b add sh script for go, add binary mapping for go, fix format 2016-01-22 17:21:51 +08:00
wing328
6b2f15b2cf add packageName support to golang 2015-12-22 00:12:18 +08:00
wing328
0d377507b4 fix post model and update test 2015-12-21 22:34:56 +08:00
wing328
4062deed92 remove logger, fix deserialization of json response 2015-12-21 22:34:56 +08:00
wing328
3ebefba678 better return for golang method 2015-12-21 22:34:56 +08:00
wing328
a05076ed09 first commit of golang generator before fixing return 2015-12-21 22:34:56 +08:00