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: TeamsHelper.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

: payload of the request formatted by SpringBoot as TeamPayload