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.3k stars 677 forks source link

Tags are not saving in Tags while create a new article #7

Closed ajitkumargiri closed 6 years ago

ajitkumargiri commented 6 years ago

While we are creating POST {{apiUrl}}/articles with some new tags. It is saved successfully but it is not coming in get {{apiUrl}}/tags api call.

Is there any repo in spring + hibernate/spring Jpa Thanks

aisensiy commented 6 years ago

Ok, i will check this as soon as possible.

ItaloQualisoni commented 6 years ago

I couldn't reproduce this issue, the {{apiURL}}/tags worked just fine. @ajitbapina can you provide the steps to reproduce this issue?

ajitkumargiri commented 6 years ago

Creating POST {{apiUrl}}/articles with some new tags then it should insert new tags in Tag table. It seems there may be an issue in POST {{apiUrl}}/articles .

ItaloQualisoni commented 6 years ago

@ajitbapina ,

I've recorded a video showing the POST {{apiUrl}}/articles in action.

  1. Created an user
  2. Logged in as the user
  3. Created a dummy article with none authorization header , received a 401 (forbidden code)
  4. Checked that no tags were inserted
  5. Created a dummy article with user token in authorization header , received a 201(success code)
  6. Checked that now tags were inserted

demo.zip

I'm using Postman to this video and you can find more in their documentation: Postman Docs

Can you let me know if this helped you?