create

open fun create(token: String, userId: String, payload: Map<String, Any>): String

Method to create a new item


@PostMapping(headers = "token" )
open fun create(    @RequestHeader(value = "token") token: String,     @PathVariable(value = "user_id") userId: String,     @ModelAttribute payload: TeamsService.TeamPayload): String

Method to create a new team

Return

the response of the request as String

Parameters

userId

The identifier of the user

token

The token of the user

payload

The payload of the request formatted by SpringBoot as TeamPayload