Git Product home page Git Product logo

dojo-py1-semirest's Introduction

Semi-RESTful users

Assignment:

  • Have 7 routes in your server.py. Because we are working with 'users', they might look like:

    • a GET request to /users - calls the index method to display all the users. This will need a template.
    • GET request to /users/new - calls the new method to display a form allowing users to create a new user. This will need a template.
    • POST to /users/create - calls the create method to insert a new user record into our database. This POST should be sent from the form on the page /users/new. Have this redirect to /users/ once created.
    • GET /users/ - calls the show method to display the info for a particular user with given id. This will need a template.
    • POST /users/ - calls the update method to process the submitted form sent from /users//edit. Have this redirect to /users/ once updated.
    • GET request /users//edit - calls the edit method to display a form allowing users to edit an existing user with the given id. This will need a template.
    • GET /users//destroy - calls the destroy method to remove a particular user with the given id. Have this redirect back to /users once deleted.

Homepage

home

Show

show

Edit

edit

Create

create

dojo-py1-semirest's People

Contributors

annapetrone 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.