Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. public class HelloWorld {
  2. @NotEmpty
  3. private String foo;
  4. @NotEmpty
  5. private String bar;
  6. @NotEmpty
  7. private String baz;
  8. ..
  9. ..
  10.  
  11. public HelloWorld() {
  12. }
  13.  
  14. public UserRegistration(String foo, String bar, String baz,....)
  15. {
  16. this.foo = foo;
  17. this.bar = bar;
  18. this.baz = baz;
  19. ..
  20. ..
  21. ..
  22. }
  23.  
  24. public String getfoo() {
  25. return foo;
  26. }
  27.  
  28. public String getbar() {
  29. return bar;
  30. }
  31.  
  32. public String getbaz() {
  33. return baz;
  34. }
  35. public void setfoo(String foo) {
  36. this.foo = foo;
  37. }
  38.  
  39. public void setbar(String bar) {
  40. this.bar = bar;
  41. }
  42. public void setbaz(String baz) {
  43. this.baz = baz;
  44. }
  45.  
  46. }
  47.  
  48. {
  49. "Foo": "a",
  50. "bar": "b",
  51. "baz": "c",
  52. ..
  53. ..
  54. }
  55.  
  56. {
  57. "code": 400,
  58. "message": "Unable to process JSON"
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement