Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Added new mock endpoint sample #533

Merged
merged 2 commits into from
Nov 21, 2022
Merged

Added new mock endpoint sample #533

merged 2 commits into from
Nov 21, 2022

Conversation

rewsmith
Copy link

@rewsmith rewsmith commented Nov 18, 2022

Added a new mock endpoint to the samples

Description

Not much more to say!

Related Issue

Motivation and Context

We don't currently have a mock sample. The more samples the better.

Test Coverage For This Change

k apply -f httpbin_mock.yaml -n tyk

curl localhost:8080/httpbin/foo
{"foo": "bar"}%

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • [ x] New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side). If PRing from your fork, don't come from your master!
  • Make sure you are making a pull request against our master branch (left side). Also, it would be best if you started your change off our latest master.
  • Make sure you are updating CHANGELOG.md based on your changes.
  • My change requires a change to the documentation.
    • If you've changed APIs, describe what needs to be updated in the documentation.
  • I have updated the documentation accordingly.
  • If you've changed API models, please update CRDs.
    • make manifests
    • make helm
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • Check your code additions will not fail linting checks:
    • gofmt -s -w .
    • go vet ./...
    • golangci-lint run

@rewsmith rewsmith requested a review from a team as a code owner November 18, 2022 11:32
@rewsmith rewsmith requested review from buraksekili and removed request for a team November 18, 2022 11:32
Copy link
Collaborator

@buraksekili buraksekili left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you @rewsmith !

@rewsmith
Copy link
Author

@buraksekili Can this be merged now?

@buraksekili
Copy link
Collaborator

@rewsmith,  it requires testing from QA before merging; that's why I haven't merged it yet.

@rewsmith
Copy link
Author

@buraksekili Ah ok, I'll leave it with you then :-)

@rewsmith
Copy link
Author

@buraksekili @asoorm Just added sample to APIDefinition markdown doc page

@singhpr
Copy link

singhpr commented Nov 21, 2022

Tested this PR , it is working fine

@singhpr singhpr merged commit 2220e1b into TykTechnologies:master Nov 21, 2022
@rewsmith rewsmith deleted the mock_sample branch November 22, 2022 13:25
buger pushed a commit that referenced this pull request May 22, 2024
* Added mock endpoint example

* Added mock endpoint example and docs

Co-authored-by: Andy Smith <andy@tyk.io>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants