R

reactjs-assignment

Merge branch 'ts-update' into 'master'
Kerem Çubuk authored
Update React to TS

See merge request !1
35ab2fc6
Name Last commit Last update
setup Update React to TS
solution Update React to TS
todo todo.war added
.gitignore Add: Solution Project
readme.md edit

Service project for data requirements

todo project contains rest services for creating, updating, deleting and saving todos

Running project from Eclipse

  • Run eclipse
  • Select "Import/Existing Maven Project" from File menu
  • Select "services" project
  • Right click on Application.java and choose "Run As/Java Application"
  • After a while, Spring project will start
  • You can make request through the url: http://localhost:8080/todos

Running project from Command Line

Alternatively, you can run the war file provided from the command line: java -jar todos.jar

Provided Rest services

Getting all todos

Getting a specific todo

Deleting a todo

Updating a todo

Saving a todo

  • URL: http://localhost:8080/todo
  • Method: POST
  • Path Variable: NA
  • Request Body: todo data
  • Response Body: saved todo. The id value will be assigned randomly.

Exceptional Cases

To test exceptional cases, simply send a request as follows: http://localhost:8080/todo?code=111

In this case, the server will return an error code of 500 when request contains a parameter named "code"