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:
- orderid
- product
- quantity
- shippingtype
so need api allow send in new order (orderid blank in response).
- 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
Post a Comment