fixed entity spelling in templates

This commit is contained in:
Harshit Raj
2024-01-25 03:00:10 +05:30
parent 4683d84b0e
commit 37b20ea93b
2 changed files with 6 additions and 6 deletions

View File

@@ -264,7 +264,7 @@ public ${SomeData} ${getMethodName}(@RequestParam ${String} ${param}) {
description="PostMapping method"
enabled="true"
>${x:import(org.springframework.web.bind.annotation.PostMapping, org.springframework.web.bind.annotation.RequestBody)}@PostMapping(value="${path}")
public ${SomeEnityData} ${postMethodName}(@RequestBody ${SomeEnityData} ${entity}) {
public ${SomeEntityData} ${postMethodName}(@RequestBody ${SomeEntityData} ${entity}) {
//TODO: process POST request
${cursor}
return ${entity};
@@ -277,7 +277,7 @@ public ${SomeEnityData} ${postMethodName}(@RequestBody ${SomeEnityData} ${entity
description="PutMapping method"
enabled="true"
>${x:import(org.springframework.web.bind.annotation.PutMapping, org.springframework.web.bind.annotation.RequestBody, org.springframework.web.bind.annotation.PathVariable)}@PutMapping(value="${path}/{${id}}")
public ${SomeEnityData} ${putMethodName}(@PathVariable ${pvt:link(String,int,long)} ${id}, @RequestBody ${SomeEnityData} ${entity}) {
public ${SomeEntityData} ${putMethodName}(@PathVariable ${pvt:link(String,int,long)} ${id}, @RequestBody ${SomeEntityData} ${entity}) {
//TODO: process PUT request
${cursor}
return ${entity};

View File

@@ -26,8 +26,8 @@
context="boot-members" description="PostMapping method" enabled="true">
${x:import(org.springframework.web.bind.annotation.PostMapping,
org.springframework.web.bind.annotation.RequestBody)}@PostMapping(value="${path}")
public ${SomeEnityData} ${postMethodName}(@RequestBody
${SomeEnityData} ${entity}) {
public ${SomeEntityData} ${postMethodName}(@RequestBody
${SomeEntityData} ${entity}) {
//TODO: process POST request
${cursor}
return ${entity};
@@ -39,8 +39,8 @@
${x:import(org.springframework.web.bind.annotation.PutMapping,
org.springframework.web.bind.annotation.RequestBody,
org.springframework.web.bind.annotation.PathVariable)}@PutMapping(value="${path}/{${id}}")
public ${SomeEnityData} ${putMethodName}(@PathVariable
${pvt:link(String,int,long)} ${id}, @RequestBody ${SomeEnityData}
public ${SomeEntityData} ${putMethodName}(@PathVariable
${pvt:link(String,int,long)} ${id}, @RequestBody ${SomeEntityData}
${entity}) {
//TODO: process PUT request
${cursor}