Skip to content

Commit dbe4937

Browse files
author
eugenp
committed
documentation cleanup and some deployment improvements
1 parent e072c6a commit dbe4937

4 files changed

Lines changed: 25 additions & 61 deletions

File tree

‎README.md‎

Lines changed: 23 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
# Overview
2-
3-
This is a **Spring RESTful Service secured with Spring Security** - it provides a Proof of Concept implementation of a REST service with Spring and Spring Security.
4-
It also provides a reference implementation in the following connected areas:
1+
# Goals
2+
**REST Security** is a Proof of Concept implementation of a RESTful Service. <br/>
3+
The project also provides a reference implementation for:
54
- REST Discoverability and HATEOAS <br/>
6-
- Basic and Digest Authentication <br/>
5+
- Basic and Digest Authentication <br/>
6+
- ETag support
77
- support for Multiple Representations (on the same URIs) (JSON, XML) <br/>
8-
- a full REST based query language for advanced filtering of resources <br/>
9-
- sorting and pagination in REST <br/>
8+
- a full REST based Query Language for advanced filtering of resources <br/>
9+
- Sorting and Pagination in REST <br/>
1010
- Statelessness for REST with Spring <br/>
1111
- full integration testing suites at every layer: unit tests, integration tests for the DAO and Service layers, integration tests against the REST service <br/>
1212

1313

14-
# REST API Documentation
15-
[Link to the **API Documentation**](https://github.com/eugenp/REST/wiki/API-documentation "REST Security - API docs")
16-
17-
18-
# Continuous Integration
19-
- Built on Cloudbees: <a href="https://rest-security.ci.cloudbees.com">REST Security Jenkins CI</a>
20-
<br/><br/>
21-
<a href="https://rest-security.ci.cloudbees.com"><img src="http://web-static-cloudfront.s3.amazonaws.com/images/badges/BuiltOnDEV.png"/></a>
14+
# Hit the ground running
15+
```
16+
git clone git://github.com/eugenp/REST.git
17+
cd REST
18+
mvn install
19+
mvn -Pintegration cargo:run -f sec/pom.xml
20+
```
21+
- **next**: start consuming the service like so: [[REST API: Consuming Examples with `curl`]]
2222

2323

2424
# Technology Stack
@@ -30,34 +30,18 @@ The project uses the following technologies: <br/>
3030
- **testing**: [junit](http://www.junit.org/), [hamcrest](http://code.google.com/p/hamcrest/), [mockito](http://code.google.com/p/mockito/), [rest-assured](http://code.google.com/p/rest-assured/) <br/>
3131

3232

33-
# THE PERSISTENCE LAYER (technical notes)
34-
### The DAO layer
35-
- to create a new DAO, only the interface needs to be created; **Spring Data JPA** will generates the DAO implementation automatically
36-
- the DAO interface MUST extend the Spring Data managed interface: _JpaRepository_ (with the correct parametrization)
37-
- the DAO layer is **aware** of the persistence engine it uses; this information MUST be encoded in the name; for **example**: _IPrincipalJpaDAO_ for JPA instead of just _IPrincipalDAO_
38-
39-
40-
### The Service layer
41-
- all Service interfaces MUST extend the _IService_ interface (with the proper parametrization)
42-
- all Service implementations MUST extend the _AbstractService_ abstract class (with the proper parametrization)
43-
- extending _AbstractService_ and _IService_ enables a base of consistent and common functionality across services
44-
- the Service artifacts MUST be annotated with the _@Service_ annotation
45-
46-
- the Service layer is **not aware** of the persistence engine it uses (indirectly); if the persistence engine will change, the DAO artifacts will change, and the service will not
33+
# REST API Documentation
34+
[Link to the **API Documentation**](https://github.com/eugenp/REST/wiki/API-documentation "REST Security - API docs")
4735

4836

49-
# THE WEB LAYER (technical notes)
50-
### The Controller layer
51-
- the Controller layer MUST only use the Service layer directly (never the DAO layer)
52-
- the Controller layer SHOULD not implement any interface
53-
- the Controller layer MUST extend _AbstractController_ (with the proper parametrization)
54-
- the Controller artifacts MUST be annotated with the _@Controller_ annotation
37+
# Continuous Integration
38+
- Built on Cloudbees: <a href="https://rest-security.ci.cloudbees.com">REST Security Jenkins CI</a>
39+
<br/><br/>
40+
<a href="https://rest-security.ci.cloudbees.com"><img src="http://web-static-cloudfront.s3.amazonaws.com/images/badges/BuiltOnDEV.png"/></a>
5541

5642

57-
## Transaction Management and Configuration (technical notes)
58-
- the Service layer is the transaction owner (and is annotated with _@Transactional_)
59-
- the default transaction semantics are: propagation REQUIRED, default isolation, rollback on runtime exceptions
60-
- **NOTE**: the transactional semantics MAY be subject to change
43+
# Community
44+
- [Discussion Group/Mailing List](https://groups.google.com/forum/#!forum/restsec)
6145

6246

6347
# Eclipse

‎sec/pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@
308308
</container>
309309
<configuration>
310310
<properties>
311-
<cargo.servlet.port>8083</cargo.servlet.port>
311+
<cargo.servlet.port>8080</cargo.servlet.port>
312312
</properties>
313313
</configuration>
314314
</configuration>

‎sec/src/main/resources/web-cargo.properties‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
http.protocol=http
22
http.host=localhost
3-
http.port=8083
3+
http.port=8080
44

55
http.sec.path=/rest-sec
66

‎test/pom.xml‎

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -107,26 +107,6 @@
107107
</configuration>
108108
</plugin>
109109

110-
<plugin>
111-
<groupId>org.codehaus.cargo</groupId>
112-
<artifactId>cargo-maven2-plugin</artifactId>
113-
<configuration>
114-
<wait>true</wait>
115-
<container>
116-
<containerId>jetty7x</containerId>
117-
<type>embedded</type>
118-
<systemProperties>
119-
<persistenceTarget>cargo</persistenceTarget>
120-
</systemProperties>
121-
</container>
122-
<configuration>
123-
<properties>
124-
<cargo.servlet.port>8080</cargo.servlet.port>
125-
</properties>
126-
</configuration>
127-
</configuration>
128-
</plugin>
129-
130110
<plugin>
131111
<groupId>org.zeroturnaround</groupId>
132112
<artifactId>jrebel-maven-plugin</artifactId>

0 commit comments

Comments
 (0)