very basic api documentation autogeneration

This commit is contained in:
Jeromy
2020-05-18 17:20:54 -07:00
parent 7fd481ea6f
commit 607bcc401c
7 changed files with 344 additions and 40 deletions
+2 -1
View File
@@ -7,6 +7,7 @@ import (
"io"
"io/ioutil"
"github.com/filecoin-project/lotus/api"
"github.com/filecoin-project/lotus/api/apistruct"
"github.com/filecoin-project/lotus/build"
@@ -35,7 +36,7 @@ func RecordValidator(ps peerstore.Peerstore) record.Validator {
const JWTSecretName = "auth-jwt-private"
type jwtPayload struct {
Allow []string
Allow []api.Permission
}
func APISecret(keystore types.KeyStore, lr repo.LockedRepo) (*dtypes.APIAlg, error) {