Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

Support for mocking some endpoints but not others #53

@danday74

Description

@danday74

Say I have two resources:

/a AND /b

I want to use osprey-mock-service as a validation proxy that can:

  • mock requests to /a
  • reverse proxy requests to /b to another server
  • reverse proxy requests to /c (unknown RAML resource) to another server

The use case is that there is an existing API. Existing resources we don't care about and don't want to produce a RAML definition for them. New resources, we want to either mock or reverse proxy depending on whether the resource is ready. Mock mode should give us full control to do all the above. Live mode should always reverse proxy ALL requests to another server (whilst still working as a validation proxy).

Is this possible?

We cannot use the online tool for this since company policy prevents use from sending info about our API to a third party.

Thanks in advance.

At the moment I can probably utilise osprey-mock-service to mock ALL requests or NONE but not SOME

maybe this is already possible. If so, a code example would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions