All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jd.blockchain.sdk.ManagementHttpService Maven / Gradle / Ivy

The newest version!
package com.jd.blockchain.sdk;

import com.jd.blockchain.sdk.converters.BinarySerializeRequestConverter;
import com.jd.blockchain.setting.GatewayAuthResponse;
import com.jd.httpservice.HttpAction;
import com.jd.httpservice.HttpMethod;
import com.jd.httpservice.HttpService;
import com.jd.httpservice.RequestBody;
import com.jd.httpservice.utils.agent.WebResponseConverterFactory;

@HttpService(path = ManagementHttpService.URL_MANAGEMENT, defaultRequestBodyConverter = BinarySerializeRequestConverter.class, responseConverterFactory = WebResponseConverterFactory.class)
public interface ManagementHttpService {
	
	public static final String URL_MANAGEMENT = "/management";

	public static final String URL_GET_ACCESS_SPEC = "/access-spec";

	public static final String URL_AUTH_GATEWAY = "/gateway/auth";

	/**
	 * 返回当前节点的账本访问规范;
	 * 

* 包括账本清单和对应的共识提供者列表; * * @return */ @HttpAction(method = HttpMethod.GET, path = URL_GET_ACCESS_SPEC) public AccessSpecification getAccessSpecification(); /** * 认证网关的接入请求; * * @param gatewayAuthRequest * @return 网关认证回复; */ @HttpAction(method = HttpMethod.POST, path = URL_AUTH_GATEWAY, contentType = BinarySerializeRequestConverter.CONTENT_TYPE_VALUE) public GatewayAuthResponse authenticateGateway(@RequestBody GatewayAuthRequest gatewayAuthRequest); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy