Giter VIP home page Giter VIP logo

petful-api's Introduction

Petful Server

Live application: https://petful-client-tawny.vercel.app/

Server: https://warm-reaches-49846.herokuapp.com/

API Documentation

Petful Endpoints

GET /api/people: Return an array of people waiting in the queue to adopt pet.
[
    'Randy Lahey',
    'Trevor Cory',
    'Jim Lahey'
  ]
DELETE /api/people: Delete the first person in the queue.

POST /api/people: Add person to the tail of the queue.

GET /api/pets: Return all pets in queue including cats and dogs.

POST /api/people: Add person to the tail of the queue.

GET /api/pets: Return all pets in queue including cats and dogs.
dogs: [
    {
      age: 3,
      breed: 'Golden Retriever',
      description: 'A smiling golden-brown golden retreiver listening to music.',
      gender: 'Male',
      imageURL: 'https://images.pexels.com/photos/33053/dog-young-dog-small-dog-maltese.jpg?auto=compress&cs=tinysrgb&dpr=1&w=500',
      name: 'Zim',
      story: 'Owner Passed away'
    }
  ],

  cats: [
    {
      age: 2,
      breed: 'Bengal',
      description: 'Orange bengal cat with black stripes lounging on concrete.',
      gender: 'Female',
      imageURL:'https://images.pexels.com/photos/104827/cat-pet-animal-domestic-104827.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500',
      name: 'Steve French',
      story: 'Thrown on the street'
    }
  ]
}

DELETE /api/pets: Delete the first animal in both of the dog queue and cat queue.

DELETE /api/pets: Delete the first animal in both of the dog queue and cat queue.

GET /api/cat: Return the first cat in cat queue.
{
      age: 2,
      breed: 'Bengal',
      description: 'Orange bengal cat with black stripes lounging on concrete.',
      gender: 'Female',
      imageURL:'https://images.pexels.com/photos/104827/cat-pet-animal-domestic-104827.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500',
      name: 'Steve French',
      story: 'Thrown on the street'
    }
GET /api/dog: Return the first dog in dog queue.
{
      age: 3,
      breed: 'Golden Retriever',
      description: 'A smiling golden-brown golden retreiver listening to music.',
      gender: 'Male',
      imageURL: 'https://images.pexels.com/photos/33053/dog-young-dog-small-dog-maltese.jpg?auto=compress&cs=tinysrgb&dpr=1&w=500',
      name: 'Zim',
      story: 'Owner Passed away'
    }

Technology used

Frontend

  • ReactJS
  • React Router
  • HTML
  • CSS
  • Webpack
  • Deployed at Vercel

Backend

  • RESTful API
  • Node & Express
  • Deployed Heroku

petful-api's People

Contributors

cmgrace avatar

Watchers

 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.