An open API service indexing awesome lists of open source software.

https://github.com/samioksanen/query_spring_rest_project

Ryhmäprojekti Ohjelmistoprojekti 1 kurssille
https://github.com/samioksanen/query_spring_rest_project

java javaee maven rest-api spring spring-mvc spring-security spring-security-web

Last synced: 2 months ago
JSON representation

Ryhmäprojekti Ohjelmistoprojekti 1 kurssille

Awesome Lists containing this project

README

          

# Query_Spring_Project
-------------------
Demonstrates the capabilities of the Spring MVC web framework, Spring Security and the RESTful web service through query application.
After reviewing this project, you should have a good understanding of what Spring MVC and REST can do and get a feel for how easy it is to use.

In this application you'll see the following in action:

* @Controller
* @RestController
* Mapping Requests
* Obtaining Request Data
* Generating Responses
* Rendering Views
* Type Conversion
* Validation
* Forms
* File Upload
* Exception Handling

To get the code:
-------------------
Clone the repository:

$ git clone https://github.com/SamiOksanen/Query_Spring_Project.git

If this is your first time using Github, review http://help.github.com to learn the basics.

To run the application:
-------------------
From the command line with Maven:

$ cd kysely
$ mvn tomcat8:run [-Dmaven.tomcat.port=] (In case 8080 is busy]

or

In your preferred IDE such as SpringSource Tool Suite (STS) or IDEA:

* Import kysely as a Maven Project
* Drag-n-drop the project onto the "SpringSource tc Server Developer Edition" or another Servlet 2.5 or > Server to run, such as Tomcat.

Access the deployed web application at: http://localhost:8080/kysely/

Show Queries:
------------------
Returns json data about queris.

* URL:

http://localhost:8080/kysely/rest/

* Method:

`GET` | `POST` | `DELETE` | `PUT`

* Sample Call:

```javascript
$.ajax({
url: "http://localhost:8080/kysely/rest/",
dataType: "json",
type : "GET",
success : function(r) {
console.log(r);
}
});
```

Note:
-------------------
Group project made by:
* Ville Lepistö
* Samuli Nuorteva
* Jimi Nurmi
* Sami Oksanen
* Mikko Puntanen