POST api/v1/Stores
Will create a new store
Request Information
URI Parameters
None.
Body Parameters
PostStoreDtoName | Description | Type | Additional information |
---|---|---|---|
Number |
Unique number of the store |
string |
Required String length: inclusive between 0 and 25 |
Name |
Meaningful name of the store |
string |
String length: inclusive between 0 and 100 |
Phone |
Phone of the store |
string |
String length: inclusive between 0 and 20 |
Address |
Address of the store |
string |
String length: inclusive between 0 and 100 |
ZipCode |
Zip code of the store |
string |
String length: inclusive between 0 and 10 |
City |
City of the store |
string |
String length: inclusive between 0 and 50 |
Email of a store |
string |
String length: inclusive between 0 and 250 |
|
JsonString |
Json string for additional data |
string |
None. |
Request Formats
application/json, text/json
{ "Number": "sample string 1", "Name": "sample string 2", "Phone": "sample string 3", "Address": "sample string 4", "ZipCode": "sample string 5", "City": "sample string 6", "Email": "sample string 7", "JsonString": "sample string 8" }
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
Store with created id
ReadStoreDtoName | Description | Type | Additional information |
---|---|---|---|
Id |
Id of Store |
integer |
Required |
Number |
Unique number of the store |
string |
Required String length: inclusive between 0 and 25 |
LastModified |
Date-time of when store was last modified |
date |
None. |
Name |
Meaningful name of the store |
string |
String length: inclusive between 0 and 100 |
Phone |
Phone of the store |
string |
String length: inclusive between 0 and 20 |
Address |
Address of the store |
string |
String length: inclusive between 0 and 100 |
ZipCode |
Zip code of the store |
string |
String length: inclusive between 0 and 10 |
City |
City of the store |
string |
String length: inclusive between 0 and 50 |
Email of a store |
string |
String length: inclusive between 0 and 250 |
|
JsonString |
Json string for additional data |
string |
None. |
Response Formats
application/json, text/json
{ "Id": 1, "Number": "sample string 2", "LastModified": "2024-11-21T06:31:11.9725464+00:00", "Name": "sample string 4", "Phone": "sample string 5", "Address": "sample string 6", "ZipCode": "sample string 7", "City": "sample string 8", "Email": "sample string 9", "JsonString": "sample string 10" }