Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samioksanen/back-end_for_kuppilat
REST API made with Java Spring for PhoneGap app Kuppilat
https://github.com/samioksanen/back-end_for_kuppilat
backend java javaee rest rest-api restful-api spring spring-mvc
Last synced: 5 days ago
JSON representation
REST API made with Java Spring for PhoneGap app Kuppilat
- Host: GitHub
- URL: https://github.com/samioksanen/back-end_for_kuppilat
- Owner: SamiOksanen
- Created: 2017-05-21T19:47:44.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-21T20:03:32.000Z (over 7 years ago)
- Last Synced: 2024-12-17T00:21:44.744Z (about 2 months ago)
- Topics: backend, java, javaee, rest, rest-api, restful-api, spring, spring-mvc
- Language: Java
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Back-end for Kuppilat
-------------------
Demonstrates really simple way the capabilities of the Spring MVC web framework and the RESTful web service.
After reviewing this project, you should have a good understanding of what the basics of Spring MVC and REST can do and get a feel for how easy it is to use.Returns json data about bar reviews:
* **URL**
http://localhost:8080/arvostelut/kaikki
* **Method:**
`GET` | `POST`
* **Success Response:**
* **Code:** 200
**Content (example):** `{ id : 17, paikka : "Some Bar", paiva : "20.05.2017", arvosana : "3", kuvaus : "Some description about the bar" }`
* **Error Response:*** **Code:** 404 NOT FOUND
OR
* **Code:** 401 UNAUTHORIZED
* **Sample Call:**
```javascript
$.ajax({
url: "http://localhost:8080/arvostelut/kaikki",
type: "GET",
dataType: "json",
contentType: "application/json; charset=utf-8",
success : function(r) {
console.log(r);
}
});
```