Git Product home page Git Product logo

java-springrestfulservice's Introduction

JAVA-SpringRESTfulService

Real base RESTful service using JAVA (Spring).

  • MySQL
  • Spring 4.2.5
  • Eclipse Java EE Mars.2
  • Tomcat v8.0
  • JSTL
  • JSP

Basic RESTful sevice that allows CRUD operations to MySQL database.

Version

1.0.2

Screen

Database table

DROP TABLE IF EXISTS User;
CREATE TABLE User(
   _id   INT NOT NULL AUTO_INCREMENT,
   name VARCHAR(255) NOT NULL,
   surname VARCHAR(255) NOT NULL,
   age VARCHAR(255) NOT NULL,
   address VARCHAR(255) NOT NULL,
   extra VARCHAR(255) NOT NULL,
   PRIMARY KEY (_id)
);

CURL

Create user

$ curl --data "name=[name]&Surname=[surname]&age=[age]&address=[address]&extra=[extra]" http://localhost:[PORT]/[ProjectName]/rest/methods/addUser

Read user

$ curl --data "_id=[user_id]" http://localhost:[PORT]/[ProjectName]/rest/methods/getUserById

Update user

$ curl --data "_id=[user_id]&age=[new_age]" http://localhost:[PORT]/[ProjectName]/rest/methods/update

Delete user

$ curl --data "_id=[user_id]" http://localhost:[PORT]/[ProjectName]/rest/methods/delete

User list

$ curl --data "" http://localhost:[PORT]/[ProjectName]/rest/methods/userlist

java-springrestfulservice's People

Contributors

stuckdaemon avatar

Watchers

Gabriele Bonadiman 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.