Skip to content

Instantly share code, notes, and snippets.

View chriskapp's full-sized avatar

Christoph Kappestein chriskapp

View GitHub Profile
@chriskapp
chriskapp / typeapi_simple.json
Last active April 16, 2023 10:22
TypeAPI simple
{
"operations": {
"com.acme.api.todo.getAll": {
"description": "Returns available todo entries",
"method": "GET",
"path": "/todo",
"arguments": {
"startIndex": {
"in": "query",
"schema": {
@chriskapp
chriskapp / geenrate-ssl.php
Created January 29, 2022 15:48
PHP docker container apache obtain letsencrypt certificate
<?php
const MAX_TRY = 4;
const WAIT = 30;
$domain = getenv('APP_DOMAIN');
$email = getenv('APP_EMAIL');
echo 'Try to obtain SSL cert for ' . $domain . "\n";
{
"definitions": {
"Student": {
"type": "object",
"properties": {
"matricleNumber": {
"type": "integer"
}
}
},
{
"definitions": {
"Human": {
"type": "object",
"properties": {
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
{
"definitions": {
"Student": {
"type": "object",
"properties": {
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
{
"definitions": {
"Student": {
"type": "object",
"properties": {
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
{
"definitions": {
"Student": {
"type": "object",
"properties": {
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
{
"definitions": {
"Human": {
"type": "object",
"properties": {
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
{
"definitions": {
"Student": {
"type": "object",
"properties": {
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
@chriskapp
chriskapp / hello_javascript_action.js
Last active October 30, 2021 22:47
hello_javascript_action.js
module.exports = function(request, context, connector, response, dispatcher, logger) {
response.build(200, {}, {
hello: 'world'
});
};