Code Monkey home page Code Monkey logo

huawei_task's Introduction

Installation

Clone or download

Example reguest

https://yourdomain/api/user/all

you have to add '/api/' for request

Functions

@RequestMapping(value="/user/all", method= RequestMethod.GET)
public void getAllUser()

https://yourdomain/api/user/all
get all user from database
Request method is GET
@RequestMapping(value="/toDoLists/all",method=RequestMethod.GET)
public void getAllLists()

https://yourdomain/api/toDoLists/all
get all lists from datebase
Request method is GET
@RequestMapping(value="/query/user/insert",method=RequestMethod.PUT)
public void insertUser(@RequestBody user)

https://yourdomain/api/query/user/insert
create new user using 'user' model.. this function waiting user model json data
Request method is PUT
body example
{
	"user_firstName":"clarke",
	"user_lastName":"kent",
	"user_password":"123456",
	"user_email":"[email protected]",
	"user_nickname":"clarkelouis"
}
@RequestMapping(value="/query/user/{name}",method=RequestMethod.GET)
public void getUserFromName(@PathVariable("name") String name)

https://yourdomain/api/query/user/{name}
get user from name
Request method is GET
@RequestMapping(value = "/query/user/login/check",method = RequestMethod.POST)
public void checkUserLoginData(@RequestBody user theuser)

https://yourdomain/api/query/user/login/check
check user login . this function waiting user model json data
Request method is POST
@RequestMapping(value="/query/toDoLists/toDoItems/insert/{_id}",method=RequestMethod.PUT)
public void inserttoDoItemsTotoDoLists(@PathVariable("_id") String _id,@RequestBody toDoItem theToDoItems)

https://yourdomain/api/query/toDoLists/toDoItems/insert/{_id}
create new item to list. this function waiting item model json data
Request method is PUT

Body example
 {
    "list_name":"kutay yapilacaklar",
    "list_create_date":"10.10.2018"
 }
@RequestMapping(value="/query/toDoItems/toDoItems/update/{item_id}",method=RequestMethod.POST)
public void updateToDoItems(@PathVariable("item_id")String item_id,@RequestBody toDoItem theToDoItem)

https://yourdomain/api/query/toDoItems/toDoItems/update/{item_id}
update item with id. this function waiting item model json data
Request method is POST
Body example 

{
	"item_name":"kurulum6",
	"item_description":"java ve diger kurulumlar yapilacak6"
}
@RequestMapping(value="/query/toDoLists/update/{list_id}",method=RequestMethod.POST)
public void updateToDoListsElement(@PathVariable("list_id") String list_id,@RequestBody toDoLists theToDoLists)

https://yourdomain/api/query/toDoLists/update/{list_id}
update list element with id. this function waiting list model json data
Request method is POST
Body Example

{
	"list_name":"test list name"
}

@RequestMapping(value="/query/user/delete/{_id}",method=RequestMethod.DELETE)
public void deleteUserWithId(@PathVariable("_id") String _id)

https://yourdomain/api/query/user/delete/{_id}
delete user with id.
Request method is DELETE
@RequestMapping(value="/query/toDoLists/delete/{user_id}/{_id}",method=RequestMethod.DELETE)
public void deleteToDoLists(@PathVariable("_id") String _id,@PathVariable("user_id")String user_id)

https://yourdomain/api/query/toDoLists/delete/{user_id}/{_id}
delete list with id.
Request method is DELETE
@RequestMapping(value="/query/toDoItems/dependencies/insert/{_id}",method=RequestMethod.PUT)
public void insertDependenciesToItem(@PathVariable("_id")String _id,String item_id)

https://yourdomain/api/query/toDoItems/dependencies/insert/{_id}
add dependencies id to item with id. item_id is insertin _id
Request method is PUT
@RequestMapping(value="/query/toDoItems/dependencies/delete/{_id}",method=RequestMethod.DELETE)
public void deleteDependenciesFromItems(@PathVariable("_id")String _id,String item_id)

https://yourdomain/api/query/toDoItems/dependencies/delete/{_id}
delete dependencies id to item with id. item_id is deleting _id
Request method is DELETE
@RequestMapping(value="/query/toDoItems/dependencies/list/{_id}",method = RequestMethod.GET)
public void listDependenciesFromItems(@PathVariable("_id")String _id)

https://yourdomain/api/query/toDoItems/dependencies/list/{_id}
List dependencies id to item with id.
Request method is GET

huawei_task's People

Contributors

kutaykoc avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.