Welcome to Cloudflare General Assignment Worker API
Here are list of APIs you can call- API Endpoint #1: GET /organization-chart
- When queried, the endpoint returns a JSON response with a graph representation of the organization.
- API Endpoint #2: GET /me
- When queried, the endpoint retruns a JSON repsonse with display information about me :D
Extra Credit APIs you can call- EC API Endpoint #1: POST /organization-chart
- When queired, it must contain POST JSON data in format { "organizationData" : string }. The string is the CSV file content.
- The endpoint retruns a graph representation of the organization in JSON, same as GET.
- EC API Endpoint #2: POST /employee
- When queired, it must contain POST JSON data in format { "name" : string, "department": string, "minSalary": number, "maxSalary": number, "office": string, "skill": string}. Each string is in the form of a regular expression!
- The endpoint retruns the matched employees in JSON formats
- EC UI: GET /orgchart
- A web page that displays the Org :)