I hereby claim:
- I am kevinswiber on github.
- I am kevinswiber (https://keybase.io/kevinswiber) on keybase.
- I have a public key ASBYsnxT49ZGkj4cQONOh67Bib3D71sgcRb3oSiuP7gtOQo
To claim this, I am signing this object:
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: 'express-gateway-config' | |
| data: | |
| gateway.config.yml: | | |
| http: | |
| host: '*' | |
| port: 8080 | |
| admin: |
| #!/bin/bash | |
| kubectl create -f https://gist.githubusercontent.com/kevinswiber/e6a8245930676c3da3448b2bb79f23fd/raw/0869b72410851e2ab02d0c1c30443f4083345066/configmap.yaml | |
| kubectl create -f https://gist.githubusercontent.com/kevinswiber/e6a8245930676c3da3448b2bb79f23fd/raw/0869b72410851e2ab02d0c1c30443f4083345066/deployment.yaml | |
| kubectl create -f https://gist.githubusercontent.com/kevinswiber/e6a8245930676c3da3448b2bb79f23fd/raw/0869b72410851e2ab02d0c1c30443f4083345066/service.yaml |
| /* | |
| Run: | |
| $ HTTPBIN_URL=https://httpbin.org jsonnet -V HTTPBIN_URL \ | |
| -o ./config/gateway.config.json \ | |
| ./config/gateway.config.jsonnet | |
| */ | |
| { | |
| http: { | |
| port: 8080 |
I hereby claim:
To claim this, I am signing this object:
| const express = require('express'); | |
| const forum = express(); | |
| forum | |
| .get('/healthz', (req, res, next) => { | |
| res.send({ name: 'forum', status: 'healthy' }); | |
| next(); | |
| }) | |
| .get('/d/:id', (req, res, next) => { |
| swagger = "2.0" | |
| info { | |
| version = "1.0.0" | |
| title = "Swagger Petstore" | |
| description = "A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification" | |
| terms_of_service = "http://swagger.io/terms" | |
| contact { | |
| name = "Swagger API Team" |
| package interop | |
| /* | |
| #cgo CFLAGS: -I${SRCDIR}/../ | |
| #cgo LDFLAGS: -L${SRCDIR}/../ -lhello | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <node_c.h> | |
| static char** create_argv_array(int array_size) { |
| # Data Structures | |
| ## Entity (object) | |
| An Entity is a URI-addressable resource that has properties and actions | |
| associated with it. It may contain sub-entities and navigational links. | |
| ### Properties | |
| - class (array[string], optional) | |
| Describes the nature of an entity's content based on the current | |
| representation. Possible values are implementation-dependent and |
| { | |
| "id": "http://sirenspec.org/schema#", | |
| "$schema": "http://json-schema.org/draft-04/schema#", | |
| "title": "Entity", | |
| "description": "An Entity is a URI-addressable resource that has properties and actions associated with it. It may contain sub-entities and navigational links.", | |
| "type": "object", | |
| "properties": { | |
| "class": { | |
| "description": "Describes the nature of an entity's content based on the current representation. Possible values are implementation-dependent and should be documented.", | |
| "type": "array", |
| swagger: '2.0' | |
| info: | |
| title: Siren API | |
| description: Template for a Siren API | |
| version: '0.1.0' | |
| schemes: | |
| - http | |
| - https | |
| basePath: / | |
| produces: |