diff --git a/app/(api-reference)/api-reference/[[...slug]]/loading.tsx b/app/(api-reference)/api-reference/[[...slug]]/loading.tsx new file mode 100644 index 000000000..70c96dada --- /dev/null +++ b/app/(api-reference)/api-reference/[[...slug]]/loading.tsx @@ -0,0 +1,18 @@ +export default function Loading() { + return ( +
+ {responseSchema.title}
+
+ )}
+
+ {propertyName}
+
+ {typeRef ? (
+
+ {typeString}
+
+ ) : (
+
+ {typeString}
+
+ )}
+ {isRequired && (
+ + 🚧 This endpoint is currently in beta. If you'd like early access, + or this is blocking your adoption of Knock, please{" "} + + get in touch + + . +
+{endpoint}
+ {responseSchema.title}
+ )}
+ + {responseSchema.description} +
+ )} + + {responseSchema.properties && ( + <> + + +
+ {resp.description
+ ? `${statusCode} ${resp.description}`
+ : statusCode}
+
+ ))}
+ {param.name}
+ {typeRef ? (
+
+ {typeString}
+
+ ) : (
+ {typeString}
+ )}
+ {param.required && (
+ required
+ )}
+ {param.description}
+ )} + {schema?.enum && ( ++ One of: {schema.enum.map((e: string) => `"${e}"`).join(", ")} +
+ )} + {schema?.default !== undefined && ( ++ Default: {JSON.stringify(schema.default)} +
+ )} +{propName}
+ {typeRef ? (
+
+ {typeString}
+
+ ) : (
+ {typeString}
+ )}
+ {isRequired && (
+ required
+ )}
+ {propSchema.nullable && (
+ nullable
+ )}
+ {propSchema.description}
+ )} + {propSchema.enum && ( ++ One of:{" "} + {propSchema.enum.map((e: string) => `"${e}"`).join(", ")} +
+ )} + {propSchema.default !== undefined && ( ++ Default: {JSON.stringify(propSchema.default)} +
+ )} +
+ {formattedStatus}
+
+ ))}
+
+ {parameter.name}
+
+ {typeRef ? (
+
+ {typeString}
+
+ ) : (
+
+ {typeString}
+
+ )}
+ {parameter.required && (
+ {description}
++ {specName === "api" + ? "The Knock API enables you to add a complete notification engine to your product. This API provides programmatic access to integrating Knock via a REST-ful API." + : "The Knock Management API enables you to manage your Knock resources programmatically. Use this API to automate configuration changes and integrate with your CI/CD pipelines."} +
+Base URL
+
+ {specName === "api"
+ ? "https://api.knock.app/v1"
+ : "https://control.knock.app/v1"}
+
+ {endpoint}
+
+ {endpoint}
+
+
+ {name}
+
+ )}
+ {typeRef ? (
+
+ {typeString}
+
+ ) : (
+
+ {typeString}
+
+ )}
+ {isRequired && (
+
+ {itemTypeString}
+
+ )}
+ {item.description && (
+ {propName}
+ {typeRef ? (
+
+ {typeString}
+
+ ) : (
+
+ {typeString}
+
+ )}
+ {isRequired && (
+ required
+ )}
+ {propSchema.nullable && (
+ nullable
+ )}
+ + {propSchema.description} +
+ )} + {propSchema.enum && ( ++ One of:{" "} + {propSchema.enum.map((e: string) => `"${e}"`).join(", ")} +
+ )} + {propSchema.default !== undefined && ( ++ Default: {JSON.stringify(propSchema.default)} +
+ )} +