Skip to content

Instantly share code, notes, and snippets.

View sedkis's full-sized avatar
🌴
Working Remotely

Sedky Haider sedkis

🌴
Working Remotely
View GitHub Profile
@sedkis
sedkis / httpbin.yaml
Created March 22, 2022 16:21
Httpbin Complete Deployment - Tyk Operator
apiVersion: tyk.tyk.io/v1alpha1
kind: ApiDefinition
metadata:
name: httpbin
spec:
name: httpbin
use_keyless: true
protocol: http
active: true
do_not_track: false
@sedkis
sedkis / apollo-1
Created March 9, 2022 15:44
apollo-vs-tyk-stitching
Summary:
Total: 10.0702 secs
Slowest: 0.2772 secs
Fastest: 0.0246 secs
Average: 0.0763 secs
Requests/sec: 652.1213
Total data: 97283538 bytes
Size/request: 14814 bytes
@sedkis
sedkis / README.md
Last active January 24, 2022 09:39
Create Aggregate Analytics Filter Using Tags

Use Case

Say you want to capture analytics across a user's API lifecycle, for all their API usage, etc.

This is easily achieved using [Analytics Tags][0].

Step 1

Determine what is the "unique" user ID you want to aggregate requests by.

@sedkis
sedkis / apidef.json
Created September 29, 2021 18:52
UDG Social Media for Tyk v3.2+
{
"id": "6107fd00c957f10001ce7b7d",
"name": "GraphQL posts v2",
"slug": "graphql-posts-v2",
"listen_port": 0,
"protocol": "",
"enable_proxy_protocol": false,
"api_id": "c3ce4a87d0eb472761fbf565af80a634",
"org_id": "5e9d9544a1dcd60001d0ed20",
"use_keyless": true,
package main
import (
"encoding/base64"
"net/http"
"github.com/TykTechnologies/tyk/ctx"
)
func SetSessionPublicKeyVerifier(rw http.ResponseWriter, r *http.Request) {
{
"id": "60cb42a740135800017b2f51",
"name": "grpc",
"slug": "grpc",
"listen_port": 0,
"protocol": "",
"enable_proxy_protocol": false,
"api_id": "b99f0fe7a83e46627e018491fa344bc5",
"org_id": "5e9d9544a1dcd60001d0ed20",
"use_keyless": true,
@sedkis
sedkis / Modifying Portal Nav Bar
Created January 18, 2021 18:39
Tyk Portal Nav Bar customization
## Primary
In order to modify the navbar Header, you have to create/edit the menu called "Main" (This is case sensitive) through the Dev Portal.
## Secondary
In order to modify the side navbar in custom pages, you have to create/edit the menu called "Secondary" (This is case sensitive) through the Dev Portal.
@sedkis
sedkis / step1 api_test.json
Last active April 7, 2020 23:15
Benchmarking Files
{
"name": "Tyk Test API",
"api_id": "1",
"org_id": "default",
"auth": {},
"use_keyless": true,
"version_data": {
"not_versioned": true,
"versions": {
"Default": {
@sedkis
sedkis / auth_token_api.json
Last active March 13, 2020 22:00
Final Benchmarking Confs - Fine Turned
{
"name": "Tyk Test API",
"api_id": "1",
"org_id": "default",
"definition": {
"location": "header",
"key": "version"
},
"auth": {
"auth_header_name": "authorization"
@sedkis
sedkis / auth_token_api.json
Last active March 10, 2020 18:36
auth_token_api.json
{
"name": "Tyk Test API",
"api_id": "1",
"org_id": "default",
"definition": {
"location": "header",
"key": "version"
},
"auth": {
"auth_header_name": "authorization"