Skip to content

Instantly share code, notes, and snippets.

View geekmj's full-sized avatar
🇳🇱
Focusing

Mrityunjay Kumar geekmj

🇳🇱
Focusing
  • FLYR Inc
  • Amsterdam, Netherlands
  • X @geekmj
View GitHub Profile
@geekmj
geekmj / schema-proper.json
Last active September 19, 2025 14:30
schema-proper
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://api.flyrlabs.com/order-manager-core/order-direct",
"title": "Order",
"description": "Order object with all nested schemas",
"type": "object",
"properties": {
"orderId": {
"type": "string",
"description": "Unique NDC OrderID",
@geekmj
geekmj / schema.json
Created September 19, 2025 13:38
schema
{
"title": "Complete Order Response Schema for /order-endpoint-v2/createOrderRQ",
"description": "COMPLETE raw schema extracted from Swagger API documentation for POST /v2/orders endpoint with ALL 154 nested type definitions included",
"endpoint": {
"path": "/v2/orders",
"method": "POST",
"operationId": "createOrderRQ",
"summary": "Create Order RQ",
"description": "Uses the NDC CreateOrderRQ to create an Order"
},
@geekmj
geekmj / JSON-Request-Payload.json
Created June 27, 2024 12:05
NDC History Req Response XML JSON
{
"DistributionChain": {
"DistributionChainLink": [
{
"Ordinal": 1,
"OrgRole": "Seller",
"ParticipatingOrg": {
"Name": "ACME Travels",
"OrgID": "1234567"
}
<doc>
<DataLists>
<BaggageAllowanceList>
<BaggageAllowance>
<BaggageAllowanceID>BAGALL-01</BaggageAllowanceID>
<PieceAllowance>
<TotalQty>1</TotalQty>
</PieceAllowance>
<TypeCode>CarryOn</TypeCode>
<WeightAllowance>
@geekmj
geekmj / OrderViewRS.json
Last active June 10, 2024 08:19
NDC Order View Response
{
"@schemaLocation": "http://www.iata.org/IATA/2015/EASD/00/IATA_OffersAndOrdersMessage https://airtechzone.iata.org/xsd/2136/IATA_OrderViewRS.xsd",
"Response": {
"DataLists": {
"BaggageAllowanceList": {
"BaggageAllowance": [
{
"BaggageAllowanceID": "BAGALL-01",
"PieceAllowance": {
"TotalQty": "1"
@geekmj
geekmj / 1_1_IATA_OrderHistoryRQ.json
Last active June 5, 2024 10:12
IATA History Request & Response XML / JSON Sample - Good Reference for OCN
{
"DistributionChain": {
"DistributionChainLink": [
{
"Ordinal": "1",
"OrgRole": "Seller",
"ParticipatingOrg": {
"Name": "ACME Travels",
"OrgID": "1234567"
}
<?xml version="1.0" encoding="UTF-8"?>
<setup xmlns="https://www.benerator.de/schema/${version.version}"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://www.benerator.de/schema/${version.version} benerator-${version.version}.xsd">
<comment>
Learning Analytics Data Generation Project
</comment>
{
"https://purl.imsglobal.org/spec/lti/claim/deployment_id": "8c2d2ff7-a150-486d-9a41-d600512ddb10",
"https://purl.imsglobal.org/spec/lti/claim/target_link_uri": "https://www.readingspot.com/v1/launches/",
"https://purl.imsglobal.org/spec/lti/claim/message_type": "LtiResourceLinkRequest",
"https://purl.imsglobal.org/spec/lti/claim/version": "1.3.0",
"sub": "ffffffff5cbf471ad407954668460a03",
"given_name": "ReadingSpot",
"family_name": "Teacher",
"email": "esmerelda73@fenceve.com",
"name": "ReadingSpot Teacher",
@geekmj
geekmj / V3_id_token.json
Created June 21, 2019 19:47
V3_id_token.json
{
"https://purl.imsglobal.org/spec/lti/claim/deployment_id": "1a56df13-5f20-476e-9e2c-166a3b35b220",
"https://purl.imsglobal.org/spec/lti/claim/target_link_uri": "https://www.readingspot.com/v1/launches/",
"https://purl.imsglobal.org/spec/lti/claim/message_type": "LtiResourceLinkRequest",
"https://purl.imsglobal.org/spec/lti/claim/version": "1.3.0",
"sub": "ffffffff5cbf471ad407954668460a03",
"given_name": "ReadingSpot",
"family_name": "Teacher",
"email": "esmerelda73@fenceve.com",
"name": "ReadingSpot Teacher",
{
"https://purl.imsglobal.org/spec/lti/claim/deployment_id": "1a56df13-5f20-476e-9e2c-166a3b35b220",
"https://purl.imsglobal.org/spec/lti/claim/target_link_uri": "https://www.readingspot.com/v1/launches/",
"https://purl.imsglobal.org/spec/lti/claim/message_type": "LtiResourceLinkRequest",
"https://purl.imsglobal.org/spec/lti/claim/version": "1.3.0",
"sub": "ffffffff5cbf471ad407954668460a03",
"given_name": "ReadingSpot",
"family_name": "Teacher",
"email": "esmerelda73@fenceve.com",
"name": "ReadingSpot Teacher",