Git Product home page Git Product logo

Comments (7)

zaki-yama avatar zaki-yama commented on August 16, 2024 1

@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.

koba04 avatar koba04 commented on August 16, 2024

@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.

r3-yamauchi avatar r3-yamauchi commented on August 16, 2024

@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.

koba04 avatar koba04 commented on August 16, 2024

@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.

r3-yamauchi avatar r3-yamauchi commented on August 16, 2024

ありがとうございます。

requests[].api を指定するか requests[].endpointName で指定するかを選べるということですね。

素晴らしい対応に感謝します。

from js-sdk.

zaki-yama avatar zaki-yama commented on August 16, 2024

@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.

zaki-yama avatar zaki-yama commented on August 16, 2024

@r3-yamauchi
We released this feature in v1.2.0 .

from js-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.