...
1# Sparrow: Edge Data Encryption
2
3To run locally you need a jwt secret
4
5```shell
6export JWT_SECRET=secret
7go run main.go
8curl --location 'http://localhost:8080/v1/encrypt' \
9--header 'Authorization: Bearer {your token}' \
10--data-binary '@./tlog.json'
11```
12
13# Generate Swagger File
14
15From the root of the repo
16
17```shell
18brew tap go-swagger/go-swagger
19brew install go-swagger
20swagger generate spec -w pkg/edge/datasync/sparrow -o docs/edge/components/datasync/encryption/encryption.json -m
21```
View as plain text