Skip to content

Commit 407441e

Browse files
committed
update
1 parent ae31b9c commit 407441e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<p align="center">A fast and beautiful command line tool to build API requests</p>
55
<p align="center">
66
<a href="https://travis-ci.com/Clivern/Poodle"><img src="https://travis-ci.com/Clivern/Poodle.svg?branch=master"></a>
7-
<a href="https://github.com/Clivern/Poodle/releases"><img src="https://img.shields.io/badge/Version-0.1.2-red.svg"></a>
8-
<a href="https://goreportcard.com/report/github.com/Clivern/Poodle"><img src="https://goreportcard.com/badge/github.com/Clivern/Poodle?v=0.1.2"></a>
7+
<a href="https://github.com/Clivern/Poodle/releases"><img src="https://img.shields.io/badge/Version-0.1.3-red.svg"></a>
8+
<a href="https://goreportcard.com/report/github.com/Clivern/Poodle"><img src="https://goreportcard.com/badge/github.com/Clivern/Poodle?v=0.1.3"></a>
99
<a href="https://github.com/Clivern/Poodle/blob/master/LICENSE"><img src="https://img.shields.io/badge/LICENSE-MIT-orange.svg"></a>
1010
</p>
1111
</p>

core/model/service.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func NewService(id string) *Service {
7272
Timeout: "30s",
7373
Name: "~~ name Here ~~",
7474
Description: "~~ description Here ~~",
75-
ServiceURL: "http://api.example.com",
75+
ServiceURL: "https://httpbin.org",
7676
Headers: [][]string{
7777
[]string{"Content-Type", "application/json"},
7878
},
@@ -108,7 +108,7 @@ func NewService(id string) *Service {
108108
Method: "post",
109109
Headers: [][]string{},
110110
Parameters: [][]string{},
111-
URI: "/item/{$id}",
111+
URI: "/anything/{$id}",
112112
Body: `{"name":"{$name}","type":"{$type:default}"}`,
113113
},
114114
Endpoint{
@@ -121,7 +121,7 @@ func NewService(id string) *Service {
121121
[]string{"limit", "{$limit:100}"},
122122
[]string{"offset", "{$offset:0}"},
123123
},
124-
URI: "/item",
124+
URI: "/anything",
125125
Body: "",
126126
},
127127
Endpoint{
@@ -131,7 +131,7 @@ func NewService(id string) *Service {
131131
Method: "get",
132132
Headers: [][]string{},
133133
Parameters: [][]string{},
134-
URI: "/item/{$id}",
134+
URI: "/anything/{$id}",
135135
Body: "",
136136
},
137137
Endpoint{
@@ -141,7 +141,7 @@ func NewService(id string) *Service {
141141
Method: "put",
142142
Headers: [][]string{},
143143
Parameters: [][]string{},
144-
URI: "/item/{$id}",
144+
URI: "/anything/{$id}",
145145
Body: `{"name":"{$name}","type":"{$type:default}"}`,
146146
},
147147
Endpoint{
@@ -151,7 +151,7 @@ func NewService(id string) *Service {
151151
Method: "delete",
152152
Headers: [][]string{},
153153
Parameters: [][]string{},
154-
URI: "/item/{$id}",
154+
URI: "/anything/{$id}",
155155
Body: "",
156156
},
157157
},

0 commit comments

Comments
 (0)