Skip to content

[Feature idea/request] is possible to mock non m365 API response? #333

Closed

Description

@xzf0587

The guide said it could simulate error for non m365 API. Does it support to mock response for them?
The scenario is that,
in teams app, we will get auth code in client side and exchange OBO code in backend side before calling graph API.
Usually we will be block on the auth step due to lack of permission or etc.
Is it possible to proxy the AAD auth request to make the simulation flow better?
Thanks.

Activity

  1. waldekmastykarz commented on Sep 1, 2023

    @waldekmastykarz
    Collaborator

    Yes, you can use the proxy to simulate any API. Here's an example for OpenAI API for example: https://adoption.microsoft.com/en-us/sample-solution-gallery/sample/pnp-openai-throttling/. Let us know if it's helpful and if you've got any other questions

  2. locked and limited conversation to collaborators on Jun 4, 2025
  3. converted this issue into a discussion #1233 on Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions