Skip to content

PrafulAnand/DevProfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevProfile

Backend Implementation for DevProfile

API Endpoints

Get all developers - GET /api/developers

Sample Response Body: [{ "id": "gcnit", "avatar_url": "https://avatars.githubusercontent.com/u/4833751?v=4" }, { "id": "sagarjain0907", "avatar_url": "https://avatars.githubusercontent.com/u/20463272?v=4" }] Status: 200

Add a developer - POST /api/developers

Sample Request Body: { "github_id": "gcnit", "linkedin_id": "gcnit", "codechef_id": "gc_nit", "hackerrank_id": "gcnit", "twitter_id": "gc_nit", "medium_id": "gc_nit" }

Sample Response Body: { "id": "gcnit" } Status: 201 (User Created), 400 (GitHub username is invalid)

Get a particular developer GET /api/developers/:id

Sample Response Body: { "id": "gcnit", "avatar_url": "https://avatars.githubusercontent.com/u/4833751?v=4", "name": "Gaurav Chandak", "company": "workat.tech", "blog": "https://workat.tech", "location": "Bangalore, India", "email": null, "bio": "Building workat.tech;\r\nPreviously Software Engineer at @Flipkart, @microsoft and @tracxn", "github_id": "gcnit", "linkedin_id": "gcnit", "codechef_id": "gc_nit", "hackerrank_id": "gcnit", "twitter_id": "gc_nit", "medium_id": "gc_nit", "repos": [{ "name": "awesome-learn-to-code", "html_url": "https://github.com/gcnit/awesome-learn-to-code", "description": "A list of awesome resources for learning to code", "updated_at": "2020-08-12T18:21:53Z" }] } Status: 200 (Valid User), 404 (User does not exist)

Remove a particular developer- DELETE /api/developers/:id

Status: 204 (Deleted)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published