Implement REST with Spring @MVC programming model

Description

Rest support of CAS is currently provided via the restlet library. The integration need to be converted to be based on Spring MVC support for REST calls. This would remove the dependency on restlet which causes a number of issues in the past by pulling conflicting another JARs into the build.

Environment

None

Activity

Show:

Misagh MoayyedJuly 12, 2014 at 6:53 AM

Dmitriy KopylenkoJuly 8, 2014 at 12:25 PM

Scott,

Groovy habits never die in me )

As far as the documentation - there is not much to it - just include the module dep. in in the pom and for existing restlet users change the restlet servlet mapping of /v1* to the cas dispatcher servlet mapping (or just delete the overlay web.xml all together). Those notes are included in PR.

Best,
D.

ScottSJuly 8, 2014 at 11:54 AM

I concur with both of you

1. New module makes sense
2. Deprecating class/old module makes sense
3. I think our "public API" in this instance is actually the URL pattern and not the specific classes.

Its also good to see that years later Dimo is still on his Groovy kick
p.s. does the pull request include updated documentation?

Dmitriy KopylenkoJuly 7, 2014 at 8:18 PM

Dmitriy KopylenkoJuly 6, 2014 at 10:58 AM

Roger that.

In terms of public API - the only thing considered a public API is the resource URI I.e. /v1/tickets. The classes implementing it are internal implementation details. In Restlet impl they are split between 2 classes TicketResource and TicketGrantingTicket resource. I don't see any reason to do the same in the modern @RestControler implementation. It will be one TicketsResource class with all 3 resource URIs methods. Totally reasonable, modern way of implementing restfull resources.

Cheers,
D.

Fixed

Details

Assignee

Reporter

Labels

Components

Fix versions

Priority

Created September 25, 2013 at 5:57 PM
Updated July 12, 2014 at 6:53 AM
Resolved July 12, 2014 at 6:53 AM