// webFingerHandler swagger:route Get /.well-known/webfinger discovery webFingerReq
//
// webFingerHandler.
//
// Responses:
//    default: genericError
//        200: webFingerResp
webFingerHandler swagger:route Get /.well-known/webfinger discovery webFingerReq

webFingerHandler.

genericError
200: webFingerResp
// webFingerHandler swagger : route Get / . well - known / webfinger discovery webFingerReq // // webFingerHandler . // // Responses : // default : genericError // 200 : webFingerResp
func (o *Operation) webFingerHandler(rw http.ResponseWriter, r *http.Request) {
	queryValue := r.URL.Query()["resource"]
	if len(queryValue) == 0 {
		writeErrorResponse(rw, http.StatusBadRequest, "resource query string not found")
		return
	}
	o.writeResponseForResourceRequest(rw, queryValue[0])
}
func ( o * Operation ) webFingerHandler ( rw http . ResponseWriter , r * http . Request ) { queryValue := r . URL . Query ( ) [ " " ] if len ( queryValue ) == 0 { writeErrorResponse ( rw , http . StatusBadRequest , " " ) return } o . writeResponseForResourceRequest ( rw , queryValue [ 0 ] ) }
webFingerHandler swagger:route Get /.well-known/webfinger discovery webFingerReq
webFingerHandler swagger : route Get / . well - known / webfinger discovery webFingerReq