Swagger to deploy
parent
663579aeae
commit
4069fd822f
|
|
@ -5,8 +5,9 @@ function main() {
|
||||||
set -e
|
set -e
|
||||||
go test ./...
|
go test ./...
|
||||||
GOOS=linux GOARCH=arm GOARM=5 CGO_ENABLED=0 go build -o $(basename "$PWD") -a -installsuffix cgo
|
GOOS=linux GOARCH=arm GOARM=5 CGO_ENABLED=0 go build -o $(basename "$PWD") -a -installsuffix cgo
|
||||||
scp ./dndex zach@192.168.1.123:./dndex/dndex.new
|
scp ./public/swagger/* zach@tickle.lan:./dndex/files/swagger/
|
||||||
ssh zach@192.168.1.123 bash -c 'true; while [ -e ./dndex/dndex.new ]; do printf "."; sleep 3; done; echo'
|
scp ./dndex zach@tickle.lan:./dndex/dndex.new
|
||||||
|
ssh zach@tickle.lan bash -c 'true; while [ -e ./dndex/dndex.new ]; do printf "."; sleep 3; done; echo'
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$0" == "$BASH_SOURCE" ]; then
|
if [ "$0" == "$BASH_SOURCE" ]; then
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ paths:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- who
|
- who
|
||||||
summary: "Get an entity"
|
summary: "Get an entity. If ?id not provided, see TRACE"
|
||||||
parameters:
|
parameters:
|
||||||
- $ref: "#/components/parameters/id"
|
- $ref: "#/components/parameters/id"
|
||||||
- $ref: "#/components/parameters/namespace"
|
- $ref: "#/components/parameters/namespace"
|
||||||
|
|
@ -12,6 +12,7 @@ paths:
|
||||||
$ref: "#/components/schemas/200"
|
$ref: "#/components/schemas/200"
|
||||||
|
|
||||||
trace:
|
trace:
|
||||||
|
deprecated: true
|
||||||
tags:
|
tags:
|
||||||
- who
|
- who
|
||||||
summary: "List all entities"
|
summary: "List all entities"
|
||||||
|
|
@ -96,7 +97,6 @@ components:
|
||||||
id:
|
id:
|
||||||
name: id
|
name: id
|
||||||
in: query
|
in: query
|
||||||
required: true
|
|
||||||
description: "An entity's unique name"
|
description: "An entity's unique name"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
|
|
||||||
|
|
@ -154,7 +154,7 @@ func whoDelete(namespace string, g storage.Graph, w http.ResponseWriter, r *http
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
return json.NewEncoder(w).Encode(`{"status":"ok"}`)
|
return json.NewEncoder(w).Encode(map[string]string{"status": "ok"})
|
||||||
}
|
}
|
||||||
|
|
||||||
func whoPatch(namespace string, g storage.Graph, w http.ResponseWriter, r *http.Request) error {
|
func whoPatch(namespace string, g storage.Graph, w http.ResponseWriter, r *http.Request) error {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue