Coder Social home page Coder Social logo

color-catcher-backend's People

Contributors

lboyer4 avatar sallyh3 avatar

Watchers

 avatar

Forkers

sallyh3

color-catcher-backend's Issues

Fix query test

Fix test for app.get '/api/v1/palettes/:id' now that we've added query params

Documentation

In the README, developer should provide documentation on the API endpoints that can be hit. Here is a great example of in-depth documentation Pay attention to the information provided and the format that it’s presented in.

Some things you want to considering having in your API documentation:

Endpoints available (e.g. GET /api/v1/students, POST api/v1/students)
What parameters can be used in certain requests (e.g. For a POST request, what should be put in the request body?)
Sample responses from endpoints (What does the response object look like for a request?)
You can put your documentation in the README of your BYOB GitHub repository. Remember, improperly formatted information can make it very difficult to read even if it’s all accurate, so be sure to utilize markdown syntax styling/formatting (here is a markdown style cheatsheet).

Backend pseudocode endpoint testing

Pseudocode out tests for each endpoint:
agreed to have this done by EOD 7/3/19

Sally: All project endpoints
Lauren: All palettes endpoints

Res/Response Req/Request

Change inconsistencies in naming conventions to be all 'req' and 'res' or all 'request' and 'response'.

GET endpoints

2 GET endpoints that serve up ALL of a single resource

Backend server-side testing

All endpoints need to be tested for happy AND sad paths.
You should assert that proper status codes are being returned as well as appropriate response data and error messages.
Please reference the server-side testing lesson to see the robustness and thoroughness of testing we are expecting.

500 error status code

If you have a critical server error, you should respond with

500: Internal Server Error

Heroku deployment

Your back-end will be deployed to Heroku, and we will set up continuous integration using the TravisCI tool. We will have a lesson where we deploy our BE applications using TravisCI and Heroku together at the end of Week 2.

422 error status code

422: Unprocessable Entity response code, If POST request fails to save an entity due to bad information being sent from the client, you should respond with 422

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.