Skip to content

Latest commit

 

History

History
96 lines (79 loc) · 2.05 KB

File metadata and controls

96 lines (79 loc) · 2.05 KB

Developer Profiles:-

Application video:- https://youtu.be/B4mN_n3uq4U

This web-app has the following features:-

  1. Developer List Page:-
    • Provides brief details about the developers.
    • Search developers.
    • Add new devlopers.
  2. Developer Detail Page:- Shows detail developer info with their social profile links and list of their repos.

API Specs:-

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 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 developer:-

DELETE /api/developers/:id/

Status: 204 (Deleted)