gothinkster / spring-boot-realworld-example-app

Example Spring codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld API spec.
MIT License
1.31k stars 680 forks source link

422Unprocessable Entity (WebDAV) (RFC 4918) #20

Closed renukeswarchinta closed 3 years ago

renukeswarchinta commented 5 years ago

{ "user": { "email":"renu.javaconnect@gmail.com", "password":"renu" } }

I have this record but i get 422 error . May i know where i am going wrong

aisensiy commented 3 years ago

Please follow the spec https://github.com/gothinkster/realworld/tree/master/spec#backend-specs:

curl --location --request POST 'http://localhost:8080/users' \
--header 'Content-Type: application/json' \
--header 'X-Requested-With: XMLHttpRequest' \
--data-raw '{
    "user": {
        "email": "john@jacob.com",
        "password": "johnnyjacob",
        "username": "john"
    }
}'