Coder Social home page Coder Social logo

byob-1's Introduction

GET /jobs

  • Returns JSON data for all available jobs.
  • You should receive an array of Type JSON objects.
[
	{
		"id": 1,
		"description": "A good job",
		"company": "DHI GROUP, INC.",
		"location": "GREATER DENVER AREA",
		"status": "none",
		"job_title_id": 1,
	},
	{
		"id": 2,
		"description": "A good job",
		"company": "TRAVELERS HAVEN",
		"location": "GREATER DENVER AREA",
		"status": "none",
		"job_title_id": 2
	},
	{
		"id": 3,
		"description": "A good job",
		"company": "WOWZA MEDIA SYSTEMS",
		"location": "GREATER DENVER AREA",
		"status": "none",
		"job_title_id": 2
	}
	...
]

GET /job-types

  • Returns JSON data for all available job types.
  • You should receive an array of Type JSON objects.
[
	{
		"id": 3,
		"job_title": "Software Engineer",
		"average_salary": 72000
	},
	{
		"id": 4,
		"job_title": "Full Stack Developer",
		"average_salary": 85000
	},
	{
		"id": 5,
		"job_title": "Front End Developer",
		"average_salary": 77000
	},
    ...
]

GET /jobs/:id

  • Returns JSON data for a specific job based on its id.
  • You should receive an array with a single Type JSON object.
[
  {
    "id": 3,
    "description": "We are looking for an experienced developer...",
    "company": "FOUR WINDS INTERACTIVE",
    "location": "GREATER DENVER AREA",
    "status": "none",
    "job_title_id": 4
  }
]

GET /jobs-types/:id

  • Returns JSON data for a specific job type based on its id.
  • You should receive an array with a single Type JSON object.
[
  {
    "id": 3,
    "job_title": "Software Engineer",
    "average_salary": 72000
  }
]

POST /jobs

  • Adds a new job.
  • The response should be a Type JSON object with the new job's id.

Request:

{
  "description": "We're looking for talented and motivated engineers...",
  "company": "Gusto",
  "location": "GREATER DENVER AREA",
  "status": "none"
}

Response:

{
  "id": 20
}

POST /job-types

  • Adds a new job type.
  • The response should be a Type JSON object with the new job type's id.

Request:

{
  "description": "We're looking for talented and motivated engineers...",
  "company": "Gusto",
  "location": "GREATER DENVER AREA",
  "status": "none"
}

Response:

{
  "id": 20
}

PATCH /api/v1/jobs/:id

  • Updates a job's status based on its id.
  • The response should be a Type JSON object with the new job's status.

Request:

{
  "status": "saved"
}

Response:

{
  "id": 25
}

PATCH /api/v1/jobs/:id/edit

  • Updates a job's description, company and location based on its id.
  • The response should be a Type JSON object with the new job's id.

Request:

{
  "description": "We're looking for a front-end developer at our new Boulder office...",
  "company": "Bitsbox",
  "location": "Boulder, CO"
}

Response:

{
  "id": 25
}

DELETE /api/v1/jobs/:id

  • Deletes a job based on its id.
  • The response should be a Type JSON object with the deleted job's id.
{
  "id": 50
}

DELETE /api/v1/job-types/:id

  • Deletes a job-type based on its id.
  • The response should be a Type JSON object with the deleted job type's id.
{
  "id": 20
}

byob-1's People

Contributors

kmiller9393 avatar brandonfiebiger avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.