Skip to content

Instantly share code, notes, and snippets.

@sankita15
Last active December 27, 2019 10:34
Show Gist options
  • Save sankita15/0059b8cfa5e9f2353fdb51554d5ee5bd to your computer and use it in GitHub Desktop.
Save sankita15/0059b8cfa5e9f2353fdb51554d5ee5bd to your computer and use it in GitHub Desktop.
Wedding Invitation
package com.example.backend.controller;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping("/api")
public class InvitationController {
@PostMapping("/invite/{name}")
public String getConfirmationMessage(@PathVariable String name){
return "Hello"+name.toUpperCase()+", Welcome to grand wedding";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment