Skip to content

Commit 080bf07

Browse files
author
eugenp
committed
- documentation work
1 parent ee37485 commit 080bf07

1 file changed

Lines changed: 21 additions & 65 deletions

File tree

‎README.md‎

Lines changed: 21 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,38 @@
1-
## Brief Description
1+
## Overview
22

3-
The project is meant to be a Proof of Concept implementation of a RESTful web service. <br/>
4-
It focuses on topics such as: <br/>
3+
This is a **learning project**, and can be used as a starting point for a **RESTful web service** implemented with **Spring 3.1** and Java configuration. <br/> <br/>
4+
5+
Because it's a learning project, most of it's implementation is explained carefully and in great detail, in a series of posts:
6+
### Spring and Maven basics <br/>
57
- [Java based Spring Configuration](http://www.baeldung.com/2011/10/20/bootstraping-a-web-application-with-spring-3-1-and-java-based-configuration-part-1/) <br/>
68
- [Usage of new concepts introduced with **Spring 3.1**](http://www.baeldung.com/2011/10/25/building-a-restful-web-service-with-spring-3-1-and-java-based-configuration-part-2/) <br/>
9+
- [How to set up Integration Testing with the Maven Cargo plugin](http://www.baeldung.com/2011/10/16/how-to-set-up-integration-testing-with-the-maven-cargo-plugin/)
10+
11+
### Web Tier (REST) <br/>
712
- [**Spring MVC** for the REST web service](http://www.baeldung.com/2011/10/25/building-a-restful-web-service-with-spring-3-1-and-java-based-configuration-part-2/) <br/>
8-
- [Security of the REST web service with **Spring Security 3.1**](http://www.baeldung.com/2011/10/31/securing-a-restful-web-service-with-spring-security-3-1-part-3/) <br/>
9-
- [**Basic and Digest authentication** for the same URI mapping of the RESTful service](http://www.baeldung.com/2011/11/20/basic-and-digest-authentication-for-a-restful-service-with-spring-security-3-1/) <br/>
1013
- [Driving API discoverability with integration test](http://www.baeldung.com/2011/11/06/restful-web-service-discoverability-part-4/) <br/>
1114
- [Implementation of Discoverability with Spring](http://www.baeldung.com/2011/11/13/rest-service-discoverability-with-spring-part-5/) <br/>
1215
- [REST advanced **content type** negotiation](http://www.baeldung.com/2011/11/06/restful-web-service-discoverability-part-4/) <br/>
16+
17+
### Security <br/>
18+
- [Security of the REST web service with **Spring Security 3.1**](http://www.baeldung.com/2011/10/31/securing-a-restful-web-service-with-spring-security-3-1-part-3/) <br/>
19+
- [**Basic and Digest authentication** for the same URI mapping of the RESTful service](http://www.baeldung.com/2011/11/20/basic-and-digest-authentication-for-a-restful-service-with-spring-security-3-1/) <br/>
20+
21+
### Persistence <br/>
22+
- [The Persistence Layer with Spring 3.1 and **Hibernate** ](http://www.baeldung.com/2011/12/02/the-persistence-layer-with-spring-3-1-and-hibernate/) <br/>
23+
- [The Persistence Layer with Spring 3.1 and **JPA** ](http://www.baeldung.com/2011/12/13/the-persistence-layer-with-spring-3-1-and-jpa/) <br/>
24+
- [**Simplifying the Data Access Layer with Spring and Java Generics** ](http://www.baeldung.com/2011/12/08/simplifying-the-data-access-layer-with-spring-and-java-generics/) <br/>
25+
26+
### Testing <br/>
1327
- [**Integration testing** of the REST service](http://www.baeldung.com/2011/10/13/integration-testing-a-rest-api/) <br/>
1428
- [Comprehensive unit testing of the web tier, focusing on relevant behaviors to avoid brittleness](http://www.baeldung.com/2011/10/02/testing-the-service-layer/) <br/>
1529

1630

17-
1831
## TECHNOLOGY STACK
1932

20-
Implementation of a RESTfull web API, using: <br/>
2133
- Spring 3.1 with Jackson, JAXB <br/>
2234
- Hibernate 3.6 (to be moved to Hibernate 4.0 soon) <br/>
23-
- _Testing_: Junit, Mockito, Hamcrest, rest-assured <br/>
24-
25-
26-
27-
## REST WEB API
28-
29-
**GET /api/helloWorld/{id}** <br/>
30-
\- http response codes: *200, 404, 500* <br/>
31-
\- json (request/response): none/single resource <br/>
32-
\- retrieves the resource by id <br/>
33-
34-
**POST /api/helloWorld** <br/>
35-
\- http response codes: *201, 415, 500* <br/>
36-
\- json (request/response): single resource/none <br/>
37-
\- creates a new resource <br/>
38-
39-
**PUT /api/helloWorld** <br/>
40-
\- http response codes: *200, 400, 404, 500* <br/>
41-
\- json (request/response): single resource/none <br/>
42-
\- updates an existing resource <br/>
43-
44-
**DELETE /api/helloWorld/{id}** <br/>
45-
\- http response codes: *200, 404, 500* <br/>
46-
\- json (request/response): none/none <br/>
47-
\- delete an existing resource by id <br/>
48-
49-
**GET /api/helloWorld** <br/>
50-
\- http response codes: *200, 500* <br/>
51-
\- json (request/response): none/multiple resources <br/>
52-
\- retrieves all resources of that type <br/>
53-
54-
55-
### JSON payloads <br/>
56-
57-
- single resource:
58-
{
59-
"name": "Dvthix",
60-
"id": 1
61-
}
62-
63-
- multiple resources:
64-
[ {
65-
"name": "Dvthix",
66-
"id": 1
67-
},
68-
{
69-
"name": "cPfCwV",
70-
"id": 2
71-
},
72-
]
73-
74-
75-
## ADDITIONAL BLOG DISCUSSIONS (backed by this project)
76-
===================
77-
78-
* [How to set up Integration Testing with the Maven Cargo plugin](http://www.baeldung.com/2011/10/16/how-to-set-up-integration-testing-with-the-maven-cargo-plugin/)
35+
- Junit, Mockito, Hamcrest, rest-assured <br/>
7936

8037

8138

@@ -84,5 +41,4 @@ Implementation of a RESTfull web API, using: <br/>
8441

8542
* improvements in validation and HTTP response codes
8643
* improving the marshaling of the server stack trace
87-
* improve the discoverability of the REST API - make good use of the Location HTTP header for returning full URLs (not just ids) so that the client doesn't have to construct his own URLs; introduce a /about URL to make discoverability better
88-
* expand on the design document, covering: details of the transaction strategy
44+
* expand on the design document, covering: details of the transaction strategy

0 commit comments

Comments
 (0)