Comments (7)
@r3-yamauchi
We've just added a new parameter endpointName
for bulkRequest()
method ( PR: #152 ).
With this parameter, you can use the same request parameters for both guest space app and non-guest space app.
For more information, please see the doc:
https://github.com/kintone/js-sdk/blob/master/packages/rest-api-client/docs/bulkRequest.md#parameters
We'll release a new version that includes this in a few weeks.
We really appreciate your feedback!
from js-sdk.
@r3-yamauchi
フィードバックありがとうございます。
こちら、APIClientにゲストIDが指定されている場合には、apiのpathに自動的にguest idを付与する方法で検討してみようと思います。
Thank you for your feedback!
We'll consider your feature request in the following way.
- Adding a guest ID into an API path in
bulkRequest
automatically if the client has a guest ID.
from js-sdk.
@koba04
ご確認いただきありがとうございます。
ゲストIDが指定されている場合には、apiのpathに自動的にguest idを付与する
私の感覚では SDKを実際に使う場面として、bulkRequest に渡すパラメータの内容を Postman 等のツールを使い 実際に REST API を実行して確認し、確認したパラメータの内容(各apiのpathはベタ書き)をそのまま jsコードに貼り付けて実行したいケースもあるのではないかと思います。
一方で ゲストスペース/非ゲストスペースアプリのいずれにおいても使われうるツールのようなものを実装する際には
{
method: "POST",
api: buildPath("records"),
payload: {
app: APP_ID,
といったイメージでパラメータを組み立てられると便利です。
いずれの方法でパラメータを指定するか、使用者が選択できると嬉しいです。
from js-sdk.
@r3-yamauchi
なるほど、ありがとうございます。
現状のAPIClientのI/Fだと、Clientがguest space IDを持つ形になっており、他のAPIに対してもClientがguest space IDを持っている場合は自動的に付与する形になっています。
それに対する一貫性を考えると、guest space IDがClientに渡されている場合には付与する形になるのかなとイメージしていました。
(guest space ID付与するかどうかはClientの生成時に指定する)
from js-sdk.
ありがとうございます。
requests[].api を指定するか requests[].endpointName で指定するかを選べるということですね。
素晴らしい対応に感謝します。
from js-sdk.
@r3-yamauchi
ご認識の通りです。
リリースはもう少し先になりますが、使ってみて気になる点があればまたフィードバックいただければ幸いです!
Absolutely.
Since it takes a few more weeks to release this feature, we would appreciate your feedback after its' released.
Thank you.
from js-sdk.
@r3-yamauchi
We released this feature in v1.2.0 .
from js-sdk.
Related Issues (20)
- Support a stream on uploadFile in browsers HOT 1
- unify command-line option parser of all packages
- delete the data-loader package
- Enfoce type imports as Lint rule
- The published packages contains test codes
- Delete records command
- Support npm script to fix lint error for all packages
- The type of lookup does not exist in fieldTypes HOT 4
- Support 2FA on plugin-uploader HOT 1
- A bug report about uploadFile in kintone/rest-api-client HOT 4
- Auto-detect MIME type when using uploadFile API on browser platform
- rest-api-client with webpack outputs `Module not found: Error: Can't resolve 'path'`
- dts-gen show unclear message when specifying invalid namespace
- Drop Node.js 14.x support and add 20.x HOT 1
- [Bug] the `KintoneRestAPIClient.version` causes an Error on browser environment HOT 1
- [Bug] dts-gen causes an error if TypeScript isn't installed HOT 1
- [Feature Request] bump eslint-plugin dependency in dts-gen package HOT 4
- [Bug] Encountering TS Errors When Using @kintone/rest-api-client in Vite HOT 4
- [Bug] Cannot import when using esbuild HOT 3
- [Action Required] Upgrade plugin-uploader by May 12, 2024
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js-sdk.