<batchParts>
<batchChangeSet1>
<batchChangeSetPart1>
<method>POST</method>
<uri>Products</uri>
<body>
<Products>
<Product>
<ID>101</ID>
<Name>Macbook pro</Name>
<ReleaseDate>2019-01-01T00:00:00Z</ReleaseDate>
<Rating>5</Rating>
<Price>1500</Price>
</Product>
</Products>
</body>
</batchChangeSetPart1>
<batchChangeSetPart2>
<method>POST</method>
<uri>Categories</uri>
<body>
<Categories>
<Category>
<ID>101</ID>
<Name>Laptops</Name>
</Category>
</Categories>
</body>
</batchChangeSetPart2>
</batchChangeSet1>
</batchParts>
<?xml version='1.0' encoding='UTF-8'?>
<batchPartsResponse>
<batchChangeSetResponse>
<batchChangeSetPartResponse>
<headers>
<header>
<headerName>Cache-Control</headerName>
<headerValue>no-cache</headerValue>
</header>
<header>
<headerName>Content-Type</headerName>
<headerValue>application/json;odata.metadata=full;odata.streaming=true;IEEE754Compatible=false;charset=utf-8</headerValue>
</header>
<header>
<headerName>Location</headerName>
<headerValue>https://services.odata.org/V4/OData/(S(CPI_batch_abc))/OData.svc/Products(101)</headerValue>
</header>
<header>
<headerName>OData-Version</headerName>
<headerValue>4.0;</headerValue>
</header>
<header>
<headerName>X-Content-Type-Options</headerName>
<headerValue>nosniff</headerValue>
</header>
</headers>
<statusInfo>Created</statusInfo>
<body>
<Products>
<Product>
<Description/>
<Price>1500.0</Price>
<Rating>5</Rating>
<DiscontinuedDate/>
<ID>101</ID>
<ReleaseDate>2019-01-01T00:00:00Z</ReleaseDate>
<Name>Macbook pro</Name>
</Product>
</Products>
</body>
<statusCode>201</statusCode>
</batchChangeSetPartResponse>
<batchChangeSetPartResponse>
<headers>
<header>
<headerName>Cache-Control</headerName>
<headerValue>no-cache</headerValue>
</header>
<header>
<headerName>Content-Type</headerName>
<headerValue>application/json;odata.metadata=full;odata.streaming=true;IEEE754Compatible=false;charset=utf-8</headerValue>
</header>
<header>
<headerName>Location</headerName>
<headerValue>https://services.odata.org/V4/OData/(S(CPI_batch_abc))/OData.svc/Categories(101)</headerValue>
</header>
<header>
<headerName>OData-Version</headerName>
<headerValue>4.0;</headerValue>
</header>
<header>
<headerName>X-Content-Type-Options</headerName>
<headerValue>nosniff</headerValue>
</header>
</headers>
<statusInfo>Created</statusInfo>
<body>
<Categories>
<Category>
<ID>101</ID>
<Name>Laptops</Name>
</Category>
</Categories>
</body>
<statusCode>201</statusCode>
</batchChangeSetPartResponse>
</batchChangeSetResponse>
</batchPartsResponse>
<batchParts>
<batchSet1>
<method>GET</method>
<uri>Products(101)</uri>
<headers>
<header>
<headerName>Accept</headerName>
<headerValue>application/json;odata.metadata=minimal</headerValue>
</header>
</headers>
</batchSet1>
<batchSet2>
<method>GET</method>
<uri>Categories(101)</uri>
<headers>
<header>
<headerName>Accept</headerName>
<headerValue>application/json;odata.metadata=minimal</headerValue>
</header>
</headers>
</batchSet2>
</batchParts>
<?xml version='1.0' encoding='UTF-8'?>
<batchPartsResponse>
<batchSetResponse>
<headers>
<header>
<headerName>Cache-Control</headerName>
<headerValue>no-cache</headerValue>
</header>
<header>
<headerName>Content-Type</headerName>
<headerValue>application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8</headerValue>
</header>
<header>
<headerName>OData-Version</headerName>
<headerValue>4.0;</headerValue>
</header>
<header>
<headerName>X-Content-Type-Options</headerName>
<headerValue>nosniff</headerValue>
</header>
</headers>
<statusInfo>OK</statusInfo>
<body>
<Products>
<Product>
<Description/>
<Price>1500.0</Price>
<Rating>5</Rating>
<DiscontinuedDate/>
<ID>101</ID>
<ReleaseDate>2019-01-01T00:00:00Z</ReleaseDate>
<Name>Macbook pro</Name>
</Product>
</Products>
</body>
<statusCode>200</statusCode>
</batchSetResponse>
<batchSetResponse>
<headers>
<header>
<headerName>Cache-Control</headerName>
<headerValue>no-cache</headerValue>
</header>
<header>
<headerName>Content-Type</headerName>
<headerValue>application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8</headerValue>
</header>
<header>
<headerName>OData-Version</headerName>
<headerValue>4.0;</headerValue>
</header>
<header>
<headerName>X-Content-Type-Options</headerName>
<headerValue>nosniff</headerValue>
</header>
</headers>
<statusInfo>OK</statusInfo>
<body>
<Categories>
<Category>
<ID>101</ID>
<Name>Laptops</Name>
</Category>
</Categories>
</body>
<statusCode>200</statusCode>
</batchSetResponse>
</batchPartsResponse>
<batchParts>
<batchChangeSet1>
<batchChangeSetPart1>
<method>PUT</method>
<uri>Products(101)</uri>
<body>
<Products>
<Product>
<ID>101</ID>
<Name>Macbook pro</Name>
<ReleaseDate>2019-01-01T00:00:00Z</ReleaseDate>
<Rating>4</Rating>
<Price>2000</Price>
</Product>
</Products>
</body>
</batchChangeSetPart1>
<batchChangeSetPart2>
<method>PUT</method>
<uri>Categories(101)</uri>
<body>
<Categories>
<Category>
<ID>101</ID>
<Name>Laptops and Chromebooks</Name>
</Category>
</Categories>
</body>
</batchChangeSetPart2>
</batchChangeSet1>
</batchParts>
<?xml version='1.0' encoding='UTF-8'?>
<batchPartsResponse>
<batchChangeSetResponse>
<batchChangeSetPartResponse>
<headers>
<header>
<headerName>Cache-Control</headerName>
<headerValue>no-cache</headerValue>
</header>
<header>
<headerName>OData-Version</headerName>
<headerValue>4.0;</headerValue>
</header>
<header>
<headerName>X-Content-Type-Options</headerName>
<headerValue>nosniff</headerValue>
</header>
</headers>
<statusInfo>No Content</statusInfo>
<statusCode>204</statusCode>
</batchChangeSetPartResponse>
<batchChangeSetPartResponse>
<headers>
<header>
<headerName>Cache-Control</headerName>
<headerValue>no-cache</headerValue>
</header>
<header>
<headerName>OData-Version</headerName>
<headerValue>4.0;</headerValue>
</header>
<header>
<headerName>X-Content-Type-Options</headerName>
<headerValue>nosniff</headerValue>
</header>
</headers>
<statusInfo>No Content</statusInfo>
<statusCode>204</statusCode>
</batchChangeSetPartResponse>
</batchChangeSetResponse>
</batchPartsResponse>
<batchParts>
<batchChangeSet1>
<batchChangeSetPart1>
<method>DELETE</method>
<uri>Products(101)</uri>
</batchChangeSetPart1>
<batchChangeSetPart2>
<method>DELETE</method>
<uri>Categories(101)</uri>
</batchChangeSetPart2>
</batchChangeSet1>
</batchParts>
<?xml version='1.0' encoding='UTF-8'?>
<batchPartsResponse>
<batchChangeSetResponse>
<batchChangeSetPartResponse>
<headers>
<header>
<headerName>Cache-Control</headerName>
<headerValue>no-cache</headerValue>
</header>
<header>
<headerName>OData-Version</headerName>
<headerValue>4.0;</headerValue>
</header>
<header>
<headerName>X-Content-Type-Options</headerName>
<headerValue>nosniff</headerValue>
</header>
</headers>
<statusInfo>No Content</statusInfo>
<statusCode>204</statusCode>
</batchChangeSetPartResponse>
<batchChangeSetPartResponse>
<headers>
<header>
<headerName>Cache-Control</headerName>
<headerValue>no-cache</headerValue>
</header>
<header>
<headerName>OData-Version</headerName>
<headerValue>4.0;</headerValue>
</header>
<header>
<headerName>X-Content-Type-Options</headerName>
<headerValue>nosniff</headerValue>
</header>
</headers>
<statusInfo>No Content</statusInfo>
<statusCode>204</statusCode>
</batchChangeSetPartResponse>
</batchChangeSetResponse>
</batchPartsResponse>
<?xml version="1.0" encoding="UTF-8"?>
<batchParts>
<batchSet1>
<method>FUNCTION_IMPORT</method>
<uri>GetNearestAirport(lon=-118,lat=33)</uri>
<headers>
<header>
<headerName>Accept</headerName>
<headerValue>application/json;odata.metadata=minimal</headerValue>
</header>
</headers>
</batchSet1>
</batchParts>
<?xml version='1.0' encoding='UTF-8'?>
<batchPartsResponse>
<batchSetResponse>
<headers>
<header>
<headerName>Content-Type</headerName>
<headerValue>application/json; odata.metadata=minimal</headerValue>
</header>
<header>
<headerName>OData-Version</headerName>
<headerValue>4.0</headerValue>
</header>
</headers>
<statusInfo>OK</statusInfo>
<body>
<Airports>
<Airport>
<IataCode>LAX</IataCode>
<IcaoCode>KLAX</IcaoCode>
<Name>Los Angeles International Airport</Name>
<Location>
<Address>1 World Way, Los Angeles, CA, 90045</Address>
<Loc>GEOGRAPHY'SRID=4326;Point(-118.408055555556 33.9425)'</Loc>
<City>
<Name>Los Angeles</Name>
<CountryRegion>United States</CountryRegion>
<Region>California</Region>
</City>
</Location>
</Airport>
</Airports>
</body>
<statusCode>200</statusCode>
</batchSetResponse>
</batchPartsResponse>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
20 | |
10 | |
9 | |
7 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 |