Skip to content

Instantly share code, notes, and snippets.

View TharmiganK's full-sized avatar

Krishnananthalingam Tharmigan TharmiganK

  • WSO2
  • Sri Lanka
View GitHub Profile
@TharmiganK
TharmiganK / album_api.yaml
Created June 14, 2024 05:30
Album API OpenAPI specification
openapi: 3.0.1
info:
title: Api
version: 0.1.0
servers:
- url: "{server}:{port}/api"
variables:
server:
default: http://localhost
port:
@TharmiganK
TharmiganK / dockerfile
Created June 11, 2024 13:55
Docker file to reproduce no such field error
FROM eclipse-temurin:17.0.7_7-jdk
# Install Docker
RUN apt-get update && \
apt-get -qy full-upgrade && \
apt-get install -qy curl && \
curl -sSL https://get.docker.com/ | sh
# Install Git
RUN apt-get install -y git
@TharmiganK
TharmiganK / conversion_api.yaml
Created June 7, 2024 06:34
Conversion API OpenAPI specification
openapi: 3.0.1
info:
title: Api
version: 0.1.0
servers:
- url: "{server}:{port}/api"
variables:
server:
default: http://localhost
port:
@TharmiganK
TharmiganK / conversion_api.bal
Last active June 7, 2024 06:33
Ballerina conversion API
import ballerina/http;
type ConvertionRate record {|
string fromCurrency;
string toCurrency;
decimal conversionRate;
|};
type ConversionRateUpdate record {|
decimal conversionRate;
{
"openapi": "3.0.1",
"info": {
"title": "Text Processing",
"version": "0.1.0"
},
"servers": [
{
"url": "{server}:{port}/text-processing",
"variables": {
This file has been truncated, but you can view the full file.
{
"openapi": "3.0.3",
"info": {
"version": "1.1.4",
"title": "GitHub v3 REST API",
"description": "GitHub's v3 REST API.",
"license": {
"name": "MIT",
"url": "https://spdx.org/licenses/MIT"
},
Ballerina Strand Dump [2024/04/24 18:54:10]
===========================================
Total strand group count : 117
Total strand count : 302
Active strand group count : 57
Active strand count : 57
group 26 [QUEUED]: [1]
<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.6.3">
<hashTree>
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan">
<boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables">
<collectionProp name="Arguments.arguments"/>
</elementProp>
</TestPlan>
<hashTree>
@TharmiganK
TharmiganK / http-post-request.jmx
Created April 17, 2024 05:06
Load test configuration
<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.6.3">
<hashTree>
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true">
<stringProp name="TestPlan.comments"></stringProp>
<boolProp name="TestPlan.functional_mode">false</boolProp>
<boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
@TharmiganK
TharmiganK / reflect-config.json
Created March 21, 2024 07:38
Reflection configuration with bc pqc support
[
{
"name":"org.bouncycastle.jcajce.provider.asymmetric.COMPOSITE$Mappings",
"methods":[{"name":"<init>","parameterTypes":[] }]
},
{
"name":"org.bouncycastle.jcajce.provider.asymmetric.DH$Mappings",
"methods":[{"name":"<init>","parameterTypes":[] }]
},
{