Service for namespace StarWarsFilm v
Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
This service is located at /odata/v4/StarWarsFilm/
Entity Data Model
Legend
Base URLs:
{i18n>Film}
All Films in the Star Wars Skywalker Saga
Retrieves a list of film.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | createdAt |
| $orderby | createdAt desc |
| $orderby | createdBy |
| $orderby | createdBy desc |
| $orderby | modifiedAt |
| $orderby | modifiedAt desc |
| $orderby | modifiedBy |
| $orderby | modifiedBy desc |
| $orderby | title |
| $orderby | title desc |
| $orderby | episode_id |
| $orderby | episode_id desc |
| $orderby | opening_crawl |
| $orderby | opening_crawl desc |
| $orderby | director |
| $orderby | director desc |
| $orderby | producer |
| $orderby | producer desc |
| $orderby | release_date |
| $orderby | release_date desc |
| $orderby | IsActiveEntity |
| $orderby | IsActiveEntity desc |
| $orderby | HasActiveEntity |
| $orderby | HasActiveEntity desc |
| $orderby | HasDraftEntity |
| $orderby | HasDraftEntity desc |
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | title |
| $select | episode_id |
| $select | opening_crawl |
| $select | director |
| $select | producer |
| $select | release_date |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | characters |
| $expand | planets |
| $expand | starships |
| $expand | vehicles |
| $expand | species |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved film | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Film
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
Creates a single film.
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Film HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"title": "string",
"episode_id": 0,
"opening_crawl": "string",
"director": "string",
"producer": "string",
"release_date": "2017-04-13",
"characters": [
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"people_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}
],
"planets": [
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"planet_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}
],
"starships": [
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"starship_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}
],
"vehicles": [
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"vehicle_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}
],
"species": [
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"specie_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}
],
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Film',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Film', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Film', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Film", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Film
Body parameter
{
"title": "string",
"episode_id": 0,
"opening_crawl": "string",
"director": "string",
"producer": "string",
"release_date": "2017-04-13",
"characters": [
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"people_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}
],
"planets": [
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"planet_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}
],
"starships": [
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"starship_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}
],
"vehicles": [
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"vehicle_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}
],
"species": [
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"specie_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}
],
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | StarWarsFilm.Film-create | true | All Films in the Star Wars Skywalker Saga |
Example responses
201 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | Created film | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 201
See StarWarsFilm.Film
| Name | Type | Required | Restrictions | Description |
|---|
Retrieves a single film.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}') \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film(ID={ID},IsActiveEntity='{IsActiveEntity}')
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | title |
| $select | episode_id |
| $select | opening_crawl |
| $select | director |
| $select | producer |
| $select | release_date |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | characters |
| $expand | planets |
| $expand | starships |
| $expand | vehicles |
| $expand | species |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved film | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Film
| Name | Type | Required | Restrictions | Description |
|---|
Changes a single film.
Code samples
# You can also use wget
curl -X PATCH /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}') \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'PATCH /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"title": "string",
"episode_id": 0,
"opening_crawl": "string",
"director": "string",
"producer": "string",
"release_date": "2017-04-13",
"characters": [
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"people_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}
],
"planets": [
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"planet_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}
],
"starships": [
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"starship_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}
],
"vehicles": [
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"vehicle_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}
],
"species": [
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"specie_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}
],
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.patch '/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.patch('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('PATCH','/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("PATCH");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("PATCH", "/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}PATCH /Film(ID={ID},IsActiveEntity='{IsActiveEntity}')
Body parameter
{
"title": "string",
"episode_id": 0,
"opening_crawl": "string",
"director": "string",
"producer": "string",
"release_date": "2017-04-13",
"characters": [
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"people_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}
],
"planets": [
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"planet_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}
],
"starships": [
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"starship_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}
],
"vehicles": [
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"vehicle_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}
],
"species": [
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"specie_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}
],
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | StarWarsFilm.Film-update | true | All Films in the Star Wars Skywalker Saga |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Example responses
4XX Response
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
],
"innererror": {}
}
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Success | None |
| 4XX | Unknown | Error | error |
Deletes a single film.
Code samples
# You can also use wget
curl -X DELETE /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}') \
-H 'Accept: application/json'DELETE /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.delete '/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.delete('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('DELETE','/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("DELETE");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("DELETE", "/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}DELETE /Film(ID={ID},IsActiveEntity='{IsActiveEntity}')
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Example responses
4XX Response
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
],
"innererror": {}
}
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Success | None |
| 4XX | Unknown | Error | error |
Retrieves draft administrative data of a {i18n> film}.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | DraftUUID |
| $select | CreationDateTime |
| $select | CreatedByUser |
| $select | DraftIsCreatedByMe |
| $select | LastChangeDateTime |
| $select | LastChangedByUser |
| $select | InProcessByUser |
| $select | DraftIsProcessedByMe |
Example responses
200 Response
{
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved draft administrative data | StarWarsFilm.DraftAdministrativeData |
| 4XX | Unknown | Error | error |
Changes draft administrative data of a {i18n> film}.
Code samples
# You can also use wget
curl -X PATCH /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'PATCH /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.patch '/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.patch('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('PATCH','/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("PATCH");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("PATCH", "/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}PATCH /Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData
Body parameter
{
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | StarWarsFilm.DraftAdministrativeData-update | true | New property values |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Example responses
4XX Response
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
],
"innererror": {}
}
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Success | None |
| 4XX | Unknown | Error | error |
Deletes draft administrative data of a {i18n> film}.
Code samples
# You can also use wget
curl -X DELETE /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData \
-H 'Accept: application/json'DELETE /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.delete '/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.delete('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('DELETE','/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("DELETE");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("DELETE", "/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}DELETE /Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Example responses
4XX Response
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
],
"innererror": {}
}
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Success | None |
| 4XX | Unknown | Error | error |
Retrieves sibling entity of a {i18n> film}.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | title |
| $select | episode_id |
| $select | opening_crawl |
| $select | director |
| $select | producer |
| $select | release_date |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | characters |
| $expand | planets |
| $expand | starships |
| $expand | vehicles |
| $expand | species |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved sibling entity | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Film
| Name | Type | Required | Restrictions | Description |
|---|
Invokes action draftActivate
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftActivate \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftActivate HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftActivate',
{
method: 'POST',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftActivate',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftActivate', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftActivate', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftActivate");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftActivate", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftActivate
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Invokes action draftEdit
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftEdit \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftEdit HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"PreserveChanges": true
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftEdit',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftEdit',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftEdit', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftEdit', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftEdit");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftEdit", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftEdit
Body parameter
{
"PreserveChanges": true
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
| body | body | object | false | Action parameters |
| » PreserveChanges | body | boolean¦null | false | none |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Invokes action draftPrepare
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftPrepare \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftPrepare HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"SideEffectsQualifier": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftPrepare',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftPrepare',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftPrepare', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftPrepare', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftPrepare");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftPrepare", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftPrepare
Body parameter
{
"SideEffectsQualifier": "string"
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
| body | body | object | false | Action parameters |
| » SideEffectsQualifier | body | string¦null | false | none |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Retrieves a list of characters of a {i18n> film}.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/characters \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/characters HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/characters',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/characters',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/characters', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/characters', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/characters");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/characters", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/characters
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | film_ID |
| $orderby | film_ID desc |
| $orderby | people_ID |
| $orderby | people_ID desc |
| $orderby | IsActiveEntity |
| $orderby | IsActiveEntity desc |
| $orderby | HasActiveEntity |
| $orderby | HasActiveEntity desc |
| $orderby | HasDraftEntity |
| $orderby | HasDraftEntity desc |
| $select | ID |
| $select | film_ID |
| $select | people_ID |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | film |
| $expand | people |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved characters | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Film2People
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
Creates a single character of a {i18n> film}.
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/characters \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/characters HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"people_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/characters',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/characters',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/characters', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/characters', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/characters");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/characters", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/characters
Body parameter
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"people_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | StarWarsFilm.Film2People-create | true | Aspect for entities with canonical universal IDs |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Detailed descriptions
body: Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Example responses
201 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | Created character | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 201
See StarWarsFilm.Film2People
| Name | Type | Required | Restrictions | Description |
|---|
Retrieves a list of planets of a {i18n> film}.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/planets \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/planets HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/planets',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/planets',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/planets', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/planets', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/planets");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/planets", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/planets
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | film_ID |
| $orderby | film_ID desc |
| $orderby | planet_ID |
| $orderby | planet_ID desc |
| $orderby | IsActiveEntity |
| $orderby | IsActiveEntity desc |
| $orderby | HasActiveEntity |
| $orderby | HasActiveEntity desc |
| $orderby | HasDraftEntity |
| $orderby | HasDraftEntity desc |
| $select | ID |
| $select | film_ID |
| $select | planet_ID |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | film |
| $expand | planet |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved planets | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Film2Planets
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
Creates a single planet of a {i18n> film}.
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/planets \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/planets HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"planet_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/planets',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/planets',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/planets', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/planets', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/planets");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/planets", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/planets
Body parameter
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"planet_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | StarWarsFilm.Film2Planets-create | true | Aspect for entities with canonical universal IDs |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Detailed descriptions
body: Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Example responses
201 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | Created planet | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 201
See StarWarsFilm.Film2Planets
| Name | Type | Required | Restrictions | Description |
|---|
Retrieves a list of species of a {i18n> film}.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/species \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/species HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/species',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/species',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/species', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/species', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/species");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/species", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/species
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | film_ID |
| $orderby | film_ID desc |
| $orderby | specie_ID |
| $orderby | specie_ID desc |
| $orderby | IsActiveEntity |
| $orderby | IsActiveEntity desc |
| $orderby | HasActiveEntity |
| $orderby | HasActiveEntity desc |
| $orderby | HasDraftEntity |
| $orderby | HasDraftEntity desc |
| $select | ID |
| $select | film_ID |
| $select | specie_ID |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | film |
| $expand | specie |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved species | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Film2Species
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
Creates a single species of a {i18n> film}.
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/species \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/species HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"specie_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/species',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/species',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/species', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/species', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/species");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/species", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/species
Body parameter
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"specie_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | StarWarsFilm.Film2Species-create | true | Aspect for entities with canonical universal IDs |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Detailed descriptions
body: Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Example responses
201 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | Created species | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 201
See StarWarsFilm.Film2Species
| Name | Type | Required | Restrictions | Description |
|---|
Retrieves a list of starships of a {i18n> film}.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/starships \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/starships HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/starships',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/starships',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/starships', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/starships', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/starships");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/starships", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/starships
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | film_ID |
| $orderby | film_ID desc |
| $orderby | starship_ID |
| $orderby | starship_ID desc |
| $orderby | IsActiveEntity |
| $orderby | IsActiveEntity desc |
| $orderby | HasActiveEntity |
| $orderby | HasActiveEntity desc |
| $orderby | HasDraftEntity |
| $orderby | HasDraftEntity desc |
| $select | ID |
| $select | film_ID |
| $select | starship_ID |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | film |
| $expand | starship |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved starships | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Film2Starships
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
Creates a single starship of a {i18n> film}.
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/starships \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/starships HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"starship_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/starships',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/starships',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/starships', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/starships', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/starships");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/starships", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/starships
Body parameter
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"starship_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | StarWarsFilm.Film2Starships-create | true | Aspect for entities with canonical universal IDs |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Detailed descriptions
body: Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Example responses
201 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | Created starship | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 201
See StarWarsFilm.Film2Starships
| Name | Type | Required | Restrictions | Description |
|---|
Retrieves a list of vehicles of a {i18n> film}.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicles \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicles HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicles',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicles',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicles', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicles', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicles");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicles", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicles
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | film_ID |
| $orderby | film_ID desc |
| $orderby | vehicle_ID |
| $orderby | vehicle_ID desc |
| $orderby | IsActiveEntity |
| $orderby | IsActiveEntity desc |
| $orderby | HasActiveEntity |
| $orderby | HasActiveEntity desc |
| $orderby | HasDraftEntity |
| $orderby | HasDraftEntity desc |
| $select | ID |
| $select | film_ID |
| $select | vehicle_ID |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | film |
| $expand | vehicle |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved vehicles | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Film2Vehicles
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
Creates a single vehicle of a {i18n> film}.
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicles \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicles HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"vehicle_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicles',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicles',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicles', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicles', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicles");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicles", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicles
Body parameter
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"vehicle_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | StarWarsFilm.Film2Vehicles-create | true | Aspect for entities with canonical universal IDs |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Detailed descriptions
body: Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Example responses
201 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | Created vehicle | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 201
See StarWarsFilm.Film2Vehicles
| Name | Type | Required | Restrictions | Description |
|---|
Retrieves a list of film episode desc.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/FilmEpisodeDesc \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/FilmEpisodeDesc HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/FilmEpisodeDesc',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/FilmEpisodeDesc',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/FilmEpisodeDesc', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/FilmEpisodeDesc', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/FilmEpisodeDesc");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/FilmEpisodeDesc", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /FilmEpisodeDesc
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | episode_id |
| $orderby | episode_id desc |
| $orderby | title |
| $orderby | title desc |
| $orderby | episodeIDDesc |
| $orderby | episodeIDDesc desc |
| $select | ID |
| $select | episode_id |
| $select | title |
| $select | episodeIDDesc |
Example responses
200 Response
{
"@count": 0,
"value": [
{
"ID": "01234567-89ab-cdef-0123-456789abcdef",
"episode_id": 0,
"title": "string",
"episodeIDDesc": "string"
}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved film episode desc | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of FilmEpisodeDesc
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [StarWarsFilm.FilmEpisodeDesc] | false | none | none |
| »» All Films in the Star Wars Skywalker Saga | StarWarsFilm.FilmEpisodeDesc | false | none | none |
| »»» ID | string(uuid) | false | none | none |
| »»» episode_id | integer(int32)¦null | false | none | none |
| »»» title | string¦null | false | none | none |
| »»» episodeIDDesc | string¦null | false | none | none |
Retrieves a single film episode desc.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/FilmEpisodeDesc({ID}) \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/FilmEpisodeDesc({ID}) HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/FilmEpisodeDesc({ID})',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/FilmEpisodeDesc({ID})',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/FilmEpisodeDesc({ID})', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/FilmEpisodeDesc({ID})', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/FilmEpisodeDesc({ID})");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/FilmEpisodeDesc({ID})", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /FilmEpisodeDesc({ID})
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | episode_id |
| $select | title |
| $select | episodeIDDesc |
Example responses
200 Response
{
"ID": "01234567-89ab-cdef-0123-456789abcdef",
"episode_id": 0,
"title": "string",
"episodeIDDesc": "string"
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved film episode desc | StarWarsFilm.FilmEpisodeDesc |
| 4XX | Unknown | Error | error |
Retrieves a list of directors.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/directors \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/directors HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/directors',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/directors',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/directors', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/directors', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/directors");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/directors", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /directors
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | director |
| $orderby | director desc |
| $select | director |
Example responses
200 Response
{
"@count": 0,
"value": [
{
"director": "string"
}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved directors | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of directors
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [StarWarsFilm.directors] | false | none | none |
| »» All Films in the Star Wars Skywalker Saga | StarWarsFilm.directors | false | none | none |
| »»» director | string | false | none | none |
Retrieves a single director.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/directors('{director}') \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/directors('{director}') HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/directors('{director}')',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/directors('{director}')',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/directors('{director}')', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/directors('{director}')', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/directors('{director}')");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/directors('{director}')", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /directors('{director}')
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| director | path | string | true | key: director |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | director |
Example responses
200 Response
{
"director": "string"
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved director | StarWarsFilm.directors |
| 4XX | Unknown | Error | error |
Retrieves a list of producers.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/producers \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/producers HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/producers',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/producers',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/producers', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/producers', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/producers");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/producers", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /producers
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | producer |
| $orderby | producer desc |
| $select | producer |
Example responses
200 Response
{
"@count": 0,
"value": [
{
"producer": "string"
}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved producers | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of producers
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [StarWarsFilm.producers] | false | none | none |
| »» All Films in the Star Wars Skywalker Saga | StarWarsFilm.producers | false | none | none |
| »»» producer | string | false | none | none |
Retrieves a single producer.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/producers('{producer}') \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/producers('{producer}') HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/producers('{producer}')',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/producers('{producer}')',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/producers('{producer}')', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/producers('{producer}')', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/producers('{producer}')");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/producers('{producer}')", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /producers('{producer}')
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| producer | path | string | true | key: producer |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | producer |
Example responses
200 Response
{
"producer": "string"
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved producer | StarWarsFilm.producers |
| 4XX | Unknown | Error | error |
{i18n>People}
All People and Aliens in Star Wars
Retrieves a list of people.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/People \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/People HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/People',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/People',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/People', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/People', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/People");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/People", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /People
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | createdAt |
| $orderby | createdAt desc |
| $orderby | createdBy |
| $orderby | createdBy desc |
| $orderby | modifiedAt |
| $orderby | modifiedAt desc |
| $orderby | modifiedBy |
| $orderby | modifiedBy desc |
| $orderby | name |
| $orderby | name desc |
| $orderby | height |
| $orderby | height desc |
| $orderby | mass |
| $orderby | mass desc |
| $orderby | hair_color |
| $orderby | hair_color desc |
| $orderby | skin_color |
| $orderby | skin_color desc |
| $orderby | eye_color |
| $orderby | eye_color desc |
| $orderby | birth_year |
| $orderby | birth_year desc |
| $orderby | gender |
| $orderby | gender desc |
| $orderby | scoundrel |
| $orderby | scoundrel desc |
| $orderby | homeworld_ID |
| $orderby | homeworld_ID desc |
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | name |
| $select | height |
| $select | mass |
| $select | hair_color |
| $select | skin_color |
| $select | eye_color |
| $select | birth_year |
| $select | gender |
| $select | scoundrel |
| $select | homeworld_ID |
| $expand | * |
| $expand | homeworld |
| $expand | films |
| $expand | species |
| $expand | vehicles |
| $expand | starships |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved people | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of People
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
Retrieves a single person.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/People({ID}) \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/People({ID}) HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/People({ID})',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/People({ID})',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/People({ID})', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/People({ID})', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/People({ID})");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/People({ID})", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /People({ID})
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | name |
| $select | height |
| $select | mass |
| $select | hair_color |
| $select | skin_color |
| $select | eye_color |
| $select | birth_year |
| $select | gender |
| $select | scoundrel |
| $select | homeworld_ID |
| $expand | * |
| $expand | homeworld |
| $expand | films |
| $expand | species |
| $expand | vehicles |
| $expand | starships |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved person | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.People
| Name | Type | Required | Restrictions | Description |
|---|
Retrieves a list of films of a {i18n> people}.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/People({ID})/films \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/People({ID})/films HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/People({ID})/films',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/People({ID})/films',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/People({ID})/films', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/People({ID})/films', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/People({ID})/films");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/People({ID})/films", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /People({ID})/films
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | film_ID |
| $orderby | film_ID desc |
| $orderby | people_ID |
| $orderby | people_ID desc |
| $orderby | IsActiveEntity |
| $orderby | IsActiveEntity desc |
| $orderby | HasActiveEntity |
| $orderby | HasActiveEntity desc |
| $orderby | HasDraftEntity |
| $orderby | HasDraftEntity desc |
| $select | ID |
| $select | film_ID |
| $select | people_ID |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | film |
| $expand | people |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved films | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Film2People
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
Retrieves homeworld of a {i18n> people}.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/People({ID})/homeworld \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/People({ID})/homeworld HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/People({ID})/homeworld',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/People({ID})/homeworld',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/People({ID})/homeworld', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/People({ID})/homeworld', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/People({ID})/homeworld");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/People({ID})/homeworld", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /People({ID})/homeworld
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | name |
| $select | diameter |
| $select | rotation_period |
| $select | orbital_period |
| $select | gravity |
| $select | population |
| $select | climate |
| $select | terrain |
| $select | surface_water |
| $expand | * |
| $expand | films |
| $expand | residents |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved homeworld | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Planet
| Name | Type | Required | Restrictions | Description |
|---|
Retrieves a list of species of a {i18n> people}.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/People({ID})/species \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/People({ID})/species HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/People({ID})/species',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/People({ID})/species',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/People({ID})/species', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/People({ID})/species', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/People({ID})/species");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/People({ID})/species", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /People({ID})/species
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | species_ID |
| $orderby | species_ID desc |
| $orderby | people_ID |
| $orderby | people_ID desc |
| $select | ID |
| $select | species_ID |
| $select | people_ID |
| $expand | * |
| $expand | species |
| $expand | people |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved species | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Species2People
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
Retrieves a list of starships of a {i18n> people}.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/People({ID})/starships \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/People({ID})/starships HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/People({ID})/starships',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/People({ID})/starships',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/People({ID})/starships', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/People({ID})/starships', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/People({ID})/starships");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/People({ID})/starships", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /People({ID})/starships
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | starship_ID |
| $orderby | starship_ID desc |
| $orderby | pilot_ID |
| $orderby | pilot_ID desc |
| $select | ID |
| $select | starship_ID |
| $select | pilot_ID |
| $expand | * |
| $expand | starship |
| $expand | pilot |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved starships | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Starship2Pilot
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
Retrieves a list of vehicles of a {i18n> people}.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/People({ID})/vehicles \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/People({ID})/vehicles HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/People({ID})/vehicles',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/People({ID})/vehicles',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/People({ID})/vehicles', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/People({ID})/vehicles', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/People({ID})/vehicles");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/People({ID})/vehicles", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /People({ID})/vehicles
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | vehicle_ID |
| $orderby | vehicle_ID desc |
| $orderby | pilot_ID |
| $orderby | pilot_ID desc |
| $select | ID |
| $select | vehicle_ID |
| $select | pilot_ID |
| $expand | * |
| $expand | vehicle |
| $expand | pilot |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved vehicles | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Vehicle2Pilot
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
{i18n>Planet}
Aspect to capture changes by user and name
See https://cap.cloud.sap/docs/cds/common#aspect-managed
Retrieves a list of planet.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Planet \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Planet HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Planet',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Planet',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Planet', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Planet', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Planet");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Planet", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Planet
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | createdAt |
| $orderby | createdAt desc |
| $orderby | createdBy |
| $orderby | createdBy desc |
| $orderby | modifiedAt |
| $orderby | modifiedAt desc |
| $orderby | modifiedBy |
| $orderby | modifiedBy desc |
| $orderby | name |
| $orderby | name desc |
| $orderby | diameter |
| $orderby | diameter desc |
| $orderby | rotation_period |
| $orderby | rotation_period desc |
| $orderby | orbital_period |
| $orderby | orbital_period desc |
| $orderby | gravity |
| $orderby | gravity desc |
| $orderby | population |
| $orderby | population desc |
| $orderby | climate |
| $orderby | climate desc |
| $orderby | terrain |
| $orderby | terrain desc |
| $orderby | surface_water |
| $orderby | surface_water desc |
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | name |
| $select | diameter |
| $select | rotation_period |
| $select | orbital_period |
| $select | gravity |
| $select | population |
| $select | climate |
| $select | terrain |
| $select | surface_water |
| $expand | * |
| $expand | films |
| $expand | residents |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved planet | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Planet
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
Retrieves a single planet.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Planet({ID}) \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Planet({ID}) HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Planet({ID})',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Planet({ID})',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Planet({ID})', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Planet({ID})', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Planet({ID})");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Planet({ID})", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Planet({ID})
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | name |
| $select | diameter |
| $select | rotation_period |
| $select | orbital_period |
| $select | gravity |
| $select | population |
| $select | climate |
| $select | terrain |
| $select | surface_water |
| $expand | * |
| $expand | films |
| $expand | residents |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved planet | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Planet
| Name | Type | Required | Restrictions | Description |
|---|
Retrieves a list of films of a {i18n> planet}.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Planet({ID})/films \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Planet({ID})/films HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Planet({ID})/films',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Planet({ID})/films',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Planet({ID})/films', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Planet({ID})/films', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Planet({ID})/films");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Planet({ID})/films", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Planet({ID})/films
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | film_ID |
| $orderby | film_ID desc |
| $orderby | planet_ID |
| $orderby | planet_ID desc |
| $orderby | IsActiveEntity |
| $orderby | IsActiveEntity desc |
| $orderby | HasActiveEntity |
| $orderby | HasActiveEntity desc |
| $orderby | HasDraftEntity |
| $orderby | HasDraftEntity desc |
| $select | ID |
| $select | film_ID |
| $select | planet_ID |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | film |
| $expand | planet |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved films | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Film2Planets
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
Creates a single film of a {i18n> planet}.
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Planet({ID})/films \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Planet({ID})/films HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"planet_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Planet({ID})/films',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Planet({ID})/films',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Planet({ID})/films', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Planet({ID})/films', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Planet({ID})/films");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Planet({ID})/films", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Planet({ID})/films
Body parameter
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"planet_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | StarWarsFilm.Film2Planets-create | true | Aspect for entities with canonical universal IDs |
| ID | path | string(uuid) | true | key: ID |
Detailed descriptions
body: Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Example responses
201 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | Created film | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 201
See StarWarsFilm.Film2Planets
| Name | Type | Required | Restrictions | Description |
|---|
Retrieves a list of residents of a {i18n> planet}.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Planet({ID})/residents \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Planet({ID})/residents HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Planet({ID})/residents',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Planet({ID})/residents',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Planet({ID})/residents', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Planet({ID})/residents', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Planet({ID})/residents");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Planet({ID})/residents", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Planet({ID})/residents
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | planet_ID |
| $orderby | planet_ID desc |
| $orderby | people_ID |
| $orderby | people_ID desc |
| $select | ID |
| $select | planet_ID |
| $select | people_ID |
| $expand | * |
| $expand | planet |
| $expand | people |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved residents | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Planet2People
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
Creates a single resident of a {i18n> planet}.
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Planet({ID})/residents \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Planet({ID})/residents HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"planet_ID": "01234567-89ab-cdef-0123-456789abcdef",
"people_ID": "01234567-89ab-cdef-0123-456789abcdef"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Planet({ID})/residents',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Planet({ID})/residents',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Planet({ID})/residents', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Planet({ID})/residents', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Planet({ID})/residents");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Planet({ID})/residents", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Planet({ID})/residents
Body parameter
{
"planet_ID": "01234567-89ab-cdef-0123-456789abcdef",
"people_ID": "01234567-89ab-cdef-0123-456789abcdef"
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | StarWarsFilm.Planet2People-create | true | Aspect for entities with canonical universal IDs |
| ID | path | string(uuid) | true | key: ID |
Detailed descriptions
body: Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Example responses
201 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | Created resident | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 201
See StarWarsFilm.Planet2People
| Name | Type | Required | Restrictions | Description |
|---|
{i18n>Species}
Aspect to capture changes by user and name
See https://cap.cloud.sap/docs/cds/common#aspect-managed
Retrieves a list of species.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Species \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Species HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Species',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Species',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Species', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Species', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Species");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Species", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Species
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | createdAt |
| $orderby | createdAt desc |
| $orderby | createdBy |
| $orderby | createdBy desc |
| $orderby | modifiedAt |
| $orderby | modifiedAt desc |
| $orderby | modifiedBy |
| $orderby | modifiedBy desc |
| $orderby | name |
| $orderby | name desc |
| $orderby | classification |
| $orderby | classification desc |
| $orderby | designation |
| $orderby | designation desc |
| $orderby | average_height |
| $orderby | average_height desc |
| $orderby | average_lifespan |
| $orderby | average_lifespan desc |
| $orderby | hair_colors |
| $orderby | hair_colors desc |
| $orderby | skin_colors |
| $orderby | skin_colors desc |
| $orderby | eye_colors |
| $orderby | eye_colors desc |
| $orderby | homeworld_ID |
| $orderby | homeworld_ID desc |
| $orderby | language |
| $orderby | language desc |
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | name |
| $select | classification |
| $select | designation |
| $select | average_height |
| $select | average_lifespan |
| $select | hair_colors |
| $select | skin_colors |
| $select | eye_colors |
| $select | homeworld_ID |
| $select | language |
| $expand | * |
| $expand | homeworld |
| $expand | people |
| $expand | films |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved species | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Species
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
Retrieves a single species.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Species({ID}) \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Species({ID}) HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Species({ID})',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Species({ID})',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Species({ID})', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Species({ID})', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Species({ID})");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Species({ID})", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Species({ID})
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | name |
| $select | classification |
| $select | designation |
| $select | average_height |
| $select | average_lifespan |
| $select | hair_colors |
| $select | skin_colors |
| $select | eye_colors |
| $select | homeworld_ID |
| $select | language |
| $expand | * |
| $expand | homeworld |
| $expand | people |
| $expand | films |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved species | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Species
| Name | Type | Required | Restrictions | Description |
|---|
Retrieves a list of films of a {i18n> species}.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Species({ID})/films \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Species({ID})/films HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Species({ID})/films',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Species({ID})/films',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Species({ID})/films', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Species({ID})/films', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Species({ID})/films");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Species({ID})/films", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Species({ID})/films
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | film_ID |
| $orderby | film_ID desc |
| $orderby | specie_ID |
| $orderby | specie_ID desc |
| $orderby | IsActiveEntity |
| $orderby | IsActiveEntity desc |
| $orderby | HasActiveEntity |
| $orderby | HasActiveEntity desc |
| $orderby | HasDraftEntity |
| $orderby | HasDraftEntity desc |
| $select | ID |
| $select | film_ID |
| $select | specie_ID |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | film |
| $expand | specie |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved films | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Film2Species
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
Creates a single film of a {i18n> species}.
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Species({ID})/films \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Species({ID})/films HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"specie_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Species({ID})/films',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Species({ID})/films',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Species({ID})/films', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Species({ID})/films', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Species({ID})/films");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Species({ID})/films", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Species({ID})/films
Body parameter
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"specie_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | StarWarsFilm.Film2Species-create | true | Aspect for entities with canonical universal IDs |
| ID | path | string(uuid) | true | key: ID |
Detailed descriptions
body: Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Example responses
201 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | Created film | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 201
See StarWarsFilm.Film2Species
| Name | Type | Required | Restrictions | Description |
|---|
Retrieves homeworld of a {i18n> species}.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Species({ID})/homeworld \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Species({ID})/homeworld HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Species({ID})/homeworld',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Species({ID})/homeworld',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Species({ID})/homeworld', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Species({ID})/homeworld', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Species({ID})/homeworld");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Species({ID})/homeworld", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Species({ID})/homeworld
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | name |
| $select | diameter |
| $select | rotation_period |
| $select | orbital_period |
| $select | gravity |
| $select | population |
| $select | climate |
| $select | terrain |
| $select | surface_water |
| $expand | * |
| $expand | films |
| $expand | residents |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved homeworld | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Planet
| Name | Type | Required | Restrictions | Description |
|---|
Retrieves a list of people of a {i18n> species}.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Species({ID})/people \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Species({ID})/people HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Species({ID})/people',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Species({ID})/people',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Species({ID})/people', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Species({ID})/people', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Species({ID})/people");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Species({ID})/people", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Species({ID})/people
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | species_ID |
| $orderby | species_ID desc |
| $orderby | people_ID |
| $orderby | people_ID desc |
| $select | ID |
| $select | species_ID |
| $select | people_ID |
| $expand | * |
| $expand | species |
| $expand | people |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved people | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Species2People
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
Creates a single person of a {i18n> species}.
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Species({ID})/people \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Species({ID})/people HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"species_ID": "01234567-89ab-cdef-0123-456789abcdef",
"people_ID": "01234567-89ab-cdef-0123-456789abcdef"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Species({ID})/people',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Species({ID})/people',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Species({ID})/people', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Species({ID})/people', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Species({ID})/people");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Species({ID})/people", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Species({ID})/people
Body parameter
{
"species_ID": "01234567-89ab-cdef-0123-456789abcdef",
"people_ID": "01234567-89ab-cdef-0123-456789abcdef"
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | StarWarsFilm.Species2People-create | true | Aspect for entities with canonical universal IDs |
| ID | path | string(uuid) | true | key: ID |
Detailed descriptions
body: Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Example responses
201 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | Created person | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 201
See StarWarsFilm.Species2People
| Name | Type | Required | Restrictions | Description |
|---|
{i18n>Starship}
Aspect to capture changes by user and name
See https://cap.cloud.sap/docs/cds/common#aspect-managed
Retrieves a list of starship.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Starship \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Starship HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Starship',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Starship',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Starship', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Starship', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Starship");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Starship", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Starship
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | createdAt |
| $orderby | createdAt desc |
| $orderby | createdBy |
| $orderby | createdBy desc |
| $orderby | modifiedAt |
| $orderby | modifiedAt desc |
| $orderby | modifiedBy |
| $orderby | modifiedBy desc |
| $orderby | name |
| $orderby | name desc |
| $orderby | model |
| $orderby | model desc |
| $orderby | starship_class |
| $orderby | starship_class desc |
| $orderby | manufacturer |
| $orderby | manufacturer desc |
| $orderby | cost_in_credits |
| $orderby | cost_in_credits desc |
| $orderby | length |
| $orderby | length desc |
| $orderby | crew |
| $orderby | crew desc |
| $orderby | passengers |
| $orderby | passengers desc |
| $orderby | max_atmosphering_speed |
| $orderby | max_atmosphering_speed desc |
| $orderby | hyperdrive_rating |
| $orderby | hyperdrive_rating desc |
| $orderby | MGLT |
| $orderby | MGLT desc |
| $orderby | cargo_capacity |
| $orderby | cargo_capacity desc |
| $orderby | consumables |
| $orderby | consumables desc |
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | name |
| $select | model |
| $select | starship_class |
| $select | manufacturer |
| $select | cost_in_credits |
| $select | length |
| $select | crew |
| $select | passengers |
| $select | max_atmosphering_speed |
| $select | hyperdrive_rating |
| $select | MGLT |
| $select | cargo_capacity |
| $select | consumables |
| $expand | * |
| $expand | films |
| $expand | pilots |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved starship | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Starship
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
Retrieves a single starship.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Starship({ID}) \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Starship({ID}) HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Starship({ID})',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Starship({ID})',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Starship({ID})', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Starship({ID})', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Starship({ID})");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Starship({ID})", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Starship({ID})
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | name |
| $select | model |
| $select | starship_class |
| $select | manufacturer |
| $select | cost_in_credits |
| $select | length |
| $select | crew |
| $select | passengers |
| $select | max_atmosphering_speed |
| $select | hyperdrive_rating |
| $select | MGLT |
| $select | cargo_capacity |
| $select | consumables |
| $expand | * |
| $expand | films |
| $expand | pilots |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved starship | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Starship
| Name | Type | Required | Restrictions | Description |
|---|
Retrieves a list of films of a {i18n> starship}.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Starship({ID})/films \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Starship({ID})/films HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Starship({ID})/films',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Starship({ID})/films',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Starship({ID})/films', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Starship({ID})/films', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Starship({ID})/films");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Starship({ID})/films", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Starship({ID})/films
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | film_ID |
| $orderby | film_ID desc |
| $orderby | starship_ID |
| $orderby | starship_ID desc |
| $orderby | IsActiveEntity |
| $orderby | IsActiveEntity desc |
| $orderby | HasActiveEntity |
| $orderby | HasActiveEntity desc |
| $orderby | HasDraftEntity |
| $orderby | HasDraftEntity desc |
| $select | ID |
| $select | film_ID |
| $select | starship_ID |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | film |
| $expand | starship |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved films | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Film2Starships
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
Retrieves a list of pilots of a {i18n> starship}.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Starship({ID})/pilots \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Starship({ID})/pilots HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Starship({ID})/pilots',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Starship({ID})/pilots',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Starship({ID})/pilots', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Starship({ID})/pilots', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Starship({ID})/pilots");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Starship({ID})/pilots", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Starship({ID})/pilots
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | starship_ID |
| $orderby | starship_ID desc |
| $orderby | pilot_ID |
| $orderby | pilot_ID desc |
| $select | ID |
| $select | starship_ID |
| $select | pilot_ID |
| $expand | * |
| $expand | starship |
| $expand | pilot |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved pilots | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Starship2Pilot
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
{i18n>Vehicles}
Aspect to capture changes by user and name
See https://cap.cloud.sap/docs/cds/common#aspect-managed
Retrieves a list of vehicles.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Vehicles \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Vehicles HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Vehicles',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Vehicles',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Vehicles', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Vehicles', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Vehicles");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Vehicles", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Vehicles
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | createdAt |
| $orderby | createdAt desc |
| $orderby | createdBy |
| $orderby | createdBy desc |
| $orderby | modifiedAt |
| $orderby | modifiedAt desc |
| $orderby | modifiedBy |
| $orderby | modifiedBy desc |
| $orderby | name |
| $orderby | name desc |
| $orderby | model |
| $orderby | model desc |
| $orderby | vehicle_class |
| $orderby | vehicle_class desc |
| $orderby | manufacturer |
| $orderby | manufacturer desc |
| $orderby | cost_in_credits |
| $orderby | cost_in_credits desc |
| $orderby | length |
| $orderby | length desc |
| $orderby | crew |
| $orderby | crew desc |
| $orderby | passengers |
| $orderby | passengers desc |
| $orderby | max_atmosphering_speed |
| $orderby | max_atmosphering_speed desc |
| $orderby | cargo_capacity |
| $orderby | cargo_capacity desc |
| $orderby | consumables |
| $orderby | consumables desc |
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | name |
| $select | model |
| $select | vehicle_class |
| $select | manufacturer |
| $select | cost_in_credits |
| $select | length |
| $select | crew |
| $select | passengers |
| $select | max_atmosphering_speed |
| $select | cargo_capacity |
| $select | consumables |
| $expand | * |
| $expand | films |
| $expand | pilots |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved vehicles | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Vehicles
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
Retrieves a single vehicle.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Vehicles({ID}) \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Vehicles({ID}) HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Vehicles({ID})',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Vehicles({ID})',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Vehicles({ID})', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Vehicles({ID})', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Vehicles({ID})");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Vehicles({ID})", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Vehicles({ID})
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | name |
| $select | model |
| $select | vehicle_class |
| $select | manufacturer |
| $select | cost_in_credits |
| $select | length |
| $select | crew |
| $select | passengers |
| $select | max_atmosphering_speed |
| $select | cargo_capacity |
| $select | consumables |
| $expand | * |
| $expand | films |
| $expand | pilots |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved vehicle | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Vehicles
| Name | Type | Required | Restrictions | Description |
|---|
Retrieves a list of films of a {i18n> vehicles}.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Vehicles({ID})/films \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Vehicles({ID})/films HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Vehicles({ID})/films',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Vehicles({ID})/films',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Vehicles({ID})/films', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Vehicles({ID})/films', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Vehicles({ID})/films");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Vehicles({ID})/films", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Vehicles({ID})/films
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | film_ID |
| $orderby | film_ID desc |
| $orderby | vehicle_ID |
| $orderby | vehicle_ID desc |
| $orderby | IsActiveEntity |
| $orderby | IsActiveEntity desc |
| $orderby | HasActiveEntity |
| $orderby | HasActiveEntity desc |
| $orderby | HasDraftEntity |
| $orderby | HasDraftEntity desc |
| $select | ID |
| $select | film_ID |
| $select | vehicle_ID |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | film |
| $expand | vehicle |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved films | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Film2Vehicles
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
Retrieves a list of pilots of a {i18n> vehicles}.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Vehicles({ID})/pilots \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Vehicles({ID})/pilots HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Vehicles({ID})/pilots',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Vehicles({ID})/pilots',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Vehicles({ID})/pilots', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Vehicles({ID})/pilots', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Vehicles({ID})/pilots");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Vehicles({ID})/pilots", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Vehicles({ID})/pilots
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | vehicle_ID |
| $orderby | vehicle_ID desc |
| $orderby | pilot_ID |
| $orderby | pilot_ID desc |
| $select | ID |
| $select | vehicle_ID |
| $select | pilot_ID |
| $expand | * |
| $expand | vehicle |
| $expand | pilot |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved pilots | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Vehicle2Pilot
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
Film2People
Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Retrieves a list of film2 people.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2People \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film2People HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2People',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film2People',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film2People', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film2People', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2People");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film2People", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film2People
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | film_ID |
| $orderby | film_ID desc |
| $orderby | people_ID |
| $orderby | people_ID desc |
| $orderby | IsActiveEntity |
| $orderby | IsActiveEntity desc |
| $orderby | HasActiveEntity |
| $orderby | HasActiveEntity desc |
| $orderby | HasDraftEntity |
| $orderby | HasDraftEntity desc |
| $select | ID |
| $select | film_ID |
| $select | people_ID |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | film |
| $expand | people |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved film2 people | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Film2People
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
Creates a single film2 person.
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film2People \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Film2People HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"people_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2People',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Film2People',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Film2People', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Film2People', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2People");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Film2People", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Film2People
Body parameter
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"people_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | StarWarsFilm.Film2People-create | true | Aspect for entities with canonical universal IDs |
Detailed descriptions
body: Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Example responses
201 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | Created film2 person | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 201
See StarWarsFilm.Film2People
| Name | Type | Required | Restrictions | Description |
|---|
Retrieves a single film2 person.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}') \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | film_ID |
| $select | people_ID |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | film |
| $expand | people |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved film2 person | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Film2People
| Name | Type | Required | Restrictions | Description |
|---|
Changes a single film2 person.
Code samples
# You can also use wget
curl -X PATCH /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}') \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'PATCH /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"people_ID": "01234567-89ab-cdef-0123-456789abcdef",
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.patch '/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.patch('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('PATCH','/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("PATCH");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("PATCH", "/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}PATCH /Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')
Body parameter
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"people_ID": "01234567-89ab-cdef-0123-456789abcdef",
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | StarWarsFilm.Film2People-update | true | Aspect for entities with canonical universal IDs |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Detailed descriptions
body: Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Example responses
4XX Response
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
],
"innererror": {}
}
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Success | None |
| 4XX | Unknown | Error | error |
Deletes a single film2 person.
Code samples
# You can also use wget
curl -X DELETE /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}') \
-H 'Accept: application/json'DELETE /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.delete '/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.delete('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('DELETE','/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("DELETE");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("DELETE", "/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}DELETE /Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Example responses
4XX Response
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
],
"innererror": {}
}
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Success | None |
| 4XX | Unknown | Error | error |
Retrieves draft administrative data of a film2 person.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | DraftUUID |
| $select | CreationDateTime |
| $select | CreatedByUser |
| $select | DraftIsCreatedByMe |
| $select | LastChangeDateTime |
| $select | LastChangedByUser |
| $select | InProcessByUser |
| $select | DraftIsProcessedByMe |
Example responses
200 Response
{
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved draft administrative data | StarWarsFilm.DraftAdministrativeData |
| 4XX | Unknown | Error | error |
Changes draft administrative data of a film2 person.
Code samples
# You can also use wget
curl -X PATCH /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'PATCH /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.patch '/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.patch('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('PATCH','/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("PATCH");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("PATCH", "/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}PATCH /Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData
Body parameter
{
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | StarWarsFilm.DraftAdministrativeData-update | true | New property values |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Example responses
4XX Response
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
],
"innererror": {}
}
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Success | None |
| 4XX | Unknown | Error | error |
Deletes draft administrative data of a film2 person.
Code samples
# You can also use wget
curl -X DELETE /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData \
-H 'Accept: application/json'DELETE /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.delete '/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.delete('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('DELETE','/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("DELETE");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("DELETE", "/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}DELETE /Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Example responses
4XX Response
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
],
"innererror": {}
}
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Success | None |
| 4XX | Unknown | Error | error |
Retrieves sibling entity of a film2 person.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | film_ID |
| $select | people_ID |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | film |
| $expand | people |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved sibling entity | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Film2People
| Name | Type | Required | Restrictions | Description |
|---|
Invokes action draftPrepare
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"SideEffectsQualifier": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare
Body parameter
{
"SideEffectsQualifier": "string"
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
| body | body | object | false | Action parameters |
| » SideEffectsQualifier | body | string¦null | false | none |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Retrieves film of a film2 person.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | title |
| $select | episode_id |
| $select | opening_crawl |
| $select | director |
| $select | producer |
| $select | release_date |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | characters |
| $expand | planets |
| $expand | starships |
| $expand | vehicles |
| $expand | species |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved film | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Film
| Name | Type | Required | Restrictions | Description |
|---|
Invokes action draftActivate
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate',
{
method: 'POST',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Invokes action draftEdit
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"PreserveChanges": true
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit
Body parameter
{
"PreserveChanges": true
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
| body | body | object | false | Action parameters |
| » PreserveChanges | body | boolean¦null | false | none |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Retrieves people of a film2 person.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/people \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/people HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/people',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/people',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/people', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/people', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/people");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/people", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/people
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | name |
| $select | height |
| $select | mass |
| $select | hair_color |
| $select | skin_color |
| $select | eye_color |
| $select | birth_year |
| $select | gender |
| $select | scoundrel |
| $select | homeworld_ID |
| $expand | * |
| $expand | homeworld |
| $expand | films |
| $expand | species |
| $expand | vehicles |
| $expand | starships |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved people | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.People
| Name | Type | Required | Restrictions | Description |
|---|
Film2Planets
Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Retrieves a list of film2 planets.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Planets \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film2Planets HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Planets',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film2Planets',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film2Planets', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film2Planets', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Planets");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film2Planets", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film2Planets
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | film_ID |
| $orderby | film_ID desc |
| $orderby | planet_ID |
| $orderby | planet_ID desc |
| $orderby | IsActiveEntity |
| $orderby | IsActiveEntity desc |
| $orderby | HasActiveEntity |
| $orderby | HasActiveEntity desc |
| $orderby | HasDraftEntity |
| $orderby | HasDraftEntity desc |
| $select | ID |
| $select | film_ID |
| $select | planet_ID |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | film |
| $expand | planet |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved film2 planets | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Film2Planets
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
Creates a single film2 planet.
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film2Planets \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Film2Planets HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"planet_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Planets',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Film2Planets',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Film2Planets', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Film2Planets', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Planets");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Film2Planets", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Film2Planets
Body parameter
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"planet_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | StarWarsFilm.Film2Planets-create | true | Aspect for entities with canonical universal IDs |
Detailed descriptions
body: Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Example responses
201 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | Created film2 planet | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 201
See StarWarsFilm.Film2Planets
| Name | Type | Required | Restrictions | Description |
|---|
Retrieves a single film2 planet.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}') \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | film_ID |
| $select | planet_ID |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | film |
| $expand | planet |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved film2 planet | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Film2Planets
| Name | Type | Required | Restrictions | Description |
|---|
Changes a single film2 planet.
Code samples
# You can also use wget
curl -X PATCH /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}') \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'PATCH /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"planet_ID": "01234567-89ab-cdef-0123-456789abcdef",
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.patch '/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.patch('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('PATCH','/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("PATCH");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("PATCH", "/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}PATCH /Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')
Body parameter
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"planet_ID": "01234567-89ab-cdef-0123-456789abcdef",
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | StarWarsFilm.Film2Planets-update | true | Aspect for entities with canonical universal IDs |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Detailed descriptions
body: Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Example responses
4XX Response
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
],
"innererror": {}
}
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Success | None |
| 4XX | Unknown | Error | error |
Deletes a single film2 planet.
Code samples
# You can also use wget
curl -X DELETE /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}') \
-H 'Accept: application/json'DELETE /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.delete '/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.delete('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('DELETE','/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("DELETE");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("DELETE", "/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}DELETE /Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Example responses
4XX Response
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
],
"innererror": {}
}
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Success | None |
| 4XX | Unknown | Error | error |
Retrieves draft administrative data of a film2 planet.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | DraftUUID |
| $select | CreationDateTime |
| $select | CreatedByUser |
| $select | DraftIsCreatedByMe |
| $select | LastChangeDateTime |
| $select | LastChangedByUser |
| $select | InProcessByUser |
| $select | DraftIsProcessedByMe |
Example responses
200 Response
{
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved draft administrative data | StarWarsFilm.DraftAdministrativeData |
| 4XX | Unknown | Error | error |
Changes draft administrative data of a film2 planet.
Code samples
# You can also use wget
curl -X PATCH /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'PATCH /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.patch '/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.patch('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('PATCH','/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("PATCH");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("PATCH", "/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}PATCH /Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData
Body parameter
{
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | StarWarsFilm.DraftAdministrativeData-update | true | New property values |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Example responses
4XX Response
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
],
"innererror": {}
}
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Success | None |
| 4XX | Unknown | Error | error |
Deletes draft administrative data of a film2 planet.
Code samples
# You can also use wget
curl -X DELETE /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData \
-H 'Accept: application/json'DELETE /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.delete '/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.delete('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('DELETE','/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("DELETE");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("DELETE", "/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}DELETE /Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Example responses
4XX Response
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
],
"innererror": {}
}
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Success | None |
| 4XX | Unknown | Error | error |
Retrieves sibling entity of a film2 planet.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | film_ID |
| $select | planet_ID |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | film |
| $expand | planet |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved sibling entity | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Film2Planets
| Name | Type | Required | Restrictions | Description |
|---|
Invokes action draftPrepare
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"SideEffectsQualifier": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare
Body parameter
{
"SideEffectsQualifier": "string"
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
| body | body | object | false | Action parameters |
| » SideEffectsQualifier | body | string¦null | false | none |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Retrieves film of a film2 planet.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | title |
| $select | episode_id |
| $select | opening_crawl |
| $select | director |
| $select | producer |
| $select | release_date |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | characters |
| $expand | planets |
| $expand | starships |
| $expand | vehicles |
| $expand | species |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved film | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Film
| Name | Type | Required | Restrictions | Description |
|---|
Invokes action draftActivate
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate',
{
method: 'POST',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Invokes action draftEdit
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"PreserveChanges": true
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit
Body parameter
{
"PreserveChanges": true
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
| body | body | object | false | Action parameters |
| » PreserveChanges | body | boolean¦null | false | none |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Retrieves planet of a film2 planet.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/planet \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/planet HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/planet',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/planet',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/planet', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/planet', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/planet");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/planet", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/planet
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | name |
| $select | diameter |
| $select | rotation_period |
| $select | orbital_period |
| $select | gravity |
| $select | population |
| $select | climate |
| $select | terrain |
| $select | surface_water |
| $expand | * |
| $expand | films |
| $expand | residents |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved planet | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Planet
| Name | Type | Required | Restrictions | Description |
|---|
Film2Species
Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Retrieves a list of film2 species.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Species \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film2Species HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Species',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film2Species',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film2Species', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film2Species', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Species");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film2Species", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film2Species
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | film_ID |
| $orderby | film_ID desc |
| $orderby | specie_ID |
| $orderby | specie_ID desc |
| $orderby | IsActiveEntity |
| $orderby | IsActiveEntity desc |
| $orderby | HasActiveEntity |
| $orderby | HasActiveEntity desc |
| $orderby | HasDraftEntity |
| $orderby | HasDraftEntity desc |
| $select | ID |
| $select | film_ID |
| $select | specie_ID |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | film |
| $expand | specie |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved film2 species | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Film2Species
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
Creates a single film2 specy.
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film2Species \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Film2Species HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"specie_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Species',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Film2Species',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Film2Species', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Film2Species', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Species");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Film2Species", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Film2Species
Body parameter
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"specie_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | StarWarsFilm.Film2Species-create | true | Aspect for entities with canonical universal IDs |
Detailed descriptions
body: Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Example responses
201 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | Created film2 specy | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 201
See StarWarsFilm.Film2Species
| Name | Type | Required | Restrictions | Description |
|---|
Retrieves a single film2 specy.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}') \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | film_ID |
| $select | specie_ID |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | film |
| $expand | specie |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved film2 specy | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Film2Species
| Name | Type | Required | Restrictions | Description |
|---|
Changes a single film2 specy.
Code samples
# You can also use wget
curl -X PATCH /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}') \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'PATCH /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"specie_ID": "01234567-89ab-cdef-0123-456789abcdef",
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.patch '/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.patch('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('PATCH','/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("PATCH");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("PATCH", "/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}PATCH /Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')
Body parameter
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"specie_ID": "01234567-89ab-cdef-0123-456789abcdef",
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | StarWarsFilm.Film2Species-update | true | Aspect for entities with canonical universal IDs |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Detailed descriptions
body: Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Example responses
4XX Response
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
],
"innererror": {}
}
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Success | None |
| 4XX | Unknown | Error | error |
Deletes a single film2 specy.
Code samples
# You can also use wget
curl -X DELETE /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}') \
-H 'Accept: application/json'DELETE /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.delete '/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.delete('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('DELETE','/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("DELETE");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("DELETE", "/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}DELETE /Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Example responses
4XX Response
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
],
"innererror": {}
}
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Success | None |
| 4XX | Unknown | Error | error |
Retrieves draft administrative data of a film2 specy.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | DraftUUID |
| $select | CreationDateTime |
| $select | CreatedByUser |
| $select | DraftIsCreatedByMe |
| $select | LastChangeDateTime |
| $select | LastChangedByUser |
| $select | InProcessByUser |
| $select | DraftIsProcessedByMe |
Example responses
200 Response
{
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved draft administrative data | StarWarsFilm.DraftAdministrativeData |
| 4XX | Unknown | Error | error |
Changes draft administrative data of a film2 specy.
Code samples
# You can also use wget
curl -X PATCH /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'PATCH /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.patch '/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.patch('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('PATCH','/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("PATCH");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("PATCH", "/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}PATCH /Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData
Body parameter
{
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | StarWarsFilm.DraftAdministrativeData-update | true | New property values |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Example responses
4XX Response
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
],
"innererror": {}
}
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Success | None |
| 4XX | Unknown | Error | error |
Deletes draft administrative data of a film2 specy.
Code samples
# You can also use wget
curl -X DELETE /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData \
-H 'Accept: application/json'DELETE /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.delete '/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.delete('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('DELETE','/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("DELETE");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("DELETE", "/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}DELETE /Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Example responses
4XX Response
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
],
"innererror": {}
}
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Success | None |
| 4XX | Unknown | Error | error |
Retrieves sibling entity of a film2 specy.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | film_ID |
| $select | specie_ID |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | film |
| $expand | specie |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved sibling entity | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Film2Species
| Name | Type | Required | Restrictions | Description |
|---|
Invokes action draftPrepare
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"SideEffectsQualifier": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare
Body parameter
{
"SideEffectsQualifier": "string"
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
| body | body | object | false | Action parameters |
| » SideEffectsQualifier | body | string¦null | false | none |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Retrieves film of a film2 specy.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | title |
| $select | episode_id |
| $select | opening_crawl |
| $select | director |
| $select | producer |
| $select | release_date |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | characters |
| $expand | planets |
| $expand | starships |
| $expand | vehicles |
| $expand | species |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved film | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Film
| Name | Type | Required | Restrictions | Description |
|---|
Invokes action draftActivate
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate',
{
method: 'POST',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Invokes action draftEdit
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"PreserveChanges": true
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit
Body parameter
{
"PreserveChanges": true
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
| body | body | object | false | Action parameters |
| » PreserveChanges | body | boolean¦null | false | none |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Retrieves specie of a film2 specy.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/specie \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/specie HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/specie',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/specie',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/specie', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/specie', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/specie");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/specie", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/specie
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | name |
| $select | classification |
| $select | designation |
| $select | average_height |
| $select | average_lifespan |
| $select | hair_colors |
| $select | skin_colors |
| $select | eye_colors |
| $select | homeworld_ID |
| $select | language |
| $expand | * |
| $expand | homeworld |
| $expand | people |
| $expand | films |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved specie | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Species
| Name | Type | Required | Restrictions | Description |
|---|
Film2Starships
Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Retrieves a list of film2 starships.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Starships \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film2Starships HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Starships',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film2Starships',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film2Starships', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film2Starships', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Starships");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film2Starships", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film2Starships
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | film_ID |
| $orderby | film_ID desc |
| $orderby | starship_ID |
| $orderby | starship_ID desc |
| $orderby | IsActiveEntity |
| $orderby | IsActiveEntity desc |
| $orderby | HasActiveEntity |
| $orderby | HasActiveEntity desc |
| $orderby | HasDraftEntity |
| $orderby | HasDraftEntity desc |
| $select | ID |
| $select | film_ID |
| $select | starship_ID |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | film |
| $expand | starship |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved film2 starships | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Film2Starships
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
Creates a single film2 starship.
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film2Starships \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Film2Starships HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"starship_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Starships',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Film2Starships',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Film2Starships', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Film2Starships', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Starships");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Film2Starships", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Film2Starships
Body parameter
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"starship_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | StarWarsFilm.Film2Starships-create | true | Aspect for entities with canonical universal IDs |
Detailed descriptions
body: Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Example responses
201 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | Created film2 starship | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 201
See StarWarsFilm.Film2Starships
| Name | Type | Required | Restrictions | Description |
|---|
Retrieves a single film2 starship.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}') \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | film_ID |
| $select | starship_ID |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | film |
| $expand | starship |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved film2 starship | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Film2Starships
| Name | Type | Required | Restrictions | Description |
|---|
Changes a single film2 starship.
Code samples
# You can also use wget
curl -X PATCH /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}') \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'PATCH /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"starship_ID": "01234567-89ab-cdef-0123-456789abcdef",
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.patch '/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.patch('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('PATCH','/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("PATCH");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("PATCH", "/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}PATCH /Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')
Body parameter
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"starship_ID": "01234567-89ab-cdef-0123-456789abcdef",
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | StarWarsFilm.Film2Starships-update | true | Aspect for entities with canonical universal IDs |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Detailed descriptions
body: Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Example responses
4XX Response
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
],
"innererror": {}
}
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Success | None |
| 4XX | Unknown | Error | error |
Deletes a single film2 starship.
Code samples
# You can also use wget
curl -X DELETE /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}') \
-H 'Accept: application/json'DELETE /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.delete '/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.delete('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('DELETE','/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("DELETE");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("DELETE", "/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}DELETE /Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Example responses
4XX Response
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
],
"innererror": {}
}
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Success | None |
| 4XX | Unknown | Error | error |
Retrieves draft administrative data of a film2 starship.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | DraftUUID |
| $select | CreationDateTime |
| $select | CreatedByUser |
| $select | DraftIsCreatedByMe |
| $select | LastChangeDateTime |
| $select | LastChangedByUser |
| $select | InProcessByUser |
| $select | DraftIsProcessedByMe |
Example responses
200 Response
{
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved draft administrative data | StarWarsFilm.DraftAdministrativeData |
| 4XX | Unknown | Error | error |
Changes draft administrative data of a film2 starship.
Code samples
# You can also use wget
curl -X PATCH /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'PATCH /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.patch '/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.patch('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('PATCH','/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("PATCH");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("PATCH", "/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}PATCH /Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData
Body parameter
{
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | StarWarsFilm.DraftAdministrativeData-update | true | New property values |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Example responses
4XX Response
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
],
"innererror": {}
}
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Success | None |
| 4XX | Unknown | Error | error |
Deletes draft administrative data of a film2 starship.
Code samples
# You can also use wget
curl -X DELETE /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData \
-H 'Accept: application/json'DELETE /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.delete '/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.delete('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('DELETE','/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("DELETE");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("DELETE", "/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}DELETE /Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Example responses
4XX Response
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
],
"innererror": {}
}
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Success | None |
| 4XX | Unknown | Error | error |
Retrieves sibling entity of a film2 starship.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | film_ID |
| $select | starship_ID |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | film |
| $expand | starship |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved sibling entity | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Film2Starships
| Name | Type | Required | Restrictions | Description |
|---|
Invokes action draftPrepare
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"SideEffectsQualifier": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare
Body parameter
{
"SideEffectsQualifier": "string"
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
| body | body | object | false | Action parameters |
| » SideEffectsQualifier | body | string¦null | false | none |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Retrieves film of a film2 starship.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | title |
| $select | episode_id |
| $select | opening_crawl |
| $select | director |
| $select | producer |
| $select | release_date |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | characters |
| $expand | planets |
| $expand | starships |
| $expand | vehicles |
| $expand | species |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved film | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Film
| Name | Type | Required | Restrictions | Description |
|---|
Invokes action draftActivate
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate',
{
method: 'POST',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Invokes action draftEdit
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"PreserveChanges": true
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit
Body parameter
{
"PreserveChanges": true
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
| body | body | object | false | Action parameters |
| » PreserveChanges | body | boolean¦null | false | none |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Retrieves starship of a film2 starship.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/starship \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/starship HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/starship',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/starship',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/starship', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/starship', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/starship");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/starship", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/starship
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | name |
| $select | model |
| $select | starship_class |
| $select | manufacturer |
| $select | cost_in_credits |
| $select | length |
| $select | crew |
| $select | passengers |
| $select | max_atmosphering_speed |
| $select | hyperdrive_rating |
| $select | MGLT |
| $select | cargo_capacity |
| $select | consumables |
| $expand | * |
| $expand | films |
| $expand | pilots |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved starship | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Starship
| Name | Type | Required | Restrictions | Description |
|---|
Film2Vehicles
Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Retrieves a list of film2 vehicles.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Vehicles \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film2Vehicles HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Vehicles',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film2Vehicles',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film2Vehicles', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film2Vehicles', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Vehicles");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film2Vehicles", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film2Vehicles
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | film_ID |
| $orderby | film_ID desc |
| $orderby | vehicle_ID |
| $orderby | vehicle_ID desc |
| $orderby | IsActiveEntity |
| $orderby | IsActiveEntity desc |
| $orderby | HasActiveEntity |
| $orderby | HasActiveEntity desc |
| $orderby | HasDraftEntity |
| $orderby | HasDraftEntity desc |
| $select | ID |
| $select | film_ID |
| $select | vehicle_ID |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | film |
| $expand | vehicle |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved film2 vehicles | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Film2Vehicles
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
Creates a single film2 vehicle.
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film2Vehicles \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Film2Vehicles HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"vehicle_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Vehicles',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Film2Vehicles',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Film2Vehicles', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Film2Vehicles', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Vehicles");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Film2Vehicles", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Film2Vehicles
Body parameter
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"vehicle_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | StarWarsFilm.Film2Vehicles-create | true | Aspect for entities with canonical universal IDs |
Detailed descriptions
body: Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Example responses
201 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | Created film2 vehicle | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 201
See StarWarsFilm.Film2Vehicles
| Name | Type | Required | Restrictions | Description |
|---|
Retrieves a single film2 vehicle.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}') \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | film_ID |
| $select | vehicle_ID |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | film |
| $expand | vehicle |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved film2 vehicle | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Film2Vehicles
| Name | Type | Required | Restrictions | Description |
|---|
Changes a single film2 vehicle.
Code samples
# You can also use wget
curl -X PATCH /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}') \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'PATCH /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"vehicle_ID": "01234567-89ab-cdef-0123-456789abcdef",
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.patch '/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.patch('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('PATCH','/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("PATCH");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("PATCH", "/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}PATCH /Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')
Body parameter
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"vehicle_ID": "01234567-89ab-cdef-0123-456789abcdef",
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | StarWarsFilm.Film2Vehicles-update | true | Aspect for entities with canonical universal IDs |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Detailed descriptions
body: Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Example responses
4XX Response
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
],
"innererror": {}
}
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Success | None |
| 4XX | Unknown | Error | error |
Deletes a single film2 vehicle.
Code samples
# You can also use wget
curl -X DELETE /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}') \
-H 'Accept: application/json'DELETE /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.delete '/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.delete('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('DELETE','/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("DELETE");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("DELETE", "/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}DELETE /Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Example responses
4XX Response
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
],
"innererror": {}
}
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Success | None |
| 4XX | Unknown | Error | error |
Retrieves draft administrative data of a film2 vehicle.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | DraftUUID |
| $select | CreationDateTime |
| $select | CreatedByUser |
| $select | DraftIsCreatedByMe |
| $select | LastChangeDateTime |
| $select | LastChangedByUser |
| $select | InProcessByUser |
| $select | DraftIsProcessedByMe |
Example responses
200 Response
{
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved draft administrative data | StarWarsFilm.DraftAdministrativeData |
| 4XX | Unknown | Error | error |
Changes draft administrative data of a film2 vehicle.
Code samples
# You can also use wget
curl -X PATCH /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'PATCH /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.patch '/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.patch('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('PATCH','/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("PATCH");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("PATCH", "/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}PATCH /Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData
Body parameter
{
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | StarWarsFilm.DraftAdministrativeData-update | true | New property values |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Example responses
4XX Response
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
],
"innererror": {}
}
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Success | None |
| 4XX | Unknown | Error | error |
Deletes draft administrative data of a film2 vehicle.
Code samples
# You can also use wget
curl -X DELETE /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData \
-H 'Accept: application/json'DELETE /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.delete '/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.delete('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('DELETE','/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("DELETE");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("DELETE", "/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}DELETE /Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Example responses
4XX Response
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
],
"innererror": {}
}
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Success | None |
| 4XX | Unknown | Error | error |
Retrieves sibling entity of a film2 vehicle.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | film_ID |
| $select | vehicle_ID |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | film |
| $expand | vehicle |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved sibling entity | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Film2Vehicles
| Name | Type | Required | Restrictions | Description |
|---|
Invokes action draftPrepare
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"SideEffectsQualifier": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare
Body parameter
{
"SideEffectsQualifier": "string"
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
| body | body | object | false | Action parameters |
| » SideEffectsQualifier | body | string¦null | false | none |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Retrieves film of a film2 vehicle.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | title |
| $select | episode_id |
| $select | opening_crawl |
| $select | director |
| $select | producer |
| $select | release_date |
| $select | IsActiveEntity |
| $select | HasActiveEntity |
| $select | HasDraftEntity |
| $expand | * |
| $expand | characters |
| $expand | planets |
| $expand | starships |
| $expand | vehicles |
| $expand | species |
| $expand | DraftAdministrativeData |
| $expand | SiblingEntity |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved film | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Film
| Name | Type | Required | Restrictions | Description |
|---|
Invokes action draftActivate
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate',
{
method: 'POST',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Invokes action draftEdit
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'POST /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit HTTP/1.1
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"PreserveChanges": true
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit
Body parameter
{
"PreserveChanges": true
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
| body | body | object | false | Action parameters |
| » PreserveChanges | body | boolean¦null | false | none |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Retrieves vehicle of a film2 vehicle.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicle \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicle HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicle',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicle',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicle', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicle', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicle");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicle", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicle
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
| IsActiveEntity | path | boolean | true | key: IsActiveEntity |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | name |
| $select | model |
| $select | vehicle_class |
| $select | manufacturer |
| $select | cost_in_credits |
| $select | length |
| $select | crew |
| $select | passengers |
| $select | max_atmosphering_speed |
| $select | cargo_capacity |
| $select | consumables |
| $expand | * |
| $expand | films |
| $expand | pilots |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved vehicle | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Vehicles
| Name | Type | Required | Restrictions | Description |
|---|
Planet2People
Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Retrieves a list of planet2 people.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Planet2People \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Planet2People HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Planet2People',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Planet2People',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Planet2People', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Planet2People', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Planet2People");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Planet2People", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Planet2People
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | planet_ID |
| $orderby | planet_ID desc |
| $orderby | people_ID |
| $orderby | people_ID desc |
| $select | ID |
| $select | planet_ID |
| $select | people_ID |
| $expand | * |
| $expand | planet |
| $expand | people |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved planet2 people | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Planet2People
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
Retrieves a single planet2 person.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Planet2People({ID}) \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Planet2People({ID}) HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Planet2People({ID})',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Planet2People({ID})',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Planet2People({ID})', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Planet2People({ID})', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Planet2People({ID})");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Planet2People({ID})", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Planet2People({ID})
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | planet_ID |
| $select | people_ID |
| $expand | * |
| $expand | planet |
| $expand | people |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved planet2 person | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Planet2People
| Name | Type | Required | Restrictions | Description |
|---|
Retrieves people of a planet2 person.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Planet2People({ID})/people \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Planet2People({ID})/people HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Planet2People({ID})/people',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Planet2People({ID})/people',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Planet2People({ID})/people', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Planet2People({ID})/people', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Planet2People({ID})/people");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Planet2People({ID})/people", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Planet2People({ID})/people
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | name |
| $select | height |
| $select | mass |
| $select | hair_color |
| $select | skin_color |
| $select | eye_color |
| $select | birth_year |
| $select | gender |
| $select | scoundrel |
| $select | homeworld_ID |
| $expand | * |
| $expand | homeworld |
| $expand | films |
| $expand | species |
| $expand | vehicles |
| $expand | starships |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved people | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.People
| Name | Type | Required | Restrictions | Description |
|---|
Retrieves planet of a planet2 person.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Planet2People({ID})/planet \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Planet2People({ID})/planet HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Planet2People({ID})/planet',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Planet2People({ID})/planet',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Planet2People({ID})/planet', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Planet2People({ID})/planet', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Planet2People({ID})/planet");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Planet2People({ID})/planet", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Planet2People({ID})/planet
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | name |
| $select | diameter |
| $select | rotation_period |
| $select | orbital_period |
| $select | gravity |
| $select | population |
| $select | climate |
| $select | terrain |
| $select | surface_water |
| $expand | * |
| $expand | films |
| $expand | residents |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved planet | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Planet
| Name | Type | Required | Restrictions | Description |
|---|
Species2People
Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Retrieves a list of species2 people.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Species2People \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Species2People HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Species2People',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Species2People',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Species2People', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Species2People', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Species2People");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Species2People", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Species2People
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | species_ID |
| $orderby | species_ID desc |
| $orderby | people_ID |
| $orderby | people_ID desc |
| $select | ID |
| $select | species_ID |
| $select | people_ID |
| $expand | * |
| $expand | species |
| $expand | people |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved species2 people | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Species2People
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
Retrieves a single species2 person.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Species2People({ID}) \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Species2People({ID}) HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Species2People({ID})',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Species2People({ID})',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Species2People({ID})', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Species2People({ID})', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Species2People({ID})");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Species2People({ID})", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Species2People({ID})
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | species_ID |
| $select | people_ID |
| $expand | * |
| $expand | species |
| $expand | people |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved species2 person | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Species2People
| Name | Type | Required | Restrictions | Description |
|---|
Retrieves people of a species2 person.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Species2People({ID})/people \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Species2People({ID})/people HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Species2People({ID})/people',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Species2People({ID})/people',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Species2People({ID})/people', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Species2People({ID})/people', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Species2People({ID})/people");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Species2People({ID})/people", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Species2People({ID})/people
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | name |
| $select | height |
| $select | mass |
| $select | hair_color |
| $select | skin_color |
| $select | eye_color |
| $select | birth_year |
| $select | gender |
| $select | scoundrel |
| $select | homeworld_ID |
| $expand | * |
| $expand | homeworld |
| $expand | films |
| $expand | species |
| $expand | vehicles |
| $expand | starships |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved people | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.People
| Name | Type | Required | Restrictions | Description |
|---|
Retrieves species of a species2 person.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Species2People({ID})/species \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Species2People({ID})/species HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Species2People({ID})/species',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Species2People({ID})/species',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Species2People({ID})/species', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Species2People({ID})/species', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Species2People({ID})/species");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Species2People({ID})/species", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Species2People({ID})/species
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | name |
| $select | classification |
| $select | designation |
| $select | average_height |
| $select | average_lifespan |
| $select | hair_colors |
| $select | skin_colors |
| $select | eye_colors |
| $select | homeworld_ID |
| $select | language |
| $expand | * |
| $expand | homeworld |
| $expand | people |
| $expand | films |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved species | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Species
| Name | Type | Required | Restrictions | Description |
|---|
Starship2Pilot
Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Retrieves a list of starship2 pilot.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Starship2Pilot \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Starship2Pilot HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Starship2Pilot',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Starship2Pilot',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Starship2Pilot', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Starship2Pilot', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Starship2Pilot");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Starship2Pilot", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Starship2Pilot
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | starship_ID |
| $orderby | starship_ID desc |
| $orderby | pilot_ID |
| $orderby | pilot_ID desc |
| $select | ID |
| $select | starship_ID |
| $select | pilot_ID |
| $expand | * |
| $expand | starship |
| $expand | pilot |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved starship2 pilot | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Starship2Pilot
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
Retrieves a single starship2 pilot.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Starship2Pilot({ID}) \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Starship2Pilot({ID}) HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Starship2Pilot({ID})',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Starship2Pilot({ID})',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Starship2Pilot({ID})', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Starship2Pilot({ID})', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Starship2Pilot({ID})");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Starship2Pilot({ID})", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Starship2Pilot({ID})
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | starship_ID |
| $select | pilot_ID |
| $expand | * |
| $expand | starship |
| $expand | pilot |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved starship2 pilot | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Starship2Pilot
| Name | Type | Required | Restrictions | Description |
|---|
Retrieves pilot of a starship2 pilot.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Starship2Pilot({ID})/pilot \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Starship2Pilot({ID})/pilot HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Starship2Pilot({ID})/pilot',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Starship2Pilot({ID})/pilot',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Starship2Pilot({ID})/pilot', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Starship2Pilot({ID})/pilot', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Starship2Pilot({ID})/pilot");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Starship2Pilot({ID})/pilot", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Starship2Pilot({ID})/pilot
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | name |
| $select | height |
| $select | mass |
| $select | hair_color |
| $select | skin_color |
| $select | eye_color |
| $select | birth_year |
| $select | gender |
| $select | scoundrel |
| $select | homeworld_ID |
| $expand | * |
| $expand | homeworld |
| $expand | films |
| $expand | species |
| $expand | vehicles |
| $expand | starships |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved pilot | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.People
| Name | Type | Required | Restrictions | Description |
|---|
Retrieves starship of a starship2 pilot.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Starship2Pilot({ID})/starship \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Starship2Pilot({ID})/starship HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Starship2Pilot({ID})/starship',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Starship2Pilot({ID})/starship',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Starship2Pilot({ID})/starship', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Starship2Pilot({ID})/starship', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Starship2Pilot({ID})/starship");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Starship2Pilot({ID})/starship", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Starship2Pilot({ID})/starship
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | name |
| $select | model |
| $select | starship_class |
| $select | manufacturer |
| $select | cost_in_credits |
| $select | length |
| $select | crew |
| $select | passengers |
| $select | max_atmosphering_speed |
| $select | hyperdrive_rating |
| $select | MGLT |
| $select | cargo_capacity |
| $select | consumables |
| $expand | * |
| $expand | films |
| $expand | pilots |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved starship | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Starship
| Name | Type | Required | Restrictions | Description |
|---|
Vehicle2Pilot
Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Retrieves a list of vehicle2 pilot.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Vehicle2Pilot \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Vehicle2Pilot HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Vehicle2Pilot',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Vehicle2Pilot',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Vehicle2Pilot', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Vehicle2Pilot', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Vehicle2Pilot");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Vehicle2Pilot", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Vehicle2Pilot
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $top | query | integer | false | Show only the first n items, see Paging - Top |
| $skip | query | integer | false | Skip the first n items, see Paging - Skip |
| $search | query | string | false | Search items by search phrases, see Searching |
| $filter | query | string | false | Filter items by property values, see Filtering |
| $count | query | boolean | false | Include count of items, see Count |
| $orderby | query | array[string] | false | Order items by property values, see Sorting |
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
Enumerated Values
| Parameter | Value |
|---|---|
| $orderby | ID |
| $orderby | ID desc |
| $orderby | vehicle_ID |
| $orderby | vehicle_ID desc |
| $orderby | pilot_ID |
| $orderby | pilot_ID desc |
| $select | ID |
| $select | vehicle_ID |
| $select | pilot_ID |
| $expand | * |
| $expand | vehicle |
| $expand | pilot |
Example responses
200 Response
{
"@count": 0,
"value": [
{}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved vehicle2 pilot | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
Collection of Vehicle2Pilot
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » @count | any | false | none | The number of entities in the collection. Available when using the $count query option. |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| »» anonymous | string | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » value | [object] | false | none | none |
Retrieves a single vehicle2 pilot.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Vehicle2Pilot({ID}) \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Vehicle2Pilot({ID}) HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Vehicle2Pilot({ID})',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Vehicle2Pilot({ID})',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Vehicle2Pilot({ID})', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Vehicle2Pilot({ID})', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Vehicle2Pilot({ID})");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Vehicle2Pilot({ID})", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Vehicle2Pilot({ID})
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | vehicle_ID |
| $select | pilot_ID |
| $expand | * |
| $expand | vehicle |
| $expand | pilot |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved vehicle2 pilot | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Vehicle2Pilot
| Name | Type | Required | Restrictions | Description |
|---|
Retrieves pilot of a vehicle2 pilot.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Vehicle2Pilot({ID})/pilot \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Vehicle2Pilot({ID})/pilot HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Vehicle2Pilot({ID})/pilot',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Vehicle2Pilot({ID})/pilot',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Vehicle2Pilot({ID})/pilot', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Vehicle2Pilot({ID})/pilot', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Vehicle2Pilot({ID})/pilot");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Vehicle2Pilot({ID})/pilot", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Vehicle2Pilot({ID})/pilot
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | name |
| $select | height |
| $select | mass |
| $select | hair_color |
| $select | skin_color |
| $select | eye_color |
| $select | birth_year |
| $select | gender |
| $select | scoundrel |
| $select | homeworld_ID |
| $expand | * |
| $expand | homeworld |
| $expand | films |
| $expand | species |
| $expand | vehicles |
| $expand | starships |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved pilot | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.People
| Name | Type | Required | Restrictions | Description |
|---|
Retrieves vehicle of a vehicle2 pilot.
Code samples
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Vehicle2Pilot({ID})/vehicle \
-H 'Accept: application/json'GET /odata/v4/StarWarsFilm/Vehicle2Pilot({ID})/vehicle HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/odata/v4/StarWarsFilm/Vehicle2Pilot({ID})/vehicle',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/odata/v4/StarWarsFilm/Vehicle2Pilot({ID})/vehicle',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/odata/v4/StarWarsFilm/Vehicle2Pilot({ID})/vehicle', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/odata/v4/StarWarsFilm/Vehicle2Pilot({ID})/vehicle', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/Vehicle2Pilot({ID})/vehicle");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/odata/v4/StarWarsFilm/Vehicle2Pilot({ID})/vehicle", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}GET /Vehicle2Pilot({ID})/vehicle
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| $select | query | array[string] | false | Select properties to be returned, see Select |
| $expand | query | array[string] | false | The value of $expand query option is a comma-separated list of navigation property names, stream property names, or $value indicating the stream content of a media-entity. The corresponding related entities and stream values will be represented inline, see Expand |
| ID | path | string(uuid) | true | key: ID |
Enumerated Values
| Parameter | Value |
|---|---|
| $select | ID |
| $select | createdAt |
| $select | createdBy |
| $select | modifiedAt |
| $select | modifiedBy |
| $select | name |
| $select | model |
| $select | vehicle_class |
| $select | manufacturer |
| $select | cost_in_credits |
| $select | length |
| $select | crew |
| $select | passengers |
| $select | max_atmosphering_speed |
| $select | cargo_capacity |
| $select | consumables |
| $expand | * |
| $expand | films |
| $expand | pilots |
Example responses
200 Response
{}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieved vehicle | Inline |
| 4XX | Unknown | Error | error |
Response Schema
Status Code 200
See StarWarsFilm.Vehicles
| Name | Type | Required | Restrictions | Description |
|---|
Batch Requests
Sends a group of requests
Code samples
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/$batch \
-H 'Content-Type: multipart/mixed;boundary=request-separator' \
-H 'Accept: multipart/mixed'POST /odata/v4/StarWarsFilm/$batch HTTP/1.1
Content-Type: multipart/mixed;boundary=request-separator
Accept: multipart/mixedconst inputBody = 'string';
const headers = {
'Content-Type':'multipart/mixed;boundary=request-separator',
'Accept':'multipart/mixed'
};
fetch('/odata/v4/StarWarsFilm/$batch',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'multipart/mixed;boundary=request-separator',
'Accept' => 'multipart/mixed'
}
result = RestClient.post '/odata/v4/StarWarsFilm/$batch',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Content-Type': 'multipart/mixed;boundary=request-separator',
'Accept': 'multipart/mixed'
}
r = requests.post('/odata/v4/StarWarsFilm/$batch', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'multipart/mixed;boundary=request-separator',
'Accept' => 'multipart/mixed',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/odata/v4/StarWarsFilm/$batch', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("/odata/v4/StarWarsFilm/$batch");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"multipart/mixed;boundary=request-separator"},
"Accept": []string{"multipart/mixed"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/odata/v4/StarWarsFilm/$batch", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}POST /$batch
Group multiple requests into a single request payload, see Batch Requests.
Please note that "Try it out" is not supported for this request.
Body parameter
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | string | true | Batch request |
Example responses
200 Response
4XX Response
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
],
"innererror": {}
}
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Batch response | string |
| 4XX | Unknown | Error | error |
Schemas
StarWarsFilm.DraftAdministrativeData
{
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}DraftAdministrativeData
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| DraftUUID | string(uuid) | false | none | none |
| CreationDateTime | string(date-time)¦null | false | none | none |
| CreatedByUser | string¦null | false | none | none |
| DraftIsCreatedByMe | boolean¦null | false | none | none |
| LastChangeDateTime | string(date-time)¦null | false | none | none |
| LastChangedByUser | string¦null | false | none | none |
| InProcessByUser | string¦null | false | none | none |
| DraftIsProcessedByMe | boolean¦null | false | none | none |
StarWarsFilm.DraftAdministrativeData-create
{
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}DraftAdministrativeData (for create)
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| DraftUUID | string(uuid) | true | none | none |
| CreationDateTime | string(date-time)¦null | false | none | none |
| CreatedByUser | string¦null | false | none | none |
| DraftIsCreatedByMe | boolean¦null | false | none | none |
| LastChangeDateTime | string(date-time)¦null | false | none | none |
| LastChangedByUser | string¦null | false | none | none |
| InProcessByUser | string¦null | false | none | none |
| DraftIsProcessedByMe | boolean¦null | false | none | none |
StarWarsFilm.DraftAdministrativeData-update
{
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}DraftAdministrativeData (for update)
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| CreationDateTime | string(date-time)¦null | false | none | none |
| CreatedByUser | string¦null | false | none | none |
| DraftIsCreatedByMe | boolean¦null | false | none | none |
| LastChangeDateTime | string(date-time)¦null | false | none | none |
| LastChangedByUser | string¦null | false | none | none |
| InProcessByUser | string¦null | false | none | none |
| DraftIsProcessedByMe | boolean¦null | false | none | none |
StarWarsFilm.Film
{
"ID": "01234567-89ab-cdef-0123-456789abcdef",
"createdAt": "2017-04-13T15:51:04.0000000Z",
"createdBy": "string",
"modifiedAt": "2017-04-13T15:51:04.0000000Z",
"modifiedBy": "string",
"title": "string",
"episode_id": 0,
"opening_crawl": "string",
"director": "string",
"producer": "string",
"release_date": "2017-04-13",
"characters": [
{}
],
"characters@count": 0,
"planets": [
{}
],
"planets@count": 0,
"starships": [
{}
],
"starships@count": 0,
"vehicles": [
{}
],
"vehicles@count": 0,
"species": [
{}
],
"species@count": 0,
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
},
"SiblingEntity": {}
}All Films in the Star Wars Skywalker Saga
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ID | string(uuid) | false | none | none |
| createdAt | string(date-time)¦null | false | none | none |
| createdBy | string¦null | false | none | none |
| modifiedAt | string(date-time)¦null | false | none | none |
| modifiedBy | string¦null | false | none | none |
| title | string¦null | false | none | none |
| episode_id | integer(int32)¦null | false | none | none |
| opening_crawl | string¦null | false | none | none |
| director | string¦null | false | none | none |
| producer | string¦null | false | none | none |
| release_date | string(date)¦null | false | none | none |
| characters | [object] | false | none | none |
| characters@count | count | false | none | The number of entities in the collection. Available when using the $count query option. |
| planets | [object] | false | none | none |
| planets@count | count | false | none | The number of entities in the collection. Available when using the $count query option. |
| starships | [object] | false | none | none |
| starships@count | count | false | none | The number of entities in the collection. Available when using the $count query option. |
| vehicles | [object] | false | none | none |
| vehicles@count | count | false | none | The number of entities in the collection. Available when using the $count query option. |
| species | [object] | false | none | none |
| species@count | count | false | none | The number of entities in the collection. Available when using the $count query option. |
| IsActiveEntity | boolean | false | none | none |
| HasActiveEntity | boolean | false | none | none |
| HasDraftEntity | boolean | false | none | none |
| DraftAdministrativeData | StarWarsFilm.DraftAdministrativeData¦null | false | none | none |
| SiblingEntity | object¦null | false | none | See StarWarsFilm.Film |
StarWarsFilm.Film-create
{
"title": "string",
"episode_id": 0,
"opening_crawl": "string",
"director": "string",
"producer": "string",
"release_date": "2017-04-13",
"characters": [
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"people_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}
],
"planets": [
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"planet_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}
],
"starships": [
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"starship_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}
],
"vehicles": [
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"vehicle_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}
],
"species": [
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"specie_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}
],
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}All Films in the Star Wars Skywalker Saga (for create)
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| title | string¦null | false | none | none |
| episode_id | integer(int32)¦null | false | none | none |
| opening_crawl | string¦null | false | none | none |
| director | string¦null | false | none | none |
| producer | string¦null | false | none | none |
| release_date | string(date)¦null | false | none | none |
| characters | [StarWarsFilm.Film2People-create] | false | none | none |
| planets | [StarWarsFilm.Film2Planets-create] | false | none | none |
| starships | [StarWarsFilm.Film2Starships-create] | false | none | none |
| vehicles | [StarWarsFilm.Film2Vehicles-create] | false | none | none |
| species | [StarWarsFilm.Film2Species-create] | false | none | none |
| IsActiveEntity | boolean | true | none | none |
| HasActiveEntity | boolean | false | none | none |
| HasDraftEntity | boolean | false | none | none |
| DraftAdministrativeData | StarWarsFilm.DraftAdministrativeData-create¦null | false | none | none |
StarWarsFilm.Film-update
{
"title": "string",
"episode_id": 0,
"opening_crawl": "string",
"director": "string",
"producer": "string",
"release_date": "2017-04-13",
"characters": [
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"people_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}
],
"planets": [
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"planet_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}
],
"starships": [
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"starship_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}
],
"vehicles": [
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"vehicle_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}
],
"species": [
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"specie_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}
],
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}All Films in the Star Wars Skywalker Saga (for update)
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| title | string¦null | false | none | none |
| episode_id | integer(int32)¦null | false | none | none |
| opening_crawl | string¦null | false | none | none |
| director | string¦null | false | none | none |
| producer | string¦null | false | none | none |
| release_date | string(date)¦null | false | none | none |
| characters | [StarWarsFilm.Film2People-create] | false | none | none |
| planets | [StarWarsFilm.Film2Planets-create] | false | none | none |
| starships | [StarWarsFilm.Film2Starships-create] | false | none | none |
| vehicles | [StarWarsFilm.Film2Vehicles-create] | false | none | none |
| species | [StarWarsFilm.Film2Species-create] | false | none | none |
| HasActiveEntity | boolean | false | none | none |
| HasDraftEntity | boolean | false | none | none |
| DraftAdministrativeData | StarWarsFilm.DraftAdministrativeData-create¦null | false | none | none |
StarWarsFilm.Film2People
{
"ID": "01234567-89ab-cdef-0123-456789abcdef",
"film": {},
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"people": {},
"people_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
},
"SiblingEntity": {}
}Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ID | string(uuid) | false | none | none |
| film | object¦null | false | none | See StarWarsFilm.Film |
| film_ID | string(uuid)¦null | false | none | none |
| people | object¦null | false | none | See StarWarsFilm.People |
| people_ID | string(uuid)¦null | false | none | none |
| IsActiveEntity | boolean | false | none | none |
| HasActiveEntity | boolean | false | none | none |
| HasDraftEntity | boolean | false | none | none |
| DraftAdministrativeData | StarWarsFilm.DraftAdministrativeData¦null | false | none | none |
| SiblingEntity | object¦null | false | none | See StarWarsFilm.Film2People |
StarWarsFilm.Film2People-create
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"people_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid (for create)
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| film_ID | string(uuid)¦null | false | none | none |
| people_ID | string(uuid)¦null | false | none | none |
| IsActiveEntity | boolean | true | none | none |
| HasActiveEntity | boolean | false | none | none |
| HasDraftEntity | boolean | false | none | none |
| DraftAdministrativeData | StarWarsFilm.DraftAdministrativeData-create¦null | false | none | none |
StarWarsFilm.Film2People-update
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"people_ID": "01234567-89ab-cdef-0123-456789abcdef",
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid (for update)
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| film_ID | string(uuid)¦null | false | none | none |
| people_ID | string(uuid)¦null | false | none | none |
| HasActiveEntity | boolean | false | none | none |
| HasDraftEntity | boolean | false | none | none |
| DraftAdministrativeData | StarWarsFilm.DraftAdministrativeData-create¦null | false | none | none |
StarWarsFilm.Film2Planets
{
"ID": "01234567-89ab-cdef-0123-456789abcdef",
"film": {},
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"planet": {},
"planet_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
},
"SiblingEntity": {}
}Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ID | string(uuid) | false | none | none |
| film | object¦null | false | none | See StarWarsFilm.Film |
| film_ID | string(uuid)¦null | false | none | none |
| planet | object¦null | false | none | See StarWarsFilm.Planet |
| planet_ID | string(uuid)¦null | false | none | none |
| IsActiveEntity | boolean | false | none | none |
| HasActiveEntity | boolean | false | none | none |
| HasDraftEntity | boolean | false | none | none |
| DraftAdministrativeData | StarWarsFilm.DraftAdministrativeData¦null | false | none | none |
| SiblingEntity | object¦null | false | none | See StarWarsFilm.Film2Planets |
StarWarsFilm.Film2Planets-create
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"planet_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid (for create)
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| film_ID | string(uuid)¦null | false | none | none |
| planet_ID | string(uuid)¦null | false | none | none |
| IsActiveEntity | boolean | true | none | none |
| HasActiveEntity | boolean | false | none | none |
| HasDraftEntity | boolean | false | none | none |
| DraftAdministrativeData | StarWarsFilm.DraftAdministrativeData-create¦null | false | none | none |
StarWarsFilm.Film2Planets-update
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"planet_ID": "01234567-89ab-cdef-0123-456789abcdef",
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid (for update)
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| film_ID | string(uuid)¦null | false | none | none |
| planet_ID | string(uuid)¦null | false | none | none |
| HasActiveEntity | boolean | false | none | none |
| HasDraftEntity | boolean | false | none | none |
| DraftAdministrativeData | StarWarsFilm.DraftAdministrativeData-create¦null | false | none | none |
StarWarsFilm.Film2Species
{
"ID": "01234567-89ab-cdef-0123-456789abcdef",
"film": {},
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"specie": {},
"specie_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
},
"SiblingEntity": {}
}Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ID | string(uuid) | false | none | none |
| film | object¦null | false | none | See StarWarsFilm.Film |
| film_ID | string(uuid)¦null | false | none | none |
| specie | object¦null | false | none | See StarWarsFilm.Species |
| specie_ID | string(uuid)¦null | false | none | none |
| IsActiveEntity | boolean | false | none | none |
| HasActiveEntity | boolean | false | none | none |
| HasDraftEntity | boolean | false | none | none |
| DraftAdministrativeData | StarWarsFilm.DraftAdministrativeData¦null | false | none | none |
| SiblingEntity | object¦null | false | none | See StarWarsFilm.Film2Species |
StarWarsFilm.Film2Species-create
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"specie_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid (for create)
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| film_ID | string(uuid)¦null | false | none | none |
| specie_ID | string(uuid)¦null | false | none | none |
| IsActiveEntity | boolean | true | none | none |
| HasActiveEntity | boolean | false | none | none |
| HasDraftEntity | boolean | false | none | none |
| DraftAdministrativeData | StarWarsFilm.DraftAdministrativeData-create¦null | false | none | none |
StarWarsFilm.Film2Species-update
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"specie_ID": "01234567-89ab-cdef-0123-456789abcdef",
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid (for update)
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| film_ID | string(uuid)¦null | false | none | none |
| specie_ID | string(uuid)¦null | false | none | none |
| HasActiveEntity | boolean | false | none | none |
| HasDraftEntity | boolean | false | none | none |
| DraftAdministrativeData | StarWarsFilm.DraftAdministrativeData-create¦null | false | none | none |
StarWarsFilm.Film2Starships
{
"ID": "01234567-89ab-cdef-0123-456789abcdef",
"film": {},
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"starship": {},
"starship_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
},
"SiblingEntity": {}
}Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ID | string(uuid) | false | none | none |
| film | object¦null | false | none | See StarWarsFilm.Film |
| film_ID | string(uuid)¦null | false | none | none |
| starship | object¦null | false | none | See StarWarsFilm.Starship |
| starship_ID | string(uuid)¦null | false | none | none |
| IsActiveEntity | boolean | false | none | none |
| HasActiveEntity | boolean | false | none | none |
| HasDraftEntity | boolean | false | none | none |
| DraftAdministrativeData | StarWarsFilm.DraftAdministrativeData¦null | false | none | none |
| SiblingEntity | object¦null | false | none | See StarWarsFilm.Film2Starships |
StarWarsFilm.Film2Starships-create
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"starship_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid (for create)
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| film_ID | string(uuid)¦null | false | none | none |
| starship_ID | string(uuid)¦null | false | none | none |
| IsActiveEntity | boolean | true | none | none |
| HasActiveEntity | boolean | false | none | none |
| HasDraftEntity | boolean | false | none | none |
| DraftAdministrativeData | StarWarsFilm.DraftAdministrativeData-create¦null | false | none | none |
StarWarsFilm.Film2Starships-update
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"starship_ID": "01234567-89ab-cdef-0123-456789abcdef",
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid (for update)
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| film_ID | string(uuid)¦null | false | none | none |
| starship_ID | string(uuid)¦null | false | none | none |
| HasActiveEntity | boolean | false | none | none |
| HasDraftEntity | boolean | false | none | none |
| DraftAdministrativeData | StarWarsFilm.DraftAdministrativeData-create¦null | false | none | none |
StarWarsFilm.Film2Vehicles
{
"ID": "01234567-89ab-cdef-0123-456789abcdef",
"film": {},
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"vehicle": {},
"vehicle_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
},
"SiblingEntity": {}
}Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ID | string(uuid) | false | none | none |
| film | object¦null | false | none | See StarWarsFilm.Film |
| film_ID | string(uuid)¦null | false | none | none |
| vehicle | object¦null | false | none | See StarWarsFilm.Vehicles |
| vehicle_ID | string(uuid)¦null | false | none | none |
| IsActiveEntity | boolean | false | none | none |
| HasActiveEntity | boolean | false | none | none |
| HasDraftEntity | boolean | false | none | none |
| DraftAdministrativeData | StarWarsFilm.DraftAdministrativeData¦null | false | none | none |
| SiblingEntity | object¦null | false | none | See StarWarsFilm.Film2Vehicles |
StarWarsFilm.Film2Vehicles-create
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"vehicle_ID": "01234567-89ab-cdef-0123-456789abcdef",
"IsActiveEntity": true,
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid (for create)
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| film_ID | string(uuid)¦null | false | none | none |
| vehicle_ID | string(uuid)¦null | false | none | none |
| IsActiveEntity | boolean | true | none | none |
| HasActiveEntity | boolean | false | none | none |
| HasDraftEntity | boolean | false | none | none |
| DraftAdministrativeData | StarWarsFilm.DraftAdministrativeData-create¦null | false | none | none |
StarWarsFilm.Film2Vehicles-update
{
"film_ID": "01234567-89ab-cdef-0123-456789abcdef",
"vehicle_ID": "01234567-89ab-cdef-0123-456789abcdef",
"HasActiveEntity": false,
"HasDraftEntity": false,
"DraftAdministrativeData": {
"DraftUUID": "01234567-89ab-cdef-0123-456789abcdef",
"CreationDateTime": "2017-04-13T15:51:04.0000000Z",
"CreatedByUser": "string",
"DraftIsCreatedByMe": true,
"LastChangeDateTime": "2017-04-13T15:51:04.0000000Z",
"LastChangedByUser": "string",
"InProcessByUser": "string",
"DraftIsProcessedByMe": true
}
}Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid (for update)
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| film_ID | string(uuid)¦null | false | none | none |
| vehicle_ID | string(uuid)¦null | false | none | none |
| HasActiveEntity | boolean | false | none | none |
| HasDraftEntity | boolean | false | none | none |
| DraftAdministrativeData | StarWarsFilm.DraftAdministrativeData-create¦null | false | none | none |
StarWarsFilm.FilmEpisodeDesc
{
"ID": "01234567-89ab-cdef-0123-456789abcdef",
"episode_id": 0,
"title": "string",
"episodeIDDesc": "string"
}All Films in the Star Wars Skywalker Saga
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ID | string(uuid) | false | none | none |
| episode_id | integer(int32)¦null | false | none | none |
| title | string¦null | false | none | none |
| episodeIDDesc | string¦null | false | none | none |
StarWarsFilm.People
{
"ID": "01234567-89ab-cdef-0123-456789abcdef",
"createdAt": "2017-04-13T15:51:04.0000000Z",
"createdBy": "string",
"modifiedAt": "2017-04-13T15:51:04.0000000Z",
"modifiedBy": "string",
"name": "string",
"height": "Test",
"mass": "string",
"hair_color": "string",
"skin_color": "string",
"eye_color": "string",
"birth_year": "string",
"gender": "string",
"scoundrel": false,
"homeworld": {},
"homeworld_ID": "01234567-89ab-cdef-0123-456789abcdef",
"films": [
{}
],
"films@count": 0,
"species": [
{}
],
"species@count": 0,
"vehicles": [
{}
],
"vehicles@count": 0,
"starships": [
{}
],
"starships@count": 0
}All People and Aliens in Star Wars
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ID | string(uuid) | false | none | none |
| createdAt | string(date-time)¦null | false | none | none |
| createdBy | string¦null | false | none | none |
| modifiedAt | string(date-time)¦null | false | none | none |
| modifiedBy | string¦null | false | none | none |
| name | string¦null | false | none | none |
| height | string¦null | false | none | none |
| mass | string¦null | false | none | none |
| hair_color | string¦null | false | none | none |
| skin_color | string¦null | false | none | none |
| eye_color | string¦null | false | none | none |
| birth_year | string¦null | false | none | none |
| gender | string¦null | false | none | none |
| scoundrel | boolean¦null | false | none | none |
| homeworld | object¦null | false | none | See StarWarsFilm.Planet |
| homeworld_ID | string(uuid)¦null | false | none | none |
| films | [object] | false | none | none |
| films@count | count | false | none | The number of entities in the collection. Available when using the $count query option. |
| species | [object] | false | none | none |
| species@count | count | false | none | The number of entities in the collection. Available when using the $count query option. |
| vehicles | [object] | false | none | none |
| vehicles@count | count | false | none | The number of entities in the collection. Available when using the $count query option. |
| starships | [object] | false | none | none |
| starships@count | count | false | none | The number of entities in the collection. Available when using the $count query option. |
StarWarsFilm.Planet
{
"ID": "01234567-89ab-cdef-0123-456789abcdef",
"createdAt": "2017-04-13T15:51:04.0000000Z",
"createdBy": "string",
"modifiedAt": "2017-04-13T15:51:04.0000000Z",
"modifiedBy": "string",
"name": "string",
"diameter": "string",
"rotation_period": "string",
"orbital_period": "string",
"gravity": "string",
"population": "string",
"climate": "string",
"terrain": "string",
"surface_water": "string",
"films": [
{}
],
"films@count": 0,
"residents": [
{}
],
"residents@count": 0
}Aspect to capture changes by user and name
See https://cap.cloud.sap/docs/cds/common#aspect-managed
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ID | string(uuid) | false | none | none |
| createdAt | string(date-time)¦null | false | none | none |
| createdBy | string¦null | false | none | none |
| modifiedAt | string(date-time)¦null | false | none | none |
| modifiedBy | string¦null | false | none | none |
| name | string¦null | false | none | none |
| diameter | string¦null | false | none | none |
| rotation_period | string¦null | false | none | none |
| orbital_period | string¦null | false | none | none |
| gravity | string¦null | false | none | none |
| population | string¦null | false | none | none |
| climate | string¦null | false | none | none |
| terrain | string¦null | false | none | none |
| surface_water | string¦null | false | none | none |
| films | [object] | false | none | none |
| films@count | count | false | none | The number of entities in the collection. Available when using the $count query option. |
| residents | [object] | false | none | none |
| residents@count | count | false | none | The number of entities in the collection. Available when using the $count query option. |
StarWarsFilm.Planet2People
{
"ID": "01234567-89ab-cdef-0123-456789abcdef",
"planet": {},
"planet_ID": "01234567-89ab-cdef-0123-456789abcdef",
"people": {},
"people_ID": "01234567-89ab-cdef-0123-456789abcdef"
}Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ID | string(uuid) | false | none | none |
| planet | object¦null | false | none | See StarWarsFilm.Planet |
| planet_ID | string(uuid)¦null | false | none | none |
| people | object¦null | false | none | See StarWarsFilm.People |
| people_ID | string(uuid)¦null | false | none | none |
StarWarsFilm.Planet2People-create
{
"planet_ID": "01234567-89ab-cdef-0123-456789abcdef",
"people_ID": "01234567-89ab-cdef-0123-456789abcdef"
}Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid (for create)
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| planet_ID | string(uuid)¦null | false | none | none |
| people_ID | string(uuid)¦null | false | none | none |
StarWarsFilm.Species
{
"ID": "01234567-89ab-cdef-0123-456789abcdef",
"createdAt": "2017-04-13T15:51:04.0000000Z",
"createdBy": "string",
"modifiedAt": "2017-04-13T15:51:04.0000000Z",
"modifiedBy": "string",
"name": "string",
"classification": "string",
"designation": "string",
"average_height": "string",
"average_lifespan": "string",
"hair_colors": "string",
"skin_colors": "string",
"eye_colors": "string",
"homeworld": {},
"homeworld_ID": "01234567-89ab-cdef-0123-456789abcdef",
"language": "string",
"people": [
{}
],
"people@count": 0,
"films": [
{}
],
"films@count": 0
}Aspect to capture changes by user and name
See https://cap.cloud.sap/docs/cds/common#aspect-managed
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ID | string(uuid) | false | none | none |
| createdAt | string(date-time)¦null | false | none | none |
| createdBy | string¦null | false | none | none |
| modifiedAt | string(date-time)¦null | false | none | none |
| modifiedBy | string¦null | false | none | none |
| name | string¦null | false | none | none |
| classification | string¦null | false | none | none |
| designation | string¦null | false | none | none |
| average_height | string¦null | false | none | none |
| average_lifespan | string¦null | false | none | none |
| hair_colors | string¦null | false | none | none |
| skin_colors | string¦null | false | none | none |
| eye_colors | string¦null | false | none | none |
| homeworld | object¦null | false | none | See StarWarsFilm.Planet |
| homeworld_ID | string(uuid)¦null | false | none | none |
| language | string¦null | false | none | none |
| people | [object] | false | none | none |
| people@count | count | false | none | The number of entities in the collection. Available when using the $count query option. |
| films | [object] | false | none | none |
| films@count | count | false | none | The number of entities in the collection. Available when using the $count query option. |
StarWarsFilm.Species2People
{
"ID": "01234567-89ab-cdef-0123-456789abcdef",
"species": {},
"species_ID": "01234567-89ab-cdef-0123-456789abcdef",
"people": {},
"people_ID": "01234567-89ab-cdef-0123-456789abcdef"
}Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ID | string(uuid) | false | none | none |
| species | object¦null | false | none | See StarWarsFilm.Species |
| species_ID | string(uuid)¦null | false | none | none |
| people | object¦null | false | none | See StarWarsFilm.People |
| people_ID | string(uuid)¦null | false | none | none |
StarWarsFilm.Species2People-create
{
"species_ID": "01234567-89ab-cdef-0123-456789abcdef",
"people_ID": "01234567-89ab-cdef-0123-456789abcdef"
}Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid (for create)
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| species_ID | string(uuid)¦null | false | none | none |
| people_ID | string(uuid)¦null | false | none | none |
StarWarsFilm.Starship
{
"ID": "01234567-89ab-cdef-0123-456789abcdef",
"createdAt": "2017-04-13T15:51:04.0000000Z",
"createdBy": "string",
"modifiedAt": "2017-04-13T15:51:04.0000000Z",
"modifiedBy": "string",
"name": "string",
"model": "string",
"starship_class": "string",
"manufacturer": "string",
"cost_in_credits": "string",
"length": "string",
"crew": "string",
"passengers": "string",
"max_atmosphering_speed": "string",
"hyperdrive_rating": "string",
"MGLT": "string",
"cargo_capacity": "string",
"consumables": "string",
"films": [
{}
],
"films@count": 0,
"pilots": [
{}
],
"pilots@count": 0
}Aspect to capture changes by user and name
See https://cap.cloud.sap/docs/cds/common#aspect-managed
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ID | string(uuid) | false | none | none |
| createdAt | string(date-time)¦null | false | none | none |
| createdBy | string¦null | false | none | none |
| modifiedAt | string(date-time)¦null | false | none | none |
| modifiedBy | string¦null | false | none | none |
| name | string¦null | false | none | none |
| model | string¦null | false | none | none |
| starship_class | string¦null | false | none | none |
| manufacturer | string¦null | false | none | none |
| cost_in_credits | string¦null | false | none | none |
| length | string¦null | false | none | none |
| crew | string¦null | false | none | none |
| passengers | string¦null | false | none | none |
| max_atmosphering_speed | string¦null | false | none | none |
| hyperdrive_rating | string¦null | false | none | none |
| MGLT | string¦null | false | none | none |
| cargo_capacity | string¦null | false | none | none |
| consumables | string¦null | false | none | none |
| films | [object] | false | none | none |
| films@count | count | false | none | The number of entities in the collection. Available when using the $count query option. |
| pilots | [object] | false | none | none |
| pilots@count | count | false | none | The number of entities in the collection. Available when using the $count query option. |
StarWarsFilm.Starship2Pilot
{
"ID": "01234567-89ab-cdef-0123-456789abcdef",
"starship": {},
"starship_ID": "01234567-89ab-cdef-0123-456789abcdef",
"pilot": {},
"pilot_ID": "01234567-89ab-cdef-0123-456789abcdef"
}Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ID | string(uuid) | false | none | none |
| starship | object¦null | false | none | See StarWarsFilm.Starship |
| starship_ID | string(uuid)¦null | false | none | none |
| pilot | object¦null | false | none | See StarWarsFilm.People |
| pilot_ID | string(uuid)¦null | false | none | none |
StarWarsFilm.Vehicle2Pilot
{
"ID": "01234567-89ab-cdef-0123-456789abcdef",
"vehicle": {},
"vehicle_ID": "01234567-89ab-cdef-0123-456789abcdef",
"pilot": {},
"pilot_ID": "01234567-89ab-cdef-0123-456789abcdef"
}Aspect for entities with canonical universal IDs
See https://cap.cloud.sap/docs/cds/common#aspect-cuid
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ID | string(uuid) | false | none | none |
| vehicle | object¦null | false | none | See StarWarsFilm.Vehicles |
| vehicle_ID | string(uuid)¦null | false | none | none |
| pilot | object¦null | false | none | See StarWarsFilm.People |
| pilot_ID | string(uuid)¦null | false | none | none |
StarWarsFilm.Vehicles
{
"ID": "01234567-89ab-cdef-0123-456789abcdef",
"createdAt": "2017-04-13T15:51:04.0000000Z",
"createdBy": "string",
"modifiedAt": "2017-04-13T15:51:04.0000000Z",
"modifiedBy": "string",
"name": "string",
"model": "string",
"vehicle_class": "string",
"manufacturer": "string",
"cost_in_credits": "string",
"length": "string",
"crew": "string",
"passengers": "string",
"max_atmosphering_speed": "string",
"cargo_capacity": "string",
"consumables": "string",
"films": [
{}
],
"films@count": 0,
"pilots": [
{}
],
"pilots@count": 0
}Aspect to capture changes by user and name
See https://cap.cloud.sap/docs/cds/common#aspect-managed
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ID | string(uuid) | false | none | none |
| createdAt | string(date-time)¦null | false | none | none |
| createdBy | string¦null | false | none | none |
| modifiedAt | string(date-time)¦null | false | none | none |
| modifiedBy | string¦null | false | none | none |
| name | string¦null | false | none | none |
| model | string¦null | false | none | none |
| vehicle_class | string¦null | false | none | none |
| manufacturer | string¦null | false | none | none |
| cost_in_credits | string¦null | false | none | none |
| length | string¦null | false | none | none |
| crew | string¦null | false | none | none |
| passengers | string¦null | false | none | none |
| max_atmosphering_speed | string¦null | false | none | none |
| cargo_capacity | string¦null | false | none | none |
| consumables | string¦null | false | none | none |
| films | [object] | false | none | none |
| films@count | count | false | none | The number of entities in the collection. Available when using the $count query option. |
| pilots | [object] | false | none | none |
| pilots@count | count | false | none | The number of entities in the collection. Available when using the $count query option. |
StarWarsFilm.directors
{
"director": "string"
}All Films in the Star Wars Skywalker Saga
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| director | string | false | none | none |
StarWarsFilm.producers
{
"producer": "string"
}All Films in the Star Wars Skywalker Saga
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| producer | string | false | none | none |
count
0The number of entities in the collection. Available when using the $count query option.
Properties
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| anonymous | number | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| anonymous | string | false | none | none |
error
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
],
"innererror": {}
}
}Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| error | object | true | none | none |
| » code | string | true | none | none |
| » message | string | true | none | none |
| » target | string | false | none | none |
| » details | [object] | false | none | none |
| »» code | string | true | none | none |
| »» message | string | true | none | none |
| »» target | string | false | none | none |
| » innererror | object | false | none | The structure of this object is service-specific |