-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(rest): remove api method #3229
Conversation
packages/rest/README.md
Outdated
@@ -68,15 +68,12 @@ const client = createClient({ | |||
}); | |||
|
|||
try { | |||
const resp = await client.GET("/k/v1/records.json", { | |||
const resp = await client.request("get", "/k/v1/records.json", { | |||
params: { | |||
query: { app: "1" }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shabaraba
お手間でなければ "1" -> 1もついでに修正できるとありがたいです!
- query: { app: "1" },
+ query: { app: 1 },
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chihiro-adachi
すみません、直しました!
@@ -189,7 +135,5 @@ export const iterator = <Paths extends {} = any, Media extends MediaType = any>( | |||
init, | |||
client.TRACE, | |||
), | |||
api: (url, method, init, handleRequest, hasNext) => | |||
createKintoneApiIteratorMethod(url, handleRequest, hasNext, init, method), | |||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shabaraba
requestメソッドの追加は別で実装しますか?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chihiro-adachi
ここで実装します!
1e6b5da
to
0e0a870
Compare
0e0a870
to
4ce4042
Compare
Why
client.api()
method.What
client.api()
method.client.request()
instead ofclient.api()
.How to test
Checklist
pnpm lint
andpnpm test
on the root directory.