-
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.
dojo-py1-semirest's Introduction
dojo-py1-semirest's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.