code: @PostMapping(value = "/v1/services", consumes = MediaType.APPLICATION_JSON_VALUE)
      public ResponseEntity<String> createService(@RequestBody final RegisteredService service,
                                                  final HttpServletRequest request, final HttpServletResponse response) {
          try {
              val auth = authenticateRequest(request, response);
              if (isAuthenticatedPrincipalAuthorized(auth)) {
                  this.servicesManager.save(service);
                  return new ResponseEntity<>(HttpStatus.OK);
              }
              return new ResponseEntity<>("Request is not authorized", HttpStatus.FORBIDDEN);
          } catch (final AuthenticationException e) {
              return new ResponseEntity<>(e.getMessage(), HttpStatus.UNAUTHORIZED);
          } catch (final Exception e) {
              LOGGER.error(e.getMessage(), e);
              return new ResponseEntity<>(e.getMessage(), HttpStatus.BAD_REQUEST);
          }
      }
docs: Create new service.
  
  @param service  the service
  @param request  the request
  @param response the response
  @return {@link ResponseEntity} representing RESTful response