DSC Portal APIS
Index controller
GETApi index
https://api.dsckiet.com/dev
Gives 200 response which states that api is running
Example Request
Api index
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers
GETGet birthdays
https://api.dsckiet.com/dev/birthdays
- Internal api for birthday wisher to get all the users birthday
- Requires secret key to get all the birthdays
Example Request
Get birthdays
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers
Users Controller
GETGet all users / user (w/ id)
https://api.dsckiet.com/dev/users?uid=5ed5fec6f597eb1db5a3e0bc
- /users -> all users expect the lead
- /users?uid=123 -> specific user data matching the id
PARAMS
uid
Example Request
Get all users / user (w/ id)
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers
POSTAdd a user
https://api.dsckiet.com/dev/users
- Adds a user and sends them an email with default login creds
- Requires lead/core auth token
HEADERS
x-auth-token
Bodyurlencoded
name
email
role
designation
Example Request
Add a user
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers