asp.net mvc - what is the standard for creating a web REST API for adding new items -


i have order catalogue web site , want create rest api people can create own apps , add order or update existing order:

lets order has:

  1. orderid
  2. product
  3. quantity
  4. shippingtype

so need api allow send in new order (orderid blank in response).

  1. how deal passing in items product or shipping type. these tables in db , keyed off own specific primary key id. should neworder api ask string name these fields, should ask id. if asked id, assume have call givemeproductlist() method upfront (which gives name , id of product dataset).

what standard dealing this?

martin fowler has post steps toward glory of rest might find useful come rest api.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -