Skip to content

Conversation

@casillas51
Copy link

No description provided.

@casillas51
Copy link
Author

There are 2 services to completed the required challenge.

Get Employee by ID

Request
http://localhost:8080/v1/employee/2

Response
{ "id": 2, "properties": { "title": "Vice President of Sales" }, "supervisor": { "id": 1, "properties": { "title": "CEO" } } }

Get all employees

Request
http://localhost:8080/v1/employee/all

Response
[ { "id": 1, "properties": { "title": "CEO" }, "underling": [ { "id": 2, "properties": { "title": "Vice President of Sales" }, "underling": [ { "id": 3, "properties": { "region": "North America", "title": "Regional Director of Sales" }, "underling": [ { "id": 4, "properties": { "title": "Sales Representative" } } ] }, { "id": 5, "properties": { "region": "Europe", "title": "Regional Director of Sales" } } ] }, { "id": 6, "properties": { "title": "Vice President of People" } }, { "id": 7, "properties": { "title": "Vice President of Marketing" }, "underling": [ { "id": 8, "properties": { "region": "North America", "title": "Regional Director of Marketing" } }, { "id": 9, "properties": { "region": "Europe", "title": "Regional Director of Marketing" } } ] } ] } ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant