Giter VIP home page Giter VIP logo

rest-with-spring's Introduction

Hey, I'm Eugen ๐Ÿ‘‹

I am a software engineer with a passion for the Java ecosystem, Spring, REST APIs, and, of course, security. Nowadays, Iโ€™m focused on running Baeldung ๐Ÿ’ป, creating video courses ๐Ÿ“น, helping the Java community ๐Ÿ˜€, and doing quite a bit of OAuth work ๐Ÿ”.

I'm generally hangging around on Twitter.

Cheers, Eugen :)

rest-with-spring's People

Contributors

asif-anwar avatar collaboratewithakash avatar eugen-elanross avatar eugenp avatar lor6 avatar mmonik avatar pivovarit avatar rozagerardo avatar sachin29aug avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rest-with-spring's Issues

org.rest.sec.util.SearchUtil relies on test class

org.rest.sec.util.SearchUtil in main packages relies on org.rest.client.template.impl.ClientOperations in test packages. This keeps it from building. The method that requires ClientOperations is only used once in org.rest.client.template.impl.RoleRESTTemplateImpl.

Platform: Netbeans 7.0.1 on Windows
As of commit: 1a1883d.

SearchUtil.java
Line 7: import org.rest.client.template.impl.ClientOperations;
Line 54: public static String constructQueryString( final Pair< Long, ClientOperations > idOp, final Pair< String, ClientOperations > nameOp ){

RoleRESTTemplateImpl.java
Line 40: final String queryURI = getURI() + "?q=" + SearchUtil.constructQueryString( idOp, nameOp );

ResponseStatus annotation, reason field doesn't propagate to HTTP response

When setting the reason in @ResponseStatus, the reason is not propagated in the HTTP response. I modified the latest version of the project as follows:

Modified the following line in ConflictException.java (added reason):
@ResponseStatus(value = HttpStatus.CONFLICT, reason = "ConflictExceptionReason")

Set breakpoint in UserLogicRESTIntegrationTest.java at method whenUserIsCreatedWithNewRole_then409IsReceived at the response and don't see the reason changed. It is "HTTP/1.1 409 Conflict" and would expect "HTTP/1.1 409 ConflictExceptionReason".

There is another Github project that just does a minimal RESTful service in MVC and demonstrates use of the reason, so I don't think it's a Spring issue. Most likely just a project configuration issue:
github.com/Zenika/Blogs/tree/master/20110518_REST-error-handling/rest-error-handling

Maven not pulling down all jars?

I run mvn install and the only lib dir I can find is at target/rest/WEB-INF/lib. It only has the jars needed for the main branch to compile. The jars that are missing are all needed to test the app (hamcrest, springjUnit4ClassRunner, etc.). Is there another lib that should be created when I run mvn install? I'm running on ubuntu and I've tried with both Maven 2 and 3.

Mechanism to allow Token-based API authorization

http://localhost:8080/rest-sec/api/role
curl -X POST http://localhost:8080/rest-sec/api/role --data "key=lllllKEYlllll"

16:59:00 DEBUG [org.apache.http.headers] - >> POST /rest-sec/api/role HTTP/1.1
16:59:00 DEBUG [org.apache.http.headers] - >> Accept: */*
//without Basic Authorization
//16:59:00 DEBUG [org.apache.http.headers] - >> Authorization: Basic xxxx
16:59:00 DEBUG [org.apache.http.headers] - >> Content-Length: 29
16:59:00 DEBUG [org.apache.http.headers] - >> Content-Type: application/json; charset=ISO-8859-1
16:59:00 DEBUG [org.apache.http.headers] - >> Host: localhost:8080
16:59:00 DEBUG [org.apache.http.headers] - >> Connection: Keep-Alive
16:59:00 DEBUG [org.apache.http.headers] - >> Accept-Encoding: gzip,deflate
16:59:00 DEBUG [org.apache.http.wire] - >> "{"id":null,"name":"URcLcdfq"}"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.