Skip to content

kayashaolu/webarch-lab-10

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Lab 10

Connect a database to your api

Let's create a simple bit.ly API

Today will be an experiment in what's called pair programing: where you the class and myself will pair program to build a simple API for bit.ly. I will post the code we come up with in the class examples folder

In class: set up environment, create the table, and select/insert new entries to the table

We will build an api with two endpoints that does the following:

  1. Create a database and a table in our database
  2. Add a new link to our table
  3. Return all of the links created

On your own: after the above, create a third endpoint that returns the long url

  • The input is the short url
  • The output is the long url

About

Connect a database to your api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published