Jump to content

Answers please


kevinUsa

Recommended Posts

The Assignment

You are a DevOps engineer. Your boss has requested that you build a blog post API. You have been given a database schema by the DBA team that you will need to use to insert information into a SQLite database. Create a repository on Github (do notfork this one) and add the code necessary to provide an API that will write single posts to the  database and retrieve a list of all posts from the database. You should include a copy of the database in your repository. It ought to work "out of the box".

Requirements

  1. You must use a scripting language (i.e., Perl, Python, Ruby, Go, Java, Node)
  2. Shell scripting is not allowed for the assignment (i.e., Bash, Ksh, Zsh)
  3. Your solution must be easily deployable and include a well documented process to do so.
  4. Your solution must be checked into Github. Do not submit a pull request to this repository. Send us a link to your repository.
  5. Please show your work. We want to see multiple commits and see how you approached the problem.

API Implementation

You will need to implement 2 API endpoints for this assignment.

  1. An endpoint for POSTing a single blog post
    • Endpoint must be /post
    • Method must be POST
    • Content of the POST must be the title and body of the post
  2. An endpoint for GETing all blog posts
    • Endpoint must be /posts
    • Method must be GET
    • There should be no content sent (this is a GET request)
    • Content received must be the post_id, title, and body of all posts in an array

All data exchanged with the API must be in JSON format.

Included in the Repository

You will find a file called blog.db in the repository. It is a SQLite database file and already includes the table you need for persisting blog post data.

When the API is used to POST a blog post it should be written to the database. When a GET is called the API should retrieve all entries from the database.

Last Words

Have fun! If you don't like doing this assignment you probably won't like working here. We like to code and we do a lot of automation.

We're looking forward to seeing your API in action!

Link to comment
Share on other sites

1 minute ago, kevinUsa said:

The Assignment

You are a DevOps engineer. Your boss has requested that you build a blog post API. You have been given a database schema by the DBA team that you will need to use to insert information into a SQLite database. Create a repository on Github (do notfork this one) and add the code necessary to provide an API that will write single posts to the  database and retrieve a list of all posts from the database. You should include a copy of the database in your repository. It ought to work "out of the box".

Requirements

  1. You must use a scripting language (i.e., Perl, Python, Ruby, Go, Java, Node)
  2. Shell scripting is not allowed for the assignment (i.e., Bash, Ksh, Zsh)
  3. Your solution must be easily deployable and include a well documented process to do so.
  4. Your solution must be checked into Github. Do not submit a pull request to this repository. Send us a link to your repository.
  5. Please show your work. We want to see multiple commits and see how you approached the problem.

API Implementation

You will need to implement 2 API endpoints for this assignment.

  1. An endpoint for POSTing a single blog post
    • Endpoint must be /post
    • Method must be POST
    • Content of the POST must be the title and body of the post
  2. An endpoint for GETing all blog posts
    • Endpoint must be /posts
    • Method must be GET
    • There should be no content sent (this is a GET request)
    • Content received must be the post_id, title, and body of all posts in an array

All data exchanged with the API must be in JSON format.

Included in the Repository

You will find a file called blog.db in the repository. It is a SQLite database file and already includes the table you need for persisting blog post data.

When the API is used to POST a blog post it should be written to the database. When a GET is called the API should retrieve all entries from the database.

Last Words

Have fun! If you don't like doing this assignment you probably won't like working here. We like to code and we do a lot of automation.

We're looking forward to seeing your API in action!

 

Link to comment
Share on other sites

30 minutes ago, kevinUsa said:

The Assignment

You are a DevOps engineer. Your boss has requested that you build a blog post API. You have been given a database schema by the DBA team that you will need to use to insert information into a SQLite database. Create a repository on Github (do notfork this one) and add the code necessary to provide an API that will write single posts to the  database and retrieve a list of all posts from the database. You should include a copy of the database in your repository. It ought to work "out of the box".

Requirements

  1. You must use a scripting language (i.e., Perl, Python, Ruby, Go, Java, Node)
  2. Shell scripting is not allowed for the assignment (i.e., Bash, Ksh, Zsh)
  3. Your solution must be easily deployable and include a well documented process to do so.
  4. Your solution must be checked into Github. Do not submit a pull request to this repository. Send us a link to your repository.
  5. Please show your work. We want to see multiple commits and see how you approached the problem.

API Implementation

You will need to implement 2 API endpoints for this assignment.

  1. An endpoint for POSTing a single blog post
    • Endpoint must be /post
    • Method must be POST
    • Content of the POST must be the title and body of the post
  2. An endpoint for GETing all blog posts
    • Endpoint must be /posts
    • Method must be GET
    • There should be no content sent (this is a GET request)
    • Content received must be the post_id, title, and body of all posts in an array

All data exchanged with the API must be in JSON format.

Included in the Repository

You will find a file called blog.db in the repository. It is a SQLite database file and already includes the table you need for persisting blog post data.

When the API is used to POST a blog post it should be written to the database. When a GET is called the API should retrieve all entries from the database.

Last Words

Have fun! If you don't like doing this assignment you probably won't like working here. We like to code and we do a lot of automation.

We're looking forward to seeing your API in action!

Interview lo task aa...?

@Spartan

Link to comment
Share on other sites

1 hour ago, kevinUsa said:

The Assignment

You are a DevOps engineer. Your boss has requested that you build a blog post API. You have been given a database schema by the DBA team that you will need to use to insert information into a SQLite database. Create a repository on Github (do notfork this one) and add the code necessary to provide an API that will write single posts to the  database and retrieve a list of all posts from the database. You should include a copy of the database in your repository. It ought to work "out of the box".

Requirements

  1. You must use a scripting language (i.e., Perl, Python, Ruby, Go, Java, Node)
  2. Shell scripting is not allowed for the assignment (i.e., Bash, Ksh, Zsh)
  3. Your solution must be easily deployable and include a well documented process to do so.
  4. Your solution must be checked into Github. Do not submit a pull request to this repository. Send us a link to your repository.
  5. Please show your work. We want to see multiple commits and see how you approached the problem.

API Implementation

You will need to implement 2 API endpoints for this assignment.

  1. An endpoint for POSTing a single blog post
    • Endpoint must be /post
    • Method must be POST
    • Content of the POST must be the title and body of the post
  2. An endpoint for GETing all blog posts
    • Endpoint must be /posts
    • Method must be GET
    • There should be no content sent (this is a GET request)
    • Content received must be the post_id, title, and body of all posts in an array

All data exchanged with the API must be in JSON format.

Included in the Repository

You will find a file called blog.db in the repository. It is a SQLite database file and already includes the table you need for persisting blog post data.

When the API is used to POST a blog post it should be written to the database. When a GET is called the API should retrieve all entries from the database.

Last Words

Have fun! If you don't like doing this assignment you probably won't like working here. We like to code and we do a lot of automation.

We're looking forward to seeing your API in action!

basically especially mana desi gaaalu vaalaki vachinaa task ni manaki interview lo ichii answer kanukooni use chesukuntaaaru....later not selected ani antaaaru...these days idhi chaala common ayyipoyindhii..emaina task unte ila interview ani adagatam answer thelisaakaa lite anaaadam

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...