Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Test rest #42

Closed
DiegoECQ opened this issue Feb 17, 2017 · 7 comments
Closed

Test rest #42

DiegoECQ opened this issue Feb 17, 2017 · 7 comments

Comments

@DiegoECQ
Copy link

Hello, i can't see results for this rest: http://localhost:8080/api/employees

image

Thank's

Regards.

@gregturn
Copy link
Contributor

Screen shot looks like it's showing the collection just fine. What do you think is missing?

@DiegoECQ
Copy link
Author

According to the guide should see the data of the employee.

image
image

Thanks
Regards.

@gregturn
Copy link
Contributor

Okay, here's what I did:

  1. Checkout latest copy of tutorial.
  2. cd into basic
  3. run mvn clean spring-boot:run
  4. go into separate shell and execute curl:
$ curl localhost:8080/api/employees
{
  "_embedded" : {
    "employees" : [ {
      "firstName" : "Frodo",
      "lastName" : "Baggins",
      "description" : "ring bearer",
      "_links" : {
        "self" : {
          "href" : "http://localhost:8080/api/employees/1"
        },
        "employee" : {
          "href" : "http://localhost:8080/api/employees/1"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/employees"
    },
    "profile" : {
      "href" : "http://localhost:8080/api/profile/employees"
    }
  }
}

Looks good to me. What have you done differently, and have you edited any of the code?

@aprakash-sovrn
Copy link

I'm seeing the exact same issue. Was there ever any resolution to this?

@gregturn
Copy link
Contributor

We have a difference in reproduceability. Try wiping your maven cache at .m2 and running the steps I posted.

@aprakash-sovrn
Copy link

aprakash-sovrn commented Mar 28, 2017 via email

@gregturn
Copy link
Contributor

np

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants