Documentation ¶
Index ¶
- type Operation
- func (o *Operation) GeneratePresentation(rw http.ResponseWriter, req *http.Request)
- func (o *Operation) GeneratePresentationByID(rw http.ResponseWriter, req *http.Request)
- func (o *Operation) GetCredential(rw http.ResponseWriter, req *http.Request)
- func (o *Operation) GetCredentialByName(rw http.ResponseWriter, req *http.Request)
- func (o *Operation) GetCredentials(rw http.ResponseWriter, req *http.Request)
- func (o *Operation) GetRESTHandlers() []rest.Handler
- func (o *Operation) SaveCredential(rw http.ResponseWriter, req *http.Request)
- func (o *Operation) ValidateCredential(rw http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Operation ¶
type Operation struct {
// contains filtered or unexported fields
}
Operation contains basic common operations provided by controller REST API
func (*Operation) GeneratePresentation ¶
func (o *Operation) GeneratePresentation(rw http.ResponseWriter, req *http.Request)
GeneratePresentation swagger:route POST /verifiable/presentation/generate verifiable generatePresentationReq
Generates the verifiable presentation from a verifiable credential.
Responses:
default: genericError 200: presentationRes
func (*Operation) GeneratePresentationByID ¶
func (o *Operation) GeneratePresentationByID(rw http.ResponseWriter, req *http.Request)
GeneratePresentationByID swagger:route GET /verifiable/credential/{id}/presentation verifiable presentationByIDReq
Generates the verifiable presentation from a stored verifiable credential.
Responses:
default: genericError 200: presentationRes
func (*Operation) GetCredential ¶
func (o *Operation) GetCredential(rw http.ResponseWriter, req *http.Request)
GetCredential swagger:route GET /verifiable/credential/{id} verifiable getCredentialReq
Retrieves the verifiable credential.
Responses:
default: genericError 200: credentialRes
func (*Operation) GetCredentialByName ¶
func (o *Operation) GetCredentialByName(rw http.ResponseWriter, req *http.Request)
GetCredentialByName swagger:route GET /verifiable/credential/name/{name} verifiable getCredentialByNameReq
Retrieves the verifiable credential by name.
Responses:
default: genericError 200: credentialRecord
func (*Operation) GetCredentials ¶
func (o *Operation) GetCredentials(rw http.ResponseWriter, req *http.Request)
GetCredentials swagger:route GET /verifiable/credentials verifiable getCredentials
Retrieves the verifiable credentials.
Responses:
default: genericError 200: credentialRecordResult
func (*Operation) GetRESTHandlers ¶
GetRESTHandlers get all controller API handler available for this service
func (*Operation) SaveCredential ¶
func (o *Operation) SaveCredential(rw http.ResponseWriter, req *http.Request)
SaveCredential swagger:route POST /verifiable/credential verifiable saveCredentialReq
Saves the verifiable credential.
Responses:
default: genericError 200: emptyRes
func (*Operation) ValidateCredential ¶
func (o *Operation) ValidateCredential(rw http.ResponseWriter, req *http.Request)
ValidateCredential swagger:route POST /verifiable/credential/validate verifiable validateCredentialReq
Validates the verifiable credential.
Responses:
default: genericError 200: emptyRes