Class CreateService
java.lang.Object
net.lightapi.portal.command.AbstractCommandHandler
net.lightapi.portal.service.command.handler.CreateService
- All Implemented Interfaces:
com.networknt.rpc.HybridHandler
public class CreateService
extends net.lightapi.portal.command.AbstractCommandHandler
This is the endpoint to publish a brand-new API regardless the style. An optional specification for the API will be uploaded
here so that all the endpoints will be extracted from it. If that is the case, it will be parsed and extra all the endpoints
and a list of endpoints will be associated with the service.
For each API, there will be a unique id. The serviceId that is human friendly like com.networknt.petstore-1.0.0. Another id is
unique guaranteed and normally there is an application to trace the id allocation. The format can be api0001 etc. For users,
you can choose one format vs another for the serviceId during the service registration.
- Author:
- Steve Hu
-
Field Summary
Fields inherited from class net.lightapi.portal.command.AbstractCommandHandler
config, HOST_ID, INCORRECT_TOKEN_TYPE, SEND_MESSAGE_EXCEPTION, USER_IDFields inherited from interface com.networknt.rpc.HybridHandler
ERROR_NOT_DEFINED, REQUEST_SUCCESS, STATUS_VALIDATION_ERROR -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.lightapi.portal.command.AbstractCommandHandler
additionalAction, buildCloudEvent, customizeOutput, enrichInput, handle, validateInput, validateTokenTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.networknt.rpc.HybridHandler
getStatus, getStatus, validate
-
Constructor Details
-
CreateService
public CreateService()
-
-
Method Details
-
getCloudEventType
- Specified by:
getCloudEventTypein classnet.lightapi.portal.command.AbstractCommandHandler
-
getLogger
protected org.slf4j.Logger getLogger()- Specified by:
getLoggerin classnet.lightapi.portal.command.AbstractCommandHandler
-