Skip to content

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

ER Diagram

Legend

Legend

Base URLs:

{i18n>Film}

All Films in the Star Wars Skywalker Saga

Retrieves a list of film.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/odata/v4/StarWarsFilm/Film',
  params: {
  }, headers: headers

p JSON.parse(result)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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

ParameterValue
$orderbyID
$orderbyID desc
$orderbycreatedAt
$orderbycreatedAt desc
$orderbycreatedBy
$orderbycreatedBy desc
$orderbymodifiedAt
$orderbymodifiedAt desc
$orderbymodifiedBy
$orderbymodifiedBy desc
$orderbytitle
$orderbytitle desc
$orderbyepisode_id
$orderbyepisode_id desc
$orderbyopening_crawl
$orderbyopening_crawl desc
$orderbydirector
$orderbydirector desc
$orderbyproducer
$orderbyproducer desc
$orderbyrelease_date
$orderbyrelease_date desc
$orderbyIsActiveEntity
$orderbyIsActiveEntity desc
$orderbyHasActiveEntity
$orderbyHasActiveEntity desc
$orderbyHasDraftEntity
$orderbyHasDraftEntity desc
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selecttitle
$selectepisode_id
$selectopening_crawl
$selectdirector
$selectproducer
$selectrelease_date
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandcharacters
$expandplanets
$expandstarships
$expandvehicles
$expandspecies
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved filmInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Film

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

Creates a single film.

Code samples

shell
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'
http
POST /odata/v4/StarWarsFilm/Film HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

r = requests.post('/odata/v4/StarWarsFilm/Film', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

json
{
  "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

NameInTypeRequiredDescription
bodybodyStarWarsFilm.Film-createtrueAll Films in the Star Wars Skywalker Saga

Example responses

201 Response

json
{}

Responses

StatusMeaningDescriptionSchema
201CreatedCreated filmInline
4XXUnknownErrorerror

Response Schema

Status Code 201

See StarWarsFilm.Film

NameTypeRequiredRestrictionsDescription

Retrieves a single film.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}') \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selecttitle
$selectepisode_id
$selectopening_crawl
$selectdirector
$selectproducer
$selectrelease_date
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandcharacters
$expandplanets
$expandstarships
$expandvehicles
$expandspecies
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved filmInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Film

NameTypeRequiredRestrictionsDescription

Changes a single film.

Code samples

shell
# 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'
http
PATCH /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "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

NameInTypeRequiredDescription
bodybodyStarWarsFilm.Film-updatetrueAll Films in the Star Wars Skywalker Saga
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Example responses

4XX Response

json
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ],
    "innererror": {}
  }
}

Responses

StatusMeaningDescriptionSchema
204No ContentSuccessNone
4XXUnknownErrorerror

Deletes a single film.

Code samples

shell
# You can also use wget
curl -X DELETE /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}') \
  -H 'Accept: application/json'
http
DELETE /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.delete('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Example responses

4XX Response

json
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ],
    "innererror": {}
  }
}

Responses

StatusMeaningDescriptionSchema
204No ContentSuccessNone
4XXUnknownErrorerror

Retrieves draft administrative data of a {i18n> film}.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$selectDraftUUID
$selectCreationDateTime
$selectCreatedByUser
$selectDraftIsCreatedByMe
$selectLastChangeDateTime
$selectLastChangedByUser
$selectInProcessByUser
$selectDraftIsProcessedByMe

Example responses

200 Response

json
{
  "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

StatusMeaningDescriptionSchema
200OKRetrieved draft administrative dataStarWarsFilm.DraftAdministrativeData
4XXUnknownErrorerror

Changes draft administrative data of a {i18n> film}.

Code samples

shell
# 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'
http
PATCH /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "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

NameInTypeRequiredDescription
bodybodyStarWarsFilm.DraftAdministrativeData-updatetrueNew property values
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Example responses

4XX Response

json
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ],
    "innererror": {}
  }
}

Responses

StatusMeaningDescriptionSchema
204No ContentSuccessNone
4XXUnknownErrorerror

Deletes draft administrative data of a {i18n> film}.

Code samples

shell
# You can also use wget
curl -X DELETE /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData \
  -H 'Accept: application/json'
http
DELETE /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.delete('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Example responses

4XX Response

json
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ],
    "innererror": {}
  }
}

Responses

StatusMeaningDescriptionSchema
204No ContentSuccessNone
4XXUnknownErrorerror

Retrieves sibling entity of a {i18n> film}.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selecttitle
$selectepisode_id
$selectopening_crawl
$selectdirector
$selectproducer
$selectrelease_date
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandcharacters
$expandplanets
$expandstarships
$expandvehicles
$expandspecies
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved sibling entityInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Film

NameTypeRequiredRestrictionsDescription

Invokes action draftActivate

Code samples

shell
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftActivate \
  -H 'Accept: application/json'
http
POST /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftActivate HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKSuccessInline
4XXUnknownErrorerror

Response Schema

Invokes action draftEdit

Code samples

shell
# 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'
http
POST /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftEdit HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "PreserveChanges": true
}

Parameters

NameInTypeRequiredDescription
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity
bodybodyobjectfalseAction parameters
» PreserveChangesbodyboolean¦nullfalsenone

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKSuccessInline
4XXUnknownErrorerror

Response Schema

Invokes action draftPrepare

Code samples

shell
# 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'
http
POST /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/StarWarsFilm.draftPrepare HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "SideEffectsQualifier": "string"
}

Parameters

NameInTypeRequiredDescription
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity
bodybodyobjectfalseAction parameters
» SideEffectsQualifierbodystring¦nullfalsenone

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKSuccessInline
4XXUnknownErrorerror

Response Schema

Retrieves a list of characters of a {i18n> film}.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/characters \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/characters HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/characters', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$orderbyID
$orderbyID desc
$orderbyfilm_ID
$orderbyfilm_ID desc
$orderbypeople_ID
$orderbypeople_ID desc
$orderbyIsActiveEntity
$orderbyIsActiveEntity desc
$orderbyHasActiveEntity
$orderbyHasActiveEntity desc
$orderbyHasDraftEntity
$orderbyHasDraftEntity desc
$selectID
$selectfilm_ID
$selectpeople_ID
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandfilm
$expandpeople
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved charactersInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Film2People

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

Creates a single character of a {i18n> film}.

Code samples

shell
# 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'
http
POST /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/characters HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "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

NameInTypeRequiredDescription
bodybodyStarWarsFilm.Film2People-createtrueAspect for entities with canonical universal IDs
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: 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

json
{}

Responses

StatusMeaningDescriptionSchema
201CreatedCreated characterInline
4XXUnknownErrorerror

Response Schema

Status Code 201

See StarWarsFilm.Film2People

NameTypeRequiredRestrictionsDescription

Retrieves a list of planets of a {i18n> film}.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/planets \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/planets HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/planets', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$orderbyID
$orderbyID desc
$orderbyfilm_ID
$orderbyfilm_ID desc
$orderbyplanet_ID
$orderbyplanet_ID desc
$orderbyIsActiveEntity
$orderbyIsActiveEntity desc
$orderbyHasActiveEntity
$orderbyHasActiveEntity desc
$orderbyHasDraftEntity
$orderbyHasDraftEntity desc
$selectID
$selectfilm_ID
$selectplanet_ID
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandfilm
$expandplanet
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved planetsInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Film2Planets

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

Creates a single planet of a {i18n> film}.

Code samples

shell
# 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'
http
POST /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/planets HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "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

NameInTypeRequiredDescription
bodybodyStarWarsFilm.Film2Planets-createtrueAspect for entities with canonical universal IDs
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: 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

json
{}

Responses

StatusMeaningDescriptionSchema
201CreatedCreated planetInline
4XXUnknownErrorerror

Response Schema

Status Code 201

See StarWarsFilm.Film2Planets

NameTypeRequiredRestrictionsDescription

Retrieves a list of species of a {i18n> film}.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/species \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/species HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/species', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$orderbyID
$orderbyID desc
$orderbyfilm_ID
$orderbyfilm_ID desc
$orderbyspecie_ID
$orderbyspecie_ID desc
$orderbyIsActiveEntity
$orderbyIsActiveEntity desc
$orderbyHasActiveEntity
$orderbyHasActiveEntity desc
$orderbyHasDraftEntity
$orderbyHasDraftEntity desc
$selectID
$selectfilm_ID
$selectspecie_ID
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandfilm
$expandspecie
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved speciesInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Film2Species

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

Creates a single species of a {i18n> film}.

Code samples

shell
# 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'
http
POST /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/species HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "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

NameInTypeRequiredDescription
bodybodyStarWarsFilm.Film2Species-createtrueAspect for entities with canonical universal IDs
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: 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

json
{}

Responses

StatusMeaningDescriptionSchema
201CreatedCreated speciesInline
4XXUnknownErrorerror

Response Schema

Status Code 201

See StarWarsFilm.Film2Species

NameTypeRequiredRestrictionsDescription

Retrieves a list of starships of a {i18n> film}.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/starships \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/starships HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/starships', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$orderbyID
$orderbyID desc
$orderbyfilm_ID
$orderbyfilm_ID desc
$orderbystarship_ID
$orderbystarship_ID desc
$orderbyIsActiveEntity
$orderbyIsActiveEntity desc
$orderbyHasActiveEntity
$orderbyHasActiveEntity desc
$orderbyHasDraftEntity
$orderbyHasDraftEntity desc
$selectID
$selectfilm_ID
$selectstarship_ID
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandfilm
$expandstarship
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved starshipsInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Film2Starships

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

Creates a single starship of a {i18n> film}.

Code samples

shell
# 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'
http
POST /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/starships HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "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

NameInTypeRequiredDescription
bodybodyStarWarsFilm.Film2Starships-createtrueAspect for entities with canonical universal IDs
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: 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

json
{}

Responses

StatusMeaningDescriptionSchema
201CreatedCreated starshipInline
4XXUnknownErrorerror

Response Schema

Status Code 201

See StarWarsFilm.Film2Starships

NameTypeRequiredRestrictionsDescription

Retrieves a list of vehicles of a {i18n> film}.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicles \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicles HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicles', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$orderbyID
$orderbyID desc
$orderbyfilm_ID
$orderbyfilm_ID desc
$orderbyvehicle_ID
$orderbyvehicle_ID desc
$orderbyIsActiveEntity
$orderbyIsActiveEntity desc
$orderbyHasActiveEntity
$orderbyHasActiveEntity desc
$orderbyHasDraftEntity
$orderbyHasDraftEntity desc
$selectID
$selectfilm_ID
$selectvehicle_ID
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandfilm
$expandvehicle
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved vehiclesInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Film2Vehicles

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

Creates a single vehicle of a {i18n> film}.

Code samples

shell
# 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'
http
POST /odata/v4/StarWarsFilm/Film(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicles HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "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

NameInTypeRequiredDescription
bodybodyStarWarsFilm.Film2Vehicles-createtrueAspect for entities with canonical universal IDs
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: 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

json
{}

Responses

StatusMeaningDescriptionSchema
201CreatedCreated vehicleInline
4XXUnknownErrorerror

Response Schema

Status Code 201

See StarWarsFilm.Film2Vehicles

NameTypeRequiredRestrictionsDescription

Retrieves a list of film episode desc.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/FilmEpisodeDesc \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/FilmEpisodeDesc HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/odata/v4/StarWarsFilm/FilmEpisodeDesc',
  params: {
  }, headers: headers

p JSON.parse(result)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/FilmEpisodeDesc', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select

Enumerated Values

ParameterValue
$orderbyID
$orderbyID desc
$orderbyepisode_id
$orderbyepisode_id desc
$orderbytitle
$orderbytitle desc
$orderbyepisodeIDDesc
$orderbyepisodeIDDesc desc
$selectID
$selectepisode_id
$selecttitle
$selectepisodeIDDesc

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {
      "ID": "01234567-89ab-cdef-0123-456789abcdef",
      "episode_id": 0,
      "title": "string",
      "episodeIDDesc": "string"
    }
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved film episode descInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of FilmEpisodeDesc

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[StarWarsFilm.FilmEpisodeDesc]falsenonenone
»» All Films in the Star Wars Skywalker SagaStarWarsFilm.FilmEpisodeDescfalsenonenone
»»» IDstring(uuid)falsenonenone
»»» episode_idinteger(int32)¦nullfalsenonenone
»»» titlestring¦nullfalsenonenone
»»» episodeIDDescstring¦nullfalsenonenone

Retrieves a single film episode desc.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/FilmEpisodeDesc({ID}) \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/FilmEpisodeDesc({ID}) HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/odata/v4/StarWarsFilm/FilmEpisodeDesc({ID})',
  params: {
  }, headers: headers

p JSON.parse(result)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/FilmEpisodeDesc({ID})', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$selectID
$selectepisode_id
$selecttitle
$selectepisodeIDDesc

Example responses

200 Response

json
{
  "ID": "01234567-89ab-cdef-0123-456789abcdef",
  "episode_id": 0,
  "title": "string",
  "episodeIDDesc": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved film episode descStarWarsFilm.FilmEpisodeDesc
4XXUnknownErrorerror

Retrieves a list of directors.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/directors \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/directors HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/odata/v4/StarWarsFilm/directors',
  params: {
  }, headers: headers

p JSON.parse(result)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/directors', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select

Enumerated Values

ParameterValue
$orderbydirector
$orderbydirector desc
$selectdirector

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {
      "director": "string"
    }
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved directorsInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of directors

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[StarWarsFilm.directors]falsenonenone
»» All Films in the Star Wars Skywalker SagaStarWarsFilm.directorsfalsenonenone
»»» directorstringfalsenonenone

Retrieves a single director.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/directors('{director}') \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/directors('{director}') HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/odata/v4/StarWarsFilm/directors('{director}')',
  params: {
  }, headers: headers

p JSON.parse(result)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/directors('{director}')', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
directorpathstringtruekey: director

Enumerated Values

ParameterValue
$selectdirector

Example responses

200 Response

json
{
  "director": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved directorStarWarsFilm.directors
4XXUnknownErrorerror

Retrieves a list of producers.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/producers \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/producers HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/odata/v4/StarWarsFilm/producers',
  params: {
  }, headers: headers

p JSON.parse(result)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/producers', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select

Enumerated Values

ParameterValue
$orderbyproducer
$orderbyproducer desc
$selectproducer

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {
      "producer": "string"
    }
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved producersInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of producers

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[StarWarsFilm.producers]falsenonenone
»» All Films in the Star Wars Skywalker SagaStarWarsFilm.producersfalsenonenone
»»» producerstringfalsenonenone

Retrieves a single producer.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/producers('{producer}') \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/producers('{producer}') HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/odata/v4/StarWarsFilm/producers('{producer}')',
  params: {
  }, headers: headers

p JSON.parse(result)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/producers('{producer}')', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
producerpathstringtruekey: producer

Enumerated Values

ParameterValue
$selectproducer

Example responses

200 Response

json
{
  "producer": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved producerStarWarsFilm.producers
4XXUnknownErrorerror

{i18n>People}

All People and Aliens in Star Wars

Retrieves a list of people.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/People \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/People HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/odata/v4/StarWarsFilm/People',
  params: {
  }, headers: headers

p JSON.parse(result)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/People', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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

ParameterValue
$orderbyID
$orderbyID desc
$orderbycreatedAt
$orderbycreatedAt desc
$orderbycreatedBy
$orderbycreatedBy desc
$orderbymodifiedAt
$orderbymodifiedAt desc
$orderbymodifiedBy
$orderbymodifiedBy desc
$orderbyname
$orderbyname desc
$orderbyheight
$orderbyheight desc
$orderbymass
$orderbymass desc
$orderbyhair_color
$orderbyhair_color desc
$orderbyskin_color
$orderbyskin_color desc
$orderbyeye_color
$orderbyeye_color desc
$orderbybirth_year
$orderbybirth_year desc
$orderbygender
$orderbygender desc
$orderbyscoundrel
$orderbyscoundrel desc
$orderbyhomeworld_ID
$orderbyhomeworld_ID desc
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selectname
$selectheight
$selectmass
$selecthair_color
$selectskin_color
$selecteye_color
$selectbirth_year
$selectgender
$selectscoundrel
$selecthomeworld_ID
$expand*
$expandhomeworld
$expandfilms
$expandspecies
$expandvehicles
$expandstarships

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved peopleInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of People

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

Retrieves a single person.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/People({ID}) \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/People({ID}) HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/odata/v4/StarWarsFilm/People({ID})',
  params: {
  }, headers: headers

p JSON.parse(result)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/People({ID})', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selectname
$selectheight
$selectmass
$selecthair_color
$selectskin_color
$selecteye_color
$selectbirth_year
$selectgender
$selectscoundrel
$selecthomeworld_ID
$expand*
$expandhomeworld
$expandfilms
$expandspecies
$expandvehicles
$expandstarships

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved personInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.People

NameTypeRequiredRestrictionsDescription

Retrieves a list of films of a {i18n> people}.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/People({ID})/films \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/People({ID})/films HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/People({ID})/films', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$orderbyID
$orderbyID desc
$orderbyfilm_ID
$orderbyfilm_ID desc
$orderbypeople_ID
$orderbypeople_ID desc
$orderbyIsActiveEntity
$orderbyIsActiveEntity desc
$orderbyHasActiveEntity
$orderbyHasActiveEntity desc
$orderbyHasDraftEntity
$orderbyHasDraftEntity desc
$selectID
$selectfilm_ID
$selectpeople_ID
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandfilm
$expandpeople
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved filmsInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Film2People

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

Retrieves homeworld of a {i18n> people}.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/People({ID})/homeworld \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/People({ID})/homeworld HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/People({ID})/homeworld', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selectname
$selectdiameter
$selectrotation_period
$selectorbital_period
$selectgravity
$selectpopulation
$selectclimate
$selectterrain
$selectsurface_water
$expand*
$expandfilms
$expandresidents

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved homeworldInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Planet

NameTypeRequiredRestrictionsDescription

Retrieves a list of species of a {i18n> people}.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/People({ID})/species \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/People({ID})/species HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/People({ID})/species', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$orderbyID
$orderbyID desc
$orderbyspecies_ID
$orderbyspecies_ID desc
$orderbypeople_ID
$orderbypeople_ID desc
$selectID
$selectspecies_ID
$selectpeople_ID
$expand*
$expandspecies
$expandpeople

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved speciesInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Species2People

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

Retrieves a list of starships of a {i18n> people}.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/People({ID})/starships \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/People({ID})/starships HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/People({ID})/starships', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$orderbyID
$orderbyID desc
$orderbystarship_ID
$orderbystarship_ID desc
$orderbypilot_ID
$orderbypilot_ID desc
$selectID
$selectstarship_ID
$selectpilot_ID
$expand*
$expandstarship
$expandpilot

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved starshipsInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Starship2Pilot

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

Retrieves a list of vehicles of a {i18n> people}.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/People({ID})/vehicles \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/People({ID})/vehicles HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/People({ID})/vehicles', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$orderbyID
$orderbyID desc
$orderbyvehicle_ID
$orderbyvehicle_ID desc
$orderbypilot_ID
$orderbypilot_ID desc
$selectID
$selectvehicle_ID
$selectpilot_ID
$expand*
$expandvehicle
$expandpilot

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved vehiclesInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Vehicle2Pilot

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

{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

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Planet \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Planet HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/odata/v4/StarWarsFilm/Planet',
  params: {
  }, headers: headers

p JSON.parse(result)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Planet', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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

ParameterValue
$orderbyID
$orderbyID desc
$orderbycreatedAt
$orderbycreatedAt desc
$orderbycreatedBy
$orderbycreatedBy desc
$orderbymodifiedAt
$orderbymodifiedAt desc
$orderbymodifiedBy
$orderbymodifiedBy desc
$orderbyname
$orderbyname desc
$orderbydiameter
$orderbydiameter desc
$orderbyrotation_period
$orderbyrotation_period desc
$orderbyorbital_period
$orderbyorbital_period desc
$orderbygravity
$orderbygravity desc
$orderbypopulation
$orderbypopulation desc
$orderbyclimate
$orderbyclimate desc
$orderbyterrain
$orderbyterrain desc
$orderbysurface_water
$orderbysurface_water desc
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selectname
$selectdiameter
$selectrotation_period
$selectorbital_period
$selectgravity
$selectpopulation
$selectclimate
$selectterrain
$selectsurface_water
$expand*
$expandfilms
$expandresidents

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved planetInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Planet

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

Retrieves a single planet.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Planet({ID}) \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Planet({ID}) HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/odata/v4/StarWarsFilm/Planet({ID})',
  params: {
  }, headers: headers

p JSON.parse(result)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Planet({ID})', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selectname
$selectdiameter
$selectrotation_period
$selectorbital_period
$selectgravity
$selectpopulation
$selectclimate
$selectterrain
$selectsurface_water
$expand*
$expandfilms
$expandresidents

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved planetInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Planet

NameTypeRequiredRestrictionsDescription

Retrieves a list of films of a {i18n> planet}.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Planet({ID})/films \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Planet({ID})/films HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Planet({ID})/films', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$orderbyID
$orderbyID desc
$orderbyfilm_ID
$orderbyfilm_ID desc
$orderbyplanet_ID
$orderbyplanet_ID desc
$orderbyIsActiveEntity
$orderbyIsActiveEntity desc
$orderbyHasActiveEntity
$orderbyHasActiveEntity desc
$orderbyHasDraftEntity
$orderbyHasDraftEntity desc
$selectID
$selectfilm_ID
$selectplanet_ID
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandfilm
$expandplanet
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved filmsInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Film2Planets

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

Creates a single film of a {i18n> planet}.

Code samples

shell
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Planet({ID})/films \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'
http
POST /odata/v4/StarWarsFilm/Planet({ID})/films HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "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

NameInTypeRequiredDescription
bodybodyStarWarsFilm.Film2Planets-createtrueAspect for entities with canonical universal IDs
IDpathstring(uuid)truekey: 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

json
{}

Responses

StatusMeaningDescriptionSchema
201CreatedCreated filmInline
4XXUnknownErrorerror

Response Schema

Status Code 201

See StarWarsFilm.Film2Planets

NameTypeRequiredRestrictionsDescription

Retrieves a list of residents of a {i18n> planet}.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Planet({ID})/residents \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Planet({ID})/residents HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Planet({ID})/residents', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$orderbyID
$orderbyID desc
$orderbyplanet_ID
$orderbyplanet_ID desc
$orderbypeople_ID
$orderbypeople_ID desc
$selectID
$selectplanet_ID
$selectpeople_ID
$expand*
$expandplanet
$expandpeople

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved residentsInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Planet2People

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

Creates a single resident of a {i18n> planet}.

Code samples

shell
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Planet({ID})/residents \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'
http
POST /odata/v4/StarWarsFilm/Planet({ID})/residents HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "planet_ID": "01234567-89ab-cdef-0123-456789abcdef",
  "people_ID": "01234567-89ab-cdef-0123-456789abcdef"
}

Parameters

NameInTypeRequiredDescription
bodybodyStarWarsFilm.Planet2People-createtrueAspect for entities with canonical universal IDs
IDpathstring(uuid)truekey: 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

json
{}

Responses

StatusMeaningDescriptionSchema
201CreatedCreated residentInline
4XXUnknownErrorerror

Response Schema

Status Code 201

See StarWarsFilm.Planet2People

NameTypeRequiredRestrictionsDescription

{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

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Species \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Species HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/odata/v4/StarWarsFilm/Species',
  params: {
  }, headers: headers

p JSON.parse(result)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Species', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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

ParameterValue
$orderbyID
$orderbyID desc
$orderbycreatedAt
$orderbycreatedAt desc
$orderbycreatedBy
$orderbycreatedBy desc
$orderbymodifiedAt
$orderbymodifiedAt desc
$orderbymodifiedBy
$orderbymodifiedBy desc
$orderbyname
$orderbyname desc
$orderbyclassification
$orderbyclassification desc
$orderbydesignation
$orderbydesignation desc
$orderbyaverage_height
$orderbyaverage_height desc
$orderbyaverage_lifespan
$orderbyaverage_lifespan desc
$orderbyhair_colors
$orderbyhair_colors desc
$orderbyskin_colors
$orderbyskin_colors desc
$orderbyeye_colors
$orderbyeye_colors desc
$orderbyhomeworld_ID
$orderbyhomeworld_ID desc
$orderbylanguage
$orderbylanguage desc
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selectname
$selectclassification
$selectdesignation
$selectaverage_height
$selectaverage_lifespan
$selecthair_colors
$selectskin_colors
$selecteye_colors
$selecthomeworld_ID
$selectlanguage
$expand*
$expandhomeworld
$expandpeople
$expandfilms

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved speciesInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Species

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

Retrieves a single species.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Species({ID}) \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Species({ID}) HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/odata/v4/StarWarsFilm/Species({ID})',
  params: {
  }, headers: headers

p JSON.parse(result)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Species({ID})', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selectname
$selectclassification
$selectdesignation
$selectaverage_height
$selectaverage_lifespan
$selecthair_colors
$selectskin_colors
$selecteye_colors
$selecthomeworld_ID
$selectlanguage
$expand*
$expandhomeworld
$expandpeople
$expandfilms

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved speciesInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Species

NameTypeRequiredRestrictionsDescription

Retrieves a list of films of a {i18n> species}.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Species({ID})/films \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Species({ID})/films HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Species({ID})/films', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$orderbyID
$orderbyID desc
$orderbyfilm_ID
$orderbyfilm_ID desc
$orderbyspecie_ID
$orderbyspecie_ID desc
$orderbyIsActiveEntity
$orderbyIsActiveEntity desc
$orderbyHasActiveEntity
$orderbyHasActiveEntity desc
$orderbyHasDraftEntity
$orderbyHasDraftEntity desc
$selectID
$selectfilm_ID
$selectspecie_ID
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandfilm
$expandspecie
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved filmsInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Film2Species

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

Creates a single film of a {i18n> species}.

Code samples

shell
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Species({ID})/films \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'
http
POST /odata/v4/StarWarsFilm/Species({ID})/films HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "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

NameInTypeRequiredDescription
bodybodyStarWarsFilm.Film2Species-createtrueAspect for entities with canonical universal IDs
IDpathstring(uuid)truekey: 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

json
{}

Responses

StatusMeaningDescriptionSchema
201CreatedCreated filmInline
4XXUnknownErrorerror

Response Schema

Status Code 201

See StarWarsFilm.Film2Species

NameTypeRequiredRestrictionsDescription

Retrieves homeworld of a {i18n> species}.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Species({ID})/homeworld \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Species({ID})/homeworld HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Species({ID})/homeworld', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selectname
$selectdiameter
$selectrotation_period
$selectorbital_period
$selectgravity
$selectpopulation
$selectclimate
$selectterrain
$selectsurface_water
$expand*
$expandfilms
$expandresidents

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved homeworldInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Planet

NameTypeRequiredRestrictionsDescription

Retrieves a list of people of a {i18n> species}.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Species({ID})/people \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Species({ID})/people HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Species({ID})/people', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$orderbyID
$orderbyID desc
$orderbyspecies_ID
$orderbyspecies_ID desc
$orderbypeople_ID
$orderbypeople_ID desc
$selectID
$selectspecies_ID
$selectpeople_ID
$expand*
$expandspecies
$expandpeople

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved peopleInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Species2People

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

Creates a single person of a {i18n> species}.

Code samples

shell
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Species({ID})/people \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'
http
POST /odata/v4/StarWarsFilm/Species({ID})/people HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "species_ID": "01234567-89ab-cdef-0123-456789abcdef",
  "people_ID": "01234567-89ab-cdef-0123-456789abcdef"
}

Parameters

NameInTypeRequiredDescription
bodybodyStarWarsFilm.Species2People-createtrueAspect for entities with canonical universal IDs
IDpathstring(uuid)truekey: 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

json
{}

Responses

StatusMeaningDescriptionSchema
201CreatedCreated personInline
4XXUnknownErrorerror

Response Schema

Status Code 201

See StarWarsFilm.Species2People

NameTypeRequiredRestrictionsDescription

{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

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Starship \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Starship HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/odata/v4/StarWarsFilm/Starship',
  params: {
  }, headers: headers

p JSON.parse(result)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Starship', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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

ParameterValue
$orderbyID
$orderbyID desc
$orderbycreatedAt
$orderbycreatedAt desc
$orderbycreatedBy
$orderbycreatedBy desc
$orderbymodifiedAt
$orderbymodifiedAt desc
$orderbymodifiedBy
$orderbymodifiedBy desc
$orderbyname
$orderbyname desc
$orderbymodel
$orderbymodel desc
$orderbystarship_class
$orderbystarship_class desc
$orderbymanufacturer
$orderbymanufacturer desc
$orderbycost_in_credits
$orderbycost_in_credits desc
$orderbylength
$orderbylength desc
$orderbycrew
$orderbycrew desc
$orderbypassengers
$orderbypassengers desc
$orderbymax_atmosphering_speed
$orderbymax_atmosphering_speed desc
$orderbyhyperdrive_rating
$orderbyhyperdrive_rating desc
$orderbyMGLT
$orderbyMGLT desc
$orderbycargo_capacity
$orderbycargo_capacity desc
$orderbyconsumables
$orderbyconsumables desc
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selectname
$selectmodel
$selectstarship_class
$selectmanufacturer
$selectcost_in_credits
$selectlength
$selectcrew
$selectpassengers
$selectmax_atmosphering_speed
$selecthyperdrive_rating
$selectMGLT
$selectcargo_capacity
$selectconsumables
$expand*
$expandfilms
$expandpilots

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved starshipInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Starship

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

Retrieves a single starship.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Starship({ID}) \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Starship({ID}) HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/odata/v4/StarWarsFilm/Starship({ID})',
  params: {
  }, headers: headers

p JSON.parse(result)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Starship({ID})', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selectname
$selectmodel
$selectstarship_class
$selectmanufacturer
$selectcost_in_credits
$selectlength
$selectcrew
$selectpassengers
$selectmax_atmosphering_speed
$selecthyperdrive_rating
$selectMGLT
$selectcargo_capacity
$selectconsumables
$expand*
$expandfilms
$expandpilots

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved starshipInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Starship

NameTypeRequiredRestrictionsDescription

Retrieves a list of films of a {i18n> starship}.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Starship({ID})/films \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Starship({ID})/films HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Starship({ID})/films', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$orderbyID
$orderbyID desc
$orderbyfilm_ID
$orderbyfilm_ID desc
$orderbystarship_ID
$orderbystarship_ID desc
$orderbyIsActiveEntity
$orderbyIsActiveEntity desc
$orderbyHasActiveEntity
$orderbyHasActiveEntity desc
$orderbyHasDraftEntity
$orderbyHasDraftEntity desc
$selectID
$selectfilm_ID
$selectstarship_ID
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandfilm
$expandstarship
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved filmsInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Film2Starships

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

Retrieves a list of pilots of a {i18n> starship}.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Starship({ID})/pilots \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Starship({ID})/pilots HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Starship({ID})/pilots', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$orderbyID
$orderbyID desc
$orderbystarship_ID
$orderbystarship_ID desc
$orderbypilot_ID
$orderbypilot_ID desc
$selectID
$selectstarship_ID
$selectpilot_ID
$expand*
$expandstarship
$expandpilot

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved pilotsInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Starship2Pilot

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

{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

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Vehicles \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Vehicles HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/odata/v4/StarWarsFilm/Vehicles',
  params: {
  }, headers: headers

p JSON.parse(result)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Vehicles', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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

ParameterValue
$orderbyID
$orderbyID desc
$orderbycreatedAt
$orderbycreatedAt desc
$orderbycreatedBy
$orderbycreatedBy desc
$orderbymodifiedAt
$orderbymodifiedAt desc
$orderbymodifiedBy
$orderbymodifiedBy desc
$orderbyname
$orderbyname desc
$orderbymodel
$orderbymodel desc
$orderbyvehicle_class
$orderbyvehicle_class desc
$orderbymanufacturer
$orderbymanufacturer desc
$orderbycost_in_credits
$orderbycost_in_credits desc
$orderbylength
$orderbylength desc
$orderbycrew
$orderbycrew desc
$orderbypassengers
$orderbypassengers desc
$orderbymax_atmosphering_speed
$orderbymax_atmosphering_speed desc
$orderbycargo_capacity
$orderbycargo_capacity desc
$orderbyconsumables
$orderbyconsumables desc
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selectname
$selectmodel
$selectvehicle_class
$selectmanufacturer
$selectcost_in_credits
$selectlength
$selectcrew
$selectpassengers
$selectmax_atmosphering_speed
$selectcargo_capacity
$selectconsumables
$expand*
$expandfilms
$expandpilots

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved vehiclesInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Vehicles

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

Retrieves a single vehicle.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Vehicles({ID}) \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Vehicles({ID}) HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/odata/v4/StarWarsFilm/Vehicles({ID})',
  params: {
  }, headers: headers

p JSON.parse(result)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Vehicles({ID})', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selectname
$selectmodel
$selectvehicle_class
$selectmanufacturer
$selectcost_in_credits
$selectlength
$selectcrew
$selectpassengers
$selectmax_atmosphering_speed
$selectcargo_capacity
$selectconsumables
$expand*
$expandfilms
$expandpilots

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved vehicleInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Vehicles

NameTypeRequiredRestrictionsDescription

Retrieves a list of films of a {i18n> vehicles}.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Vehicles({ID})/films \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Vehicles({ID})/films HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Vehicles({ID})/films', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$orderbyID
$orderbyID desc
$orderbyfilm_ID
$orderbyfilm_ID desc
$orderbyvehicle_ID
$orderbyvehicle_ID desc
$orderbyIsActiveEntity
$orderbyIsActiveEntity desc
$orderbyHasActiveEntity
$orderbyHasActiveEntity desc
$orderbyHasDraftEntity
$orderbyHasDraftEntity desc
$selectID
$selectfilm_ID
$selectvehicle_ID
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandfilm
$expandvehicle
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved filmsInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Film2Vehicles

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

Retrieves a list of pilots of a {i18n> vehicles}.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Vehicles({ID})/pilots \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Vehicles({ID})/pilots HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Vehicles({ID})/pilots', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$orderbyID
$orderbyID desc
$orderbyvehicle_ID
$orderbyvehicle_ID desc
$orderbypilot_ID
$orderbypilot_ID desc
$selectID
$selectvehicle_ID
$selectpilot_ID
$expand*
$expandvehicle
$expandpilot

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved pilotsInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Vehicle2Pilot

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

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

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2People \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film2People HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/odata/v4/StarWarsFilm/Film2People',
  params: {
  }, headers: headers

p JSON.parse(result)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film2People', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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

ParameterValue
$orderbyID
$orderbyID desc
$orderbyfilm_ID
$orderbyfilm_ID desc
$orderbypeople_ID
$orderbypeople_ID desc
$orderbyIsActiveEntity
$orderbyIsActiveEntity desc
$orderbyHasActiveEntity
$orderbyHasActiveEntity desc
$orderbyHasDraftEntity
$orderbyHasDraftEntity desc
$selectID
$selectfilm_ID
$selectpeople_ID
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandfilm
$expandpeople
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved film2 peopleInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Film2People

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

Creates a single film2 person.

Code samples

shell
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film2People \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'
http
POST /odata/v4/StarWarsFilm/Film2People HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

r = requests.post('/odata/v4/StarWarsFilm/Film2People', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

json
{
  "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

NameInTypeRequiredDescription
bodybodyStarWarsFilm.Film2People-createtrueAspect 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

json
{}

Responses

StatusMeaningDescriptionSchema
201CreatedCreated film2 personInline
4XXUnknownErrorerror

Response Schema

Status Code 201

See StarWarsFilm.Film2People

NameTypeRequiredRestrictionsDescription

Retrieves a single film2 person.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}') \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$selectID
$selectfilm_ID
$selectpeople_ID
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandfilm
$expandpeople
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved film2 personInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Film2People

NameTypeRequiredRestrictionsDescription

Changes a single film2 person.

Code samples

shell
# 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'
http
PATCH /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "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

NameInTypeRequiredDescription
bodybodyStarWarsFilm.Film2People-updatetrueAspect for entities with canonical universal IDs
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: 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

json
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ],
    "innererror": {}
  }
}

Responses

StatusMeaningDescriptionSchema
204No ContentSuccessNone
4XXUnknownErrorerror

Deletes a single film2 person.

Code samples

shell
# You can also use wget
curl -X DELETE /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}') \
  -H 'Accept: application/json'
http
DELETE /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.delete('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Example responses

4XX Response

json
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ],
    "innererror": {}
  }
}

Responses

StatusMeaningDescriptionSchema
204No ContentSuccessNone
4XXUnknownErrorerror

Retrieves draft administrative data of a film2 person.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$selectDraftUUID
$selectCreationDateTime
$selectCreatedByUser
$selectDraftIsCreatedByMe
$selectLastChangeDateTime
$selectLastChangedByUser
$selectInProcessByUser
$selectDraftIsProcessedByMe

Example responses

200 Response

json
{
  "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

StatusMeaningDescriptionSchema
200OKRetrieved draft administrative dataStarWarsFilm.DraftAdministrativeData
4XXUnknownErrorerror

Changes draft administrative data of a film2 person.

Code samples

shell
# 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'
http
PATCH /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "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

NameInTypeRequiredDescription
bodybodyStarWarsFilm.DraftAdministrativeData-updatetrueNew property values
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Example responses

4XX Response

json
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ],
    "innererror": {}
  }
}

Responses

StatusMeaningDescriptionSchema
204No ContentSuccessNone
4XXUnknownErrorerror

Deletes draft administrative data of a film2 person.

Code samples

shell
# You can also use wget
curl -X DELETE /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData \
  -H 'Accept: application/json'
http
DELETE /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.delete('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Example responses

4XX Response

json
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ],
    "innererror": {}
  }
}

Responses

StatusMeaningDescriptionSchema
204No ContentSuccessNone
4XXUnknownErrorerror

Retrieves sibling entity of a film2 person.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$selectID
$selectfilm_ID
$selectpeople_ID
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandfilm
$expandpeople
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved sibling entityInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Film2People

NameTypeRequiredRestrictionsDescription

Invokes action draftPrepare

Code samples

shell
# 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'
http
POST /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "SideEffectsQualifier": "string"
}

Parameters

NameInTypeRequiredDescription
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity
bodybodyobjectfalseAction parameters
» SideEffectsQualifierbodystring¦nullfalsenone

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKSuccessInline
4XXUnknownErrorerror

Response Schema

Retrieves film of a film2 person.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selecttitle
$selectepisode_id
$selectopening_crawl
$selectdirector
$selectproducer
$selectrelease_date
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandcharacters
$expandplanets
$expandstarships
$expandvehicles
$expandspecies
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved filmInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Film

NameTypeRequiredRestrictionsDescription

Invokes action draftActivate

Code samples

shell
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate \
  -H 'Accept: application/json'
http
POST /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKSuccessInline
4XXUnknownErrorerror

Response Schema

Invokes action draftEdit

Code samples

shell
# 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'
http
POST /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "PreserveChanges": true
}

Parameters

NameInTypeRequiredDescription
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity
bodybodyobjectfalseAction parameters
» PreserveChangesbodyboolean¦nullfalsenone

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKSuccessInline
4XXUnknownErrorerror

Response Schema

Retrieves people of a film2 person.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/people \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/people HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film2People(ID={ID},IsActiveEntity='{IsActiveEntity}')/people', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selectname
$selectheight
$selectmass
$selecthair_color
$selectskin_color
$selecteye_color
$selectbirth_year
$selectgender
$selectscoundrel
$selecthomeworld_ID
$expand*
$expandhomeworld
$expandfilms
$expandspecies
$expandvehicles
$expandstarships

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved peopleInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.People

NameTypeRequiredRestrictionsDescription

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

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Planets \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film2Planets HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/odata/v4/StarWarsFilm/Film2Planets',
  params: {
  }, headers: headers

p JSON.parse(result)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film2Planets', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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

ParameterValue
$orderbyID
$orderbyID desc
$orderbyfilm_ID
$orderbyfilm_ID desc
$orderbyplanet_ID
$orderbyplanet_ID desc
$orderbyIsActiveEntity
$orderbyIsActiveEntity desc
$orderbyHasActiveEntity
$orderbyHasActiveEntity desc
$orderbyHasDraftEntity
$orderbyHasDraftEntity desc
$selectID
$selectfilm_ID
$selectplanet_ID
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandfilm
$expandplanet
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved film2 planetsInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Film2Planets

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

Creates a single film2 planet.

Code samples

shell
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film2Planets \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'
http
POST /odata/v4/StarWarsFilm/Film2Planets HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

r = requests.post('/odata/v4/StarWarsFilm/Film2Planets', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

json
{
  "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

NameInTypeRequiredDescription
bodybodyStarWarsFilm.Film2Planets-createtrueAspect 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

json
{}

Responses

StatusMeaningDescriptionSchema
201CreatedCreated film2 planetInline
4XXUnknownErrorerror

Response Schema

Status Code 201

See StarWarsFilm.Film2Planets

NameTypeRequiredRestrictionsDescription

Retrieves a single film2 planet.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}') \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$selectID
$selectfilm_ID
$selectplanet_ID
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandfilm
$expandplanet
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved film2 planetInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Film2Planets

NameTypeRequiredRestrictionsDescription

Changes a single film2 planet.

Code samples

shell
# 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'
http
PATCH /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "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

NameInTypeRequiredDescription
bodybodyStarWarsFilm.Film2Planets-updatetrueAspect for entities with canonical universal IDs
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: 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

json
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ],
    "innererror": {}
  }
}

Responses

StatusMeaningDescriptionSchema
204No ContentSuccessNone
4XXUnknownErrorerror

Deletes a single film2 planet.

Code samples

shell
# You can also use wget
curl -X DELETE /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}') \
  -H 'Accept: application/json'
http
DELETE /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.delete('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Example responses

4XX Response

json
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ],
    "innererror": {}
  }
}

Responses

StatusMeaningDescriptionSchema
204No ContentSuccessNone
4XXUnknownErrorerror

Retrieves draft administrative data of a film2 planet.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$selectDraftUUID
$selectCreationDateTime
$selectCreatedByUser
$selectDraftIsCreatedByMe
$selectLastChangeDateTime
$selectLastChangedByUser
$selectInProcessByUser
$selectDraftIsProcessedByMe

Example responses

200 Response

json
{
  "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

StatusMeaningDescriptionSchema
200OKRetrieved draft administrative dataStarWarsFilm.DraftAdministrativeData
4XXUnknownErrorerror

Changes draft administrative data of a film2 planet.

Code samples

shell
# 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'
http
PATCH /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "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

NameInTypeRequiredDescription
bodybodyStarWarsFilm.DraftAdministrativeData-updatetrueNew property values
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Example responses

4XX Response

json
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ],
    "innererror": {}
  }
}

Responses

StatusMeaningDescriptionSchema
204No ContentSuccessNone
4XXUnknownErrorerror

Deletes draft administrative data of a film2 planet.

Code samples

shell
# You can also use wget
curl -X DELETE /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData \
  -H 'Accept: application/json'
http
DELETE /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.delete('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Example responses

4XX Response

json
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ],
    "innererror": {}
  }
}

Responses

StatusMeaningDescriptionSchema
204No ContentSuccessNone
4XXUnknownErrorerror

Retrieves sibling entity of a film2 planet.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$selectID
$selectfilm_ID
$selectplanet_ID
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandfilm
$expandplanet
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved sibling entityInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Film2Planets

NameTypeRequiredRestrictionsDescription

Invokes action draftPrepare

Code samples

shell
# 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'
http
POST /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "SideEffectsQualifier": "string"
}

Parameters

NameInTypeRequiredDescription
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity
bodybodyobjectfalseAction parameters
» SideEffectsQualifierbodystring¦nullfalsenone

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKSuccessInline
4XXUnknownErrorerror

Response Schema

Retrieves film of a film2 planet.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selecttitle
$selectepisode_id
$selectopening_crawl
$selectdirector
$selectproducer
$selectrelease_date
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandcharacters
$expandplanets
$expandstarships
$expandvehicles
$expandspecies
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved filmInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Film

NameTypeRequiredRestrictionsDescription

Invokes action draftActivate

Code samples

shell
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate \
  -H 'Accept: application/json'
http
POST /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKSuccessInline
4XXUnknownErrorerror

Response Schema

Invokes action draftEdit

Code samples

shell
# 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'
http
POST /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "PreserveChanges": true
}

Parameters

NameInTypeRequiredDescription
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity
bodybodyobjectfalseAction parameters
» PreserveChangesbodyboolean¦nullfalsenone

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKSuccessInline
4XXUnknownErrorerror

Response Schema

Retrieves planet of a film2 planet.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/planet \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/planet HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film2Planets(ID={ID},IsActiveEntity='{IsActiveEntity}')/planet', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selectname
$selectdiameter
$selectrotation_period
$selectorbital_period
$selectgravity
$selectpopulation
$selectclimate
$selectterrain
$selectsurface_water
$expand*
$expandfilms
$expandresidents

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved planetInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Planet

NameTypeRequiredRestrictionsDescription

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

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Species \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film2Species HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/odata/v4/StarWarsFilm/Film2Species',
  params: {
  }, headers: headers

p JSON.parse(result)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film2Species', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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

ParameterValue
$orderbyID
$orderbyID desc
$orderbyfilm_ID
$orderbyfilm_ID desc
$orderbyspecie_ID
$orderbyspecie_ID desc
$orderbyIsActiveEntity
$orderbyIsActiveEntity desc
$orderbyHasActiveEntity
$orderbyHasActiveEntity desc
$orderbyHasDraftEntity
$orderbyHasDraftEntity desc
$selectID
$selectfilm_ID
$selectspecie_ID
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandfilm
$expandspecie
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved film2 speciesInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Film2Species

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

Creates a single film2 specy.

Code samples

shell
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film2Species \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'
http
POST /odata/v4/StarWarsFilm/Film2Species HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

r = requests.post('/odata/v4/StarWarsFilm/Film2Species', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

json
{
  "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

NameInTypeRequiredDescription
bodybodyStarWarsFilm.Film2Species-createtrueAspect 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

json
{}

Responses

StatusMeaningDescriptionSchema
201CreatedCreated film2 specyInline
4XXUnknownErrorerror

Response Schema

Status Code 201

See StarWarsFilm.Film2Species

NameTypeRequiredRestrictionsDescription

Retrieves a single film2 specy.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}') \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$selectID
$selectfilm_ID
$selectspecie_ID
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandfilm
$expandspecie
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved film2 specyInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Film2Species

NameTypeRequiredRestrictionsDescription

Changes a single film2 specy.

Code samples

shell
# 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'
http
PATCH /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "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

NameInTypeRequiredDescription
bodybodyStarWarsFilm.Film2Species-updatetrueAspect for entities with canonical universal IDs
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: 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

json
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ],
    "innererror": {}
  }
}

Responses

StatusMeaningDescriptionSchema
204No ContentSuccessNone
4XXUnknownErrorerror

Deletes a single film2 specy.

Code samples

shell
# You can also use wget
curl -X DELETE /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}') \
  -H 'Accept: application/json'
http
DELETE /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.delete('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Example responses

4XX Response

json
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ],
    "innererror": {}
  }
}

Responses

StatusMeaningDescriptionSchema
204No ContentSuccessNone
4XXUnknownErrorerror

Retrieves draft administrative data of a film2 specy.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$selectDraftUUID
$selectCreationDateTime
$selectCreatedByUser
$selectDraftIsCreatedByMe
$selectLastChangeDateTime
$selectLastChangedByUser
$selectInProcessByUser
$selectDraftIsProcessedByMe

Example responses

200 Response

json
{
  "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

StatusMeaningDescriptionSchema
200OKRetrieved draft administrative dataStarWarsFilm.DraftAdministrativeData
4XXUnknownErrorerror

Changes draft administrative data of a film2 specy.

Code samples

shell
# 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'
http
PATCH /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "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

NameInTypeRequiredDescription
bodybodyStarWarsFilm.DraftAdministrativeData-updatetrueNew property values
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Example responses

4XX Response

json
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ],
    "innererror": {}
  }
}

Responses

StatusMeaningDescriptionSchema
204No ContentSuccessNone
4XXUnknownErrorerror

Deletes draft administrative data of a film2 specy.

Code samples

shell
# You can also use wget
curl -X DELETE /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData \
  -H 'Accept: application/json'
http
DELETE /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.delete('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Example responses

4XX Response

json
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ],
    "innererror": {}
  }
}

Responses

StatusMeaningDescriptionSchema
204No ContentSuccessNone
4XXUnknownErrorerror

Retrieves sibling entity of a film2 specy.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$selectID
$selectfilm_ID
$selectspecie_ID
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandfilm
$expandspecie
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved sibling entityInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Film2Species

NameTypeRequiredRestrictionsDescription

Invokes action draftPrepare

Code samples

shell
# 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'
http
POST /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "SideEffectsQualifier": "string"
}

Parameters

NameInTypeRequiredDescription
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity
bodybodyobjectfalseAction parameters
» SideEffectsQualifierbodystring¦nullfalsenone

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKSuccessInline
4XXUnknownErrorerror

Response Schema

Retrieves film of a film2 specy.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selecttitle
$selectepisode_id
$selectopening_crawl
$selectdirector
$selectproducer
$selectrelease_date
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandcharacters
$expandplanets
$expandstarships
$expandvehicles
$expandspecies
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved filmInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Film

NameTypeRequiredRestrictionsDescription

Invokes action draftActivate

Code samples

shell
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate \
  -H 'Accept: application/json'
http
POST /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKSuccessInline
4XXUnknownErrorerror

Response Schema

Invokes action draftEdit

Code samples

shell
# 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'
http
POST /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "PreserveChanges": true
}

Parameters

NameInTypeRequiredDescription
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity
bodybodyobjectfalseAction parameters
» PreserveChangesbodyboolean¦nullfalsenone

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKSuccessInline
4XXUnknownErrorerror

Response Schema

Retrieves specie of a film2 specy.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/specie \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/specie HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film2Species(ID={ID},IsActiveEntity='{IsActiveEntity}')/specie', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selectname
$selectclassification
$selectdesignation
$selectaverage_height
$selectaverage_lifespan
$selecthair_colors
$selectskin_colors
$selecteye_colors
$selecthomeworld_ID
$selectlanguage
$expand*
$expandhomeworld
$expandpeople
$expandfilms

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved specieInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Species

NameTypeRequiredRestrictionsDescription

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

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Starships \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film2Starships HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/odata/v4/StarWarsFilm/Film2Starships',
  params: {
  }, headers: headers

p JSON.parse(result)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film2Starships', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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

ParameterValue
$orderbyID
$orderbyID desc
$orderbyfilm_ID
$orderbyfilm_ID desc
$orderbystarship_ID
$orderbystarship_ID desc
$orderbyIsActiveEntity
$orderbyIsActiveEntity desc
$orderbyHasActiveEntity
$orderbyHasActiveEntity desc
$orderbyHasDraftEntity
$orderbyHasDraftEntity desc
$selectID
$selectfilm_ID
$selectstarship_ID
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandfilm
$expandstarship
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved film2 starshipsInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Film2Starships

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

Creates a single film2 starship.

Code samples

shell
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film2Starships \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'
http
POST /odata/v4/StarWarsFilm/Film2Starships HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

r = requests.post('/odata/v4/StarWarsFilm/Film2Starships', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

json
{
  "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

NameInTypeRequiredDescription
bodybodyStarWarsFilm.Film2Starships-createtrueAspect 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

json
{}

Responses

StatusMeaningDescriptionSchema
201CreatedCreated film2 starshipInline
4XXUnknownErrorerror

Response Schema

Status Code 201

See StarWarsFilm.Film2Starships

NameTypeRequiredRestrictionsDescription

Retrieves a single film2 starship.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}') \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$selectID
$selectfilm_ID
$selectstarship_ID
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandfilm
$expandstarship
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved film2 starshipInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Film2Starships

NameTypeRequiredRestrictionsDescription

Changes a single film2 starship.

Code samples

shell
# 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'
http
PATCH /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "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

NameInTypeRequiredDescription
bodybodyStarWarsFilm.Film2Starships-updatetrueAspect for entities with canonical universal IDs
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: 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

json
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ],
    "innererror": {}
  }
}

Responses

StatusMeaningDescriptionSchema
204No ContentSuccessNone
4XXUnknownErrorerror

Deletes a single film2 starship.

Code samples

shell
# You can also use wget
curl -X DELETE /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}') \
  -H 'Accept: application/json'
http
DELETE /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.delete('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Example responses

4XX Response

json
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ],
    "innererror": {}
  }
}

Responses

StatusMeaningDescriptionSchema
204No ContentSuccessNone
4XXUnknownErrorerror

Retrieves draft administrative data of a film2 starship.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$selectDraftUUID
$selectCreationDateTime
$selectCreatedByUser
$selectDraftIsCreatedByMe
$selectLastChangeDateTime
$selectLastChangedByUser
$selectInProcessByUser
$selectDraftIsProcessedByMe

Example responses

200 Response

json
{
  "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

StatusMeaningDescriptionSchema
200OKRetrieved draft administrative dataStarWarsFilm.DraftAdministrativeData
4XXUnknownErrorerror

Changes draft administrative data of a film2 starship.

Code samples

shell
# 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'
http
PATCH /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "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

NameInTypeRequiredDescription
bodybodyStarWarsFilm.DraftAdministrativeData-updatetrueNew property values
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Example responses

4XX Response

json
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ],
    "innererror": {}
  }
}

Responses

StatusMeaningDescriptionSchema
204No ContentSuccessNone
4XXUnknownErrorerror

Deletes draft administrative data of a film2 starship.

Code samples

shell
# You can also use wget
curl -X DELETE /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData \
  -H 'Accept: application/json'
http
DELETE /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.delete('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Example responses

4XX Response

json
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ],
    "innererror": {}
  }
}

Responses

StatusMeaningDescriptionSchema
204No ContentSuccessNone
4XXUnknownErrorerror

Retrieves sibling entity of a film2 starship.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$selectID
$selectfilm_ID
$selectstarship_ID
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandfilm
$expandstarship
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved sibling entityInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Film2Starships

NameTypeRequiredRestrictionsDescription

Invokes action draftPrepare

Code samples

shell
# 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'
http
POST /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "SideEffectsQualifier": "string"
}

Parameters

NameInTypeRequiredDescription
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity
bodybodyobjectfalseAction parameters
» SideEffectsQualifierbodystring¦nullfalsenone

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKSuccessInline
4XXUnknownErrorerror

Response Schema

Retrieves film of a film2 starship.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selecttitle
$selectepisode_id
$selectopening_crawl
$selectdirector
$selectproducer
$selectrelease_date
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandcharacters
$expandplanets
$expandstarships
$expandvehicles
$expandspecies
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved filmInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Film

NameTypeRequiredRestrictionsDescription

Invokes action draftActivate

Code samples

shell
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate \
  -H 'Accept: application/json'
http
POST /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKSuccessInline
4XXUnknownErrorerror

Response Schema

Invokes action draftEdit

Code samples

shell
# 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'
http
POST /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "PreserveChanges": true
}

Parameters

NameInTypeRequiredDescription
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity
bodybodyobjectfalseAction parameters
» PreserveChangesbodyboolean¦nullfalsenone

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKSuccessInline
4XXUnknownErrorerror

Response Schema

Retrieves starship of a film2 starship.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/starship \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/starship HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film2Starships(ID={ID},IsActiveEntity='{IsActiveEntity}')/starship', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selectname
$selectmodel
$selectstarship_class
$selectmanufacturer
$selectcost_in_credits
$selectlength
$selectcrew
$selectpassengers
$selectmax_atmosphering_speed
$selecthyperdrive_rating
$selectMGLT
$selectcargo_capacity
$selectconsumables
$expand*
$expandfilms
$expandpilots

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved starshipInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Starship

NameTypeRequiredRestrictionsDescription

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

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Vehicles \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film2Vehicles HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/odata/v4/StarWarsFilm/Film2Vehicles',
  params: {
  }, headers: headers

p JSON.parse(result)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film2Vehicles', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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

ParameterValue
$orderbyID
$orderbyID desc
$orderbyfilm_ID
$orderbyfilm_ID desc
$orderbyvehicle_ID
$orderbyvehicle_ID desc
$orderbyIsActiveEntity
$orderbyIsActiveEntity desc
$orderbyHasActiveEntity
$orderbyHasActiveEntity desc
$orderbyHasDraftEntity
$orderbyHasDraftEntity desc
$selectID
$selectfilm_ID
$selectvehicle_ID
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandfilm
$expandvehicle
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved film2 vehiclesInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Film2Vehicles

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

Creates a single film2 vehicle.

Code samples

shell
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film2Vehicles \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'
http
POST /odata/v4/StarWarsFilm/Film2Vehicles HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

r = requests.post('/odata/v4/StarWarsFilm/Film2Vehicles', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

json
{
  "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

NameInTypeRequiredDescription
bodybodyStarWarsFilm.Film2Vehicles-createtrueAspect 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

json
{}

Responses

StatusMeaningDescriptionSchema
201CreatedCreated film2 vehicleInline
4XXUnknownErrorerror

Response Schema

Status Code 201

See StarWarsFilm.Film2Vehicles

NameTypeRequiredRestrictionsDescription

Retrieves a single film2 vehicle.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}') \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$selectID
$selectfilm_ID
$selectvehicle_ID
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandfilm
$expandvehicle
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved film2 vehicleInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Film2Vehicles

NameTypeRequiredRestrictionsDescription

Changes a single film2 vehicle.

Code samples

shell
# 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'
http
PATCH /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "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

NameInTypeRequiredDescription
bodybodyStarWarsFilm.Film2Vehicles-updatetrueAspect for entities with canonical universal IDs
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: 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

json
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ],
    "innererror": {}
  }
}

Responses

StatusMeaningDescriptionSchema
204No ContentSuccessNone
4XXUnknownErrorerror

Deletes a single film2 vehicle.

Code samples

shell
# You can also use wget
curl -X DELETE /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}') \
  -H 'Accept: application/json'
http
DELETE /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}') HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.delete('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Example responses

4XX Response

json
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ],
    "innererror": {}
  }
}

Responses

StatusMeaningDescriptionSchema
204No ContentSuccessNone
4XXUnknownErrorerror

Retrieves draft administrative data of a film2 vehicle.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$selectDraftUUID
$selectCreationDateTime
$selectCreatedByUser
$selectDraftIsCreatedByMe
$selectLastChangeDateTime
$selectLastChangedByUser
$selectInProcessByUser
$selectDraftIsProcessedByMe

Example responses

200 Response

json
{
  "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

StatusMeaningDescriptionSchema
200OKRetrieved draft administrative dataStarWarsFilm.DraftAdministrativeData
4XXUnknownErrorerror

Changes draft administrative data of a film2 vehicle.

Code samples

shell
# 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'
http
PATCH /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "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

NameInTypeRequiredDescription
bodybodyStarWarsFilm.DraftAdministrativeData-updatetrueNew property values
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Example responses

4XX Response

json
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ],
    "innererror": {}
  }
}

Responses

StatusMeaningDescriptionSchema
204No ContentSuccessNone
4XXUnknownErrorerror

Deletes draft administrative data of a film2 vehicle.

Code samples

shell
# You can also use wget
curl -X DELETE /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData \
  -H 'Accept: application/json'
http
DELETE /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.delete('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/DraftAdministrativeData', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Example responses

4XX Response

json
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ],
    "innererror": {}
  }
}

Responses

StatusMeaningDescriptionSchema
204No ContentSuccessNone
4XXUnknownErrorerror

Retrieves sibling entity of a film2 vehicle.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/SiblingEntity', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$selectID
$selectfilm_ID
$selectvehicle_ID
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandfilm
$expandvehicle
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved sibling entityInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Film2Vehicles

NameTypeRequiredRestrictionsDescription

Invokes action draftPrepare

Code samples

shell
# 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'
http
POST /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftPrepare HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "SideEffectsQualifier": "string"
}

Parameters

NameInTypeRequiredDescription
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity
bodybodyobjectfalseAction parameters
» SideEffectsQualifierbodystring¦nullfalsenone

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKSuccessInline
4XXUnknownErrorerror

Response Schema

Retrieves film of a film2 vehicle.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selecttitle
$selectepisode_id
$selectopening_crawl
$selectdirector
$selectproducer
$selectrelease_date
$selectIsActiveEntity
$selectHasActiveEntity
$selectHasDraftEntity
$expand*
$expandcharacters
$expandplanets
$expandstarships
$expandvehicles
$expandspecies
$expandDraftAdministrativeData
$expandSiblingEntity

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved filmInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Film

NameTypeRequiredRestrictionsDescription

Invokes action draftActivate

Code samples

shell
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate \
  -H 'Accept: application/json'
http
POST /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftActivate HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKSuccessInline
4XXUnknownErrorerror

Response Schema

Invokes action draftEdit

Code samples

shell
# 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'
http
POST /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/film/StarWarsFilm.draftEdit HTTP/1.1

Content-Type: application/json
Accept: application/json
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

json
{
  "PreserveChanges": true
}

Parameters

NameInTypeRequiredDescription
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity
bodybodyobjectfalseAction parameters
» PreserveChangesbodyboolean¦nullfalsenone

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKSuccessInline
4XXUnknownErrorerror

Response Schema

Retrieves vehicle of a film2 vehicle.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicle \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicle HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Film2Vehicles(ID={ID},IsActiveEntity='{IsActiveEntity}')/vehicle', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID
IsActiveEntitypathbooleantruekey: IsActiveEntity

Enumerated Values

ParameterValue
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selectname
$selectmodel
$selectvehicle_class
$selectmanufacturer
$selectcost_in_credits
$selectlength
$selectcrew
$selectpassengers
$selectmax_atmosphering_speed
$selectcargo_capacity
$selectconsumables
$expand*
$expandfilms
$expandpilots

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved vehicleInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Vehicles

NameTypeRequiredRestrictionsDescription

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

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Planet2People \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Planet2People HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/odata/v4/StarWarsFilm/Planet2People',
  params: {
  }, headers: headers

p JSON.parse(result)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Planet2People', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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

ParameterValue
$orderbyID
$orderbyID desc
$orderbyplanet_ID
$orderbyplanet_ID desc
$orderbypeople_ID
$orderbypeople_ID desc
$selectID
$selectplanet_ID
$selectpeople_ID
$expand*
$expandplanet
$expandpeople

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved planet2 peopleInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Planet2People

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

Retrieves a single planet2 person.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Planet2People({ID}) \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Planet2People({ID}) HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/odata/v4/StarWarsFilm/Planet2People({ID})',
  params: {
  }, headers: headers

p JSON.parse(result)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Planet2People({ID})', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$selectID
$selectplanet_ID
$selectpeople_ID
$expand*
$expandplanet
$expandpeople

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved planet2 personInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Planet2People

NameTypeRequiredRestrictionsDescription

Retrieves people of a planet2 person.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Planet2People({ID})/people \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Planet2People({ID})/people HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Planet2People({ID})/people', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selectname
$selectheight
$selectmass
$selecthair_color
$selectskin_color
$selecteye_color
$selectbirth_year
$selectgender
$selectscoundrel
$selecthomeworld_ID
$expand*
$expandhomeworld
$expandfilms
$expandspecies
$expandvehicles
$expandstarships

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved peopleInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.People

NameTypeRequiredRestrictionsDescription

Retrieves planet of a planet2 person.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Planet2People({ID})/planet \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Planet2People({ID})/planet HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Planet2People({ID})/planet', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selectname
$selectdiameter
$selectrotation_period
$selectorbital_period
$selectgravity
$selectpopulation
$selectclimate
$selectterrain
$selectsurface_water
$expand*
$expandfilms
$expandresidents

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved planetInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Planet

NameTypeRequiredRestrictionsDescription

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

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Species2People \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Species2People HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/odata/v4/StarWarsFilm/Species2People',
  params: {
  }, headers: headers

p JSON.parse(result)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Species2People', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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

ParameterValue
$orderbyID
$orderbyID desc
$orderbyspecies_ID
$orderbyspecies_ID desc
$orderbypeople_ID
$orderbypeople_ID desc
$selectID
$selectspecies_ID
$selectpeople_ID
$expand*
$expandspecies
$expandpeople

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved species2 peopleInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Species2People

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

Retrieves a single species2 person.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Species2People({ID}) \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Species2People({ID}) HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/odata/v4/StarWarsFilm/Species2People({ID})',
  params: {
  }, headers: headers

p JSON.parse(result)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Species2People({ID})', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$selectID
$selectspecies_ID
$selectpeople_ID
$expand*
$expandspecies
$expandpeople

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved species2 personInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Species2People

NameTypeRequiredRestrictionsDescription

Retrieves people of a species2 person.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Species2People({ID})/people \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Species2People({ID})/people HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Species2People({ID})/people', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selectname
$selectheight
$selectmass
$selecthair_color
$selectskin_color
$selecteye_color
$selectbirth_year
$selectgender
$selectscoundrel
$selecthomeworld_ID
$expand*
$expandhomeworld
$expandfilms
$expandspecies
$expandvehicles
$expandstarships

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved peopleInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.People

NameTypeRequiredRestrictionsDescription

Retrieves species of a species2 person.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Species2People({ID})/species \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Species2People({ID})/species HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Species2People({ID})/species', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selectname
$selectclassification
$selectdesignation
$selectaverage_height
$selectaverage_lifespan
$selecthair_colors
$selectskin_colors
$selecteye_colors
$selecthomeworld_ID
$selectlanguage
$expand*
$expandhomeworld
$expandpeople
$expandfilms

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved speciesInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Species

NameTypeRequiredRestrictionsDescription

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

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Starship2Pilot \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Starship2Pilot HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/odata/v4/StarWarsFilm/Starship2Pilot',
  params: {
  }, headers: headers

p JSON.parse(result)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Starship2Pilot', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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

ParameterValue
$orderbyID
$orderbyID desc
$orderbystarship_ID
$orderbystarship_ID desc
$orderbypilot_ID
$orderbypilot_ID desc
$selectID
$selectstarship_ID
$selectpilot_ID
$expand*
$expandstarship
$expandpilot

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved starship2 pilotInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Starship2Pilot

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

Retrieves a single starship2 pilot.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Starship2Pilot({ID}) \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Starship2Pilot({ID}) HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/odata/v4/StarWarsFilm/Starship2Pilot({ID})',
  params: {
  }, headers: headers

p JSON.parse(result)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Starship2Pilot({ID})', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$selectID
$selectstarship_ID
$selectpilot_ID
$expand*
$expandstarship
$expandpilot

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved starship2 pilotInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Starship2Pilot

NameTypeRequiredRestrictionsDescription

Retrieves pilot of a starship2 pilot.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Starship2Pilot({ID})/pilot \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Starship2Pilot({ID})/pilot HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Starship2Pilot({ID})/pilot', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selectname
$selectheight
$selectmass
$selecthair_color
$selectskin_color
$selecteye_color
$selectbirth_year
$selectgender
$selectscoundrel
$selecthomeworld_ID
$expand*
$expandhomeworld
$expandfilms
$expandspecies
$expandvehicles
$expandstarships

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved pilotInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.People

NameTypeRequiredRestrictionsDescription

Retrieves starship of a starship2 pilot.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Starship2Pilot({ID})/starship \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Starship2Pilot({ID})/starship HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Starship2Pilot({ID})/starship', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selectname
$selectmodel
$selectstarship_class
$selectmanufacturer
$selectcost_in_credits
$selectlength
$selectcrew
$selectpassengers
$selectmax_atmosphering_speed
$selecthyperdrive_rating
$selectMGLT
$selectcargo_capacity
$selectconsumables
$expand*
$expandfilms
$expandpilots

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved starshipInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Starship

NameTypeRequiredRestrictionsDescription

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

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Vehicle2Pilot \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Vehicle2Pilot HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/odata/v4/StarWarsFilm/Vehicle2Pilot',
  params: {
  }, headers: headers

p JSON.parse(result)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Vehicle2Pilot', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$topqueryintegerfalseShow only the first n items, see Paging - Top
$skipqueryintegerfalseSkip the first n items, see Paging - Skip
$searchquerystringfalseSearch items by search phrases, see Searching
$filterquerystringfalseFilter items by property values, see Filtering
$countquerybooleanfalseInclude count of items, see Count
$orderbyqueryarray[string]falseOrder items by property values, see Sorting
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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

ParameterValue
$orderbyID
$orderbyID desc
$orderbyvehicle_ID
$orderbyvehicle_ID desc
$orderbypilot_ID
$orderbypilot_ID desc
$selectID
$selectvehicle_ID
$selectpilot_ID
$expand*
$expandvehicle
$expandpilot

Example responses

200 Response

json
{
  "@count": 0,
  "value": [
    {}
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved vehicle2 pilotInline
4XXUnknownErrorerror

Response Schema

Status Code 200

Collection of Vehicle2Pilot

NameTypeRequiredRestrictionsDescription
» @countanyfalsenoneThe number of entities in the collection. Available when using the $count query option.

anyOf

NameTypeRequiredRestrictionsDescription
»» anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
»» anonymousstringfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
» value[object]falsenonenone

Retrieves a single vehicle2 pilot.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Vehicle2Pilot({ID}) \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Vehicle2Pilot({ID}) HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/odata/v4/StarWarsFilm/Vehicle2Pilot({ID})',
  params: {
  }, headers: headers

p JSON.parse(result)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Vehicle2Pilot({ID})', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$selectID
$selectvehicle_ID
$selectpilot_ID
$expand*
$expandvehicle
$expandpilot

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved vehicle2 pilotInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Vehicle2Pilot

NameTypeRequiredRestrictionsDescription

Retrieves pilot of a vehicle2 pilot.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Vehicle2Pilot({ID})/pilot \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Vehicle2Pilot({ID})/pilot HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Vehicle2Pilot({ID})/pilot', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selectname
$selectheight
$selectmass
$selecthair_color
$selectskin_color
$selecteye_color
$selectbirth_year
$selectgender
$selectscoundrel
$selecthomeworld_ID
$expand*
$expandhomeworld
$expandfilms
$expandspecies
$expandvehicles
$expandstarships

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved pilotInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.People

NameTypeRequiredRestrictionsDescription

Retrieves vehicle of a vehicle2 pilot.

Code samples

shell
# You can also use wget
curl -X GET /odata/v4/StarWarsFilm/Vehicle2Pilot({ID})/vehicle \
  -H 'Accept: application/json'
http
GET /odata/v4/StarWarsFilm/Vehicle2Pilot({ID})/vehicle HTTP/1.1

Accept: application/json
javascript

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);
});
ruby
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)
python
import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/odata/v4/StarWarsFilm/Vehicle2Pilot({ID})/vehicle', headers = headers)

print(r.json())
php
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
$selectqueryarray[string]falseSelect properties to be returned, see Select
$expandqueryarray[string]falseThe 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
IDpathstring(uuid)truekey: ID

Enumerated Values

ParameterValue
$selectID
$selectcreatedAt
$selectcreatedBy
$selectmodifiedAt
$selectmodifiedBy
$selectname
$selectmodel
$selectvehicle_class
$selectmanufacturer
$selectcost_in_credits
$selectlength
$selectcrew
$selectpassengers
$selectmax_atmosphering_speed
$selectcargo_capacity
$selectconsumables
$expand*
$expandfilms
$expandpilots

Example responses

200 Response

json
{}

Responses

StatusMeaningDescriptionSchema
200OKRetrieved vehicleInline
4XXUnknownErrorerror

Response Schema

Status Code 200

See StarWarsFilm.Vehicles

NameTypeRequiredRestrictionsDescription

Batch Requests

Sends a group of requests

Code samples

shell
# You can also use wget
curl -X POST /odata/v4/StarWarsFilm/$batch \
  -H 'Content-Type: multipart/mixed;boundary=request-separator' \
  -H 'Accept: multipart/mixed'
http
POST /odata/v4/StarWarsFilm/$batch HTTP/1.1

Content-Type: multipart/mixed;boundary=request-separator
Accept: multipart/mixed
javascript
const 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);
});
ruby
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)
python
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
<?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());
 }

 // ...
java
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());
go
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

NameInTypeRequiredDescription
bodybodystringtrueBatch request

Example responses

200 Response

4XX Response

json
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ],
    "innererror": {}
  }
}

Responses

StatusMeaningDescriptionSchema
200OKBatch responsestring
4XXUnknownErrorerror

Schemas

StarWarsFilm.DraftAdministrativeData

json
{
  "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

NameTypeRequiredRestrictionsDescription
DraftUUIDstring(uuid)falsenonenone
CreationDateTimestring(date-time)¦nullfalsenonenone
CreatedByUserstring¦nullfalsenonenone
DraftIsCreatedByMeboolean¦nullfalsenonenone
LastChangeDateTimestring(date-time)¦nullfalsenonenone
LastChangedByUserstring¦nullfalsenonenone
InProcessByUserstring¦nullfalsenonenone
DraftIsProcessedByMeboolean¦nullfalsenonenone

StarWarsFilm.DraftAdministrativeData-create

json
{
  "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

NameTypeRequiredRestrictionsDescription
DraftUUIDstring(uuid)truenonenone
CreationDateTimestring(date-time)¦nullfalsenonenone
CreatedByUserstring¦nullfalsenonenone
DraftIsCreatedByMeboolean¦nullfalsenonenone
LastChangeDateTimestring(date-time)¦nullfalsenonenone
LastChangedByUserstring¦nullfalsenonenone
InProcessByUserstring¦nullfalsenonenone
DraftIsProcessedByMeboolean¦nullfalsenonenone

StarWarsFilm.DraftAdministrativeData-update

json
{
  "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

NameTypeRequiredRestrictionsDescription
CreationDateTimestring(date-time)¦nullfalsenonenone
CreatedByUserstring¦nullfalsenonenone
DraftIsCreatedByMeboolean¦nullfalsenonenone
LastChangeDateTimestring(date-time)¦nullfalsenonenone
LastChangedByUserstring¦nullfalsenonenone
InProcessByUserstring¦nullfalsenonenone
DraftIsProcessedByMeboolean¦nullfalsenonenone

StarWarsFilm.Film

json
{
  "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

NameTypeRequiredRestrictionsDescription
IDstring(uuid)falsenonenone
createdAtstring(date-time)¦nullfalsenonenone
createdBystring¦nullfalsenonenone
modifiedAtstring(date-time)¦nullfalsenonenone
modifiedBystring¦nullfalsenonenone
titlestring¦nullfalsenonenone
episode_idinteger(int32)¦nullfalsenonenone
opening_crawlstring¦nullfalsenonenone
directorstring¦nullfalsenonenone
producerstring¦nullfalsenonenone
release_datestring(date)¦nullfalsenonenone
characters[object]falsenonenone
characters@countcountfalsenoneThe number of entities in the collection. Available when using the $count query option.
planets[object]falsenonenone
planets@countcountfalsenoneThe number of entities in the collection. Available when using the $count query option.
starships[object]falsenonenone
starships@countcountfalsenoneThe number of entities in the collection. Available when using the $count query option.
vehicles[object]falsenonenone
vehicles@countcountfalsenoneThe number of entities in the collection. Available when using the $count query option.
species[object]falsenonenone
species@countcountfalsenoneThe number of entities in the collection. Available when using the $count query option.
IsActiveEntitybooleanfalsenonenone
HasActiveEntitybooleanfalsenonenone
HasDraftEntitybooleanfalsenonenone
DraftAdministrativeDataStarWarsFilm.DraftAdministrativeData¦nullfalsenonenone
SiblingEntityobject¦nullfalsenoneSee StarWarsFilm.Film

StarWarsFilm.Film-create

json
{
  "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

NameTypeRequiredRestrictionsDescription
titlestring¦nullfalsenonenone
episode_idinteger(int32)¦nullfalsenonenone
opening_crawlstring¦nullfalsenonenone
directorstring¦nullfalsenonenone
producerstring¦nullfalsenonenone
release_datestring(date)¦nullfalsenonenone
characters[StarWarsFilm.Film2People-create]falsenonenone
planets[StarWarsFilm.Film2Planets-create]falsenonenone
starships[StarWarsFilm.Film2Starships-create]falsenonenone
vehicles[StarWarsFilm.Film2Vehicles-create]falsenonenone
species[StarWarsFilm.Film2Species-create]falsenonenone
IsActiveEntitybooleantruenonenone
HasActiveEntitybooleanfalsenonenone
HasDraftEntitybooleanfalsenonenone
DraftAdministrativeDataStarWarsFilm.DraftAdministrativeData-create¦nullfalsenonenone

StarWarsFilm.Film-update

json
{
  "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

NameTypeRequiredRestrictionsDescription
titlestring¦nullfalsenonenone
episode_idinteger(int32)¦nullfalsenonenone
opening_crawlstring¦nullfalsenonenone
directorstring¦nullfalsenonenone
producerstring¦nullfalsenonenone
release_datestring(date)¦nullfalsenonenone
characters[StarWarsFilm.Film2People-create]falsenonenone
planets[StarWarsFilm.Film2Planets-create]falsenonenone
starships[StarWarsFilm.Film2Starships-create]falsenonenone
vehicles[StarWarsFilm.Film2Vehicles-create]falsenonenone
species[StarWarsFilm.Film2Species-create]falsenonenone
HasActiveEntitybooleanfalsenonenone
HasDraftEntitybooleanfalsenonenone
DraftAdministrativeDataStarWarsFilm.DraftAdministrativeData-create¦nullfalsenonenone

StarWarsFilm.Film2People

json
{
  "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

NameTypeRequiredRestrictionsDescription
IDstring(uuid)falsenonenone
filmobject¦nullfalsenoneSee StarWarsFilm.Film
film_IDstring(uuid)¦nullfalsenonenone
peopleobject¦nullfalsenoneSee StarWarsFilm.People
people_IDstring(uuid)¦nullfalsenonenone
IsActiveEntitybooleanfalsenonenone
HasActiveEntitybooleanfalsenonenone
HasDraftEntitybooleanfalsenonenone
DraftAdministrativeDataStarWarsFilm.DraftAdministrativeData¦nullfalsenonenone
SiblingEntityobject¦nullfalsenoneSee StarWarsFilm.Film2People

StarWarsFilm.Film2People-create

json
{
  "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

NameTypeRequiredRestrictionsDescription
film_IDstring(uuid)¦nullfalsenonenone
people_IDstring(uuid)¦nullfalsenonenone
IsActiveEntitybooleantruenonenone
HasActiveEntitybooleanfalsenonenone
HasDraftEntitybooleanfalsenonenone
DraftAdministrativeDataStarWarsFilm.DraftAdministrativeData-create¦nullfalsenonenone

StarWarsFilm.Film2People-update

json
{
  "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

NameTypeRequiredRestrictionsDescription
film_IDstring(uuid)¦nullfalsenonenone
people_IDstring(uuid)¦nullfalsenonenone
HasActiveEntitybooleanfalsenonenone
HasDraftEntitybooleanfalsenonenone
DraftAdministrativeDataStarWarsFilm.DraftAdministrativeData-create¦nullfalsenonenone

StarWarsFilm.Film2Planets

json
{
  "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

NameTypeRequiredRestrictionsDescription
IDstring(uuid)falsenonenone
filmobject¦nullfalsenoneSee StarWarsFilm.Film
film_IDstring(uuid)¦nullfalsenonenone
planetobject¦nullfalsenoneSee StarWarsFilm.Planet
planet_IDstring(uuid)¦nullfalsenonenone
IsActiveEntitybooleanfalsenonenone
HasActiveEntitybooleanfalsenonenone
HasDraftEntitybooleanfalsenonenone
DraftAdministrativeDataStarWarsFilm.DraftAdministrativeData¦nullfalsenonenone
SiblingEntityobject¦nullfalsenoneSee StarWarsFilm.Film2Planets

StarWarsFilm.Film2Planets-create

json
{
  "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

NameTypeRequiredRestrictionsDescription
film_IDstring(uuid)¦nullfalsenonenone
planet_IDstring(uuid)¦nullfalsenonenone
IsActiveEntitybooleantruenonenone
HasActiveEntitybooleanfalsenonenone
HasDraftEntitybooleanfalsenonenone
DraftAdministrativeDataStarWarsFilm.DraftAdministrativeData-create¦nullfalsenonenone

StarWarsFilm.Film2Planets-update

json
{
  "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

NameTypeRequiredRestrictionsDescription
film_IDstring(uuid)¦nullfalsenonenone
planet_IDstring(uuid)¦nullfalsenonenone
HasActiveEntitybooleanfalsenonenone
HasDraftEntitybooleanfalsenonenone
DraftAdministrativeDataStarWarsFilm.DraftAdministrativeData-create¦nullfalsenonenone

StarWarsFilm.Film2Species

json
{
  "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

NameTypeRequiredRestrictionsDescription
IDstring(uuid)falsenonenone
filmobject¦nullfalsenoneSee StarWarsFilm.Film
film_IDstring(uuid)¦nullfalsenonenone
specieobject¦nullfalsenoneSee StarWarsFilm.Species
specie_IDstring(uuid)¦nullfalsenonenone
IsActiveEntitybooleanfalsenonenone
HasActiveEntitybooleanfalsenonenone
HasDraftEntitybooleanfalsenonenone
DraftAdministrativeDataStarWarsFilm.DraftAdministrativeData¦nullfalsenonenone
SiblingEntityobject¦nullfalsenoneSee StarWarsFilm.Film2Species

StarWarsFilm.Film2Species-create

json
{
  "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

NameTypeRequiredRestrictionsDescription
film_IDstring(uuid)¦nullfalsenonenone
specie_IDstring(uuid)¦nullfalsenonenone
IsActiveEntitybooleantruenonenone
HasActiveEntitybooleanfalsenonenone
HasDraftEntitybooleanfalsenonenone
DraftAdministrativeDataStarWarsFilm.DraftAdministrativeData-create¦nullfalsenonenone

StarWarsFilm.Film2Species-update

json
{
  "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

NameTypeRequiredRestrictionsDescription
film_IDstring(uuid)¦nullfalsenonenone
specie_IDstring(uuid)¦nullfalsenonenone
HasActiveEntitybooleanfalsenonenone
HasDraftEntitybooleanfalsenonenone
DraftAdministrativeDataStarWarsFilm.DraftAdministrativeData-create¦nullfalsenonenone

StarWarsFilm.Film2Starships

json
{
  "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

NameTypeRequiredRestrictionsDescription
IDstring(uuid)falsenonenone
filmobject¦nullfalsenoneSee StarWarsFilm.Film
film_IDstring(uuid)¦nullfalsenonenone
starshipobject¦nullfalsenoneSee StarWarsFilm.Starship
starship_IDstring(uuid)¦nullfalsenonenone
IsActiveEntitybooleanfalsenonenone
HasActiveEntitybooleanfalsenonenone
HasDraftEntitybooleanfalsenonenone
DraftAdministrativeDataStarWarsFilm.DraftAdministrativeData¦nullfalsenonenone
SiblingEntityobject¦nullfalsenoneSee StarWarsFilm.Film2Starships

StarWarsFilm.Film2Starships-create

json
{
  "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

NameTypeRequiredRestrictionsDescription
film_IDstring(uuid)¦nullfalsenonenone
starship_IDstring(uuid)¦nullfalsenonenone
IsActiveEntitybooleantruenonenone
HasActiveEntitybooleanfalsenonenone
HasDraftEntitybooleanfalsenonenone
DraftAdministrativeDataStarWarsFilm.DraftAdministrativeData-create¦nullfalsenonenone

StarWarsFilm.Film2Starships-update

json
{
  "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

NameTypeRequiredRestrictionsDescription
film_IDstring(uuid)¦nullfalsenonenone
starship_IDstring(uuid)¦nullfalsenonenone
HasActiveEntitybooleanfalsenonenone
HasDraftEntitybooleanfalsenonenone
DraftAdministrativeDataStarWarsFilm.DraftAdministrativeData-create¦nullfalsenonenone

StarWarsFilm.Film2Vehicles

json
{
  "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

NameTypeRequiredRestrictionsDescription
IDstring(uuid)falsenonenone
filmobject¦nullfalsenoneSee StarWarsFilm.Film
film_IDstring(uuid)¦nullfalsenonenone
vehicleobject¦nullfalsenoneSee StarWarsFilm.Vehicles
vehicle_IDstring(uuid)¦nullfalsenonenone
IsActiveEntitybooleanfalsenonenone
HasActiveEntitybooleanfalsenonenone
HasDraftEntitybooleanfalsenonenone
DraftAdministrativeDataStarWarsFilm.DraftAdministrativeData¦nullfalsenonenone
SiblingEntityobject¦nullfalsenoneSee StarWarsFilm.Film2Vehicles

StarWarsFilm.Film2Vehicles-create

json
{
  "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

NameTypeRequiredRestrictionsDescription
film_IDstring(uuid)¦nullfalsenonenone
vehicle_IDstring(uuid)¦nullfalsenonenone
IsActiveEntitybooleantruenonenone
HasActiveEntitybooleanfalsenonenone
HasDraftEntitybooleanfalsenonenone
DraftAdministrativeDataStarWarsFilm.DraftAdministrativeData-create¦nullfalsenonenone

StarWarsFilm.Film2Vehicles-update

json
{
  "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

NameTypeRequiredRestrictionsDescription
film_IDstring(uuid)¦nullfalsenonenone
vehicle_IDstring(uuid)¦nullfalsenonenone
HasActiveEntitybooleanfalsenonenone
HasDraftEntitybooleanfalsenonenone
DraftAdministrativeDataStarWarsFilm.DraftAdministrativeData-create¦nullfalsenonenone

StarWarsFilm.FilmEpisodeDesc

json
{
  "ID": "01234567-89ab-cdef-0123-456789abcdef",
  "episode_id": 0,
  "title": "string",
  "episodeIDDesc": "string"
}

All Films in the Star Wars Skywalker Saga

Properties

NameTypeRequiredRestrictionsDescription
IDstring(uuid)falsenonenone
episode_idinteger(int32)¦nullfalsenonenone
titlestring¦nullfalsenonenone
episodeIDDescstring¦nullfalsenonenone

StarWarsFilm.People

json
{
  "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

NameTypeRequiredRestrictionsDescription
IDstring(uuid)falsenonenone
createdAtstring(date-time)¦nullfalsenonenone
createdBystring¦nullfalsenonenone
modifiedAtstring(date-time)¦nullfalsenonenone
modifiedBystring¦nullfalsenonenone
namestring¦nullfalsenonenone
heightstring¦nullfalsenonenone
massstring¦nullfalsenonenone
hair_colorstring¦nullfalsenonenone
skin_colorstring¦nullfalsenonenone
eye_colorstring¦nullfalsenonenone
birth_yearstring¦nullfalsenonenone
genderstring¦nullfalsenonenone
scoundrelboolean¦nullfalsenonenone
homeworldobject¦nullfalsenoneSee StarWarsFilm.Planet
homeworld_IDstring(uuid)¦nullfalsenonenone
films[object]falsenonenone
films@countcountfalsenoneThe number of entities in the collection. Available when using the $count query option.
species[object]falsenonenone
species@countcountfalsenoneThe number of entities in the collection. Available when using the $count query option.
vehicles[object]falsenonenone
vehicles@countcountfalsenoneThe number of entities in the collection. Available when using the $count query option.
starships[object]falsenonenone
starships@countcountfalsenoneThe number of entities in the collection. Available when using the $count query option.

StarWarsFilm.Planet

json
{
  "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

NameTypeRequiredRestrictionsDescription
IDstring(uuid)falsenonenone
createdAtstring(date-time)¦nullfalsenonenone
createdBystring¦nullfalsenonenone
modifiedAtstring(date-time)¦nullfalsenonenone
modifiedBystring¦nullfalsenonenone
namestring¦nullfalsenonenone
diameterstring¦nullfalsenonenone
rotation_periodstring¦nullfalsenonenone
orbital_periodstring¦nullfalsenonenone
gravitystring¦nullfalsenonenone
populationstring¦nullfalsenonenone
climatestring¦nullfalsenonenone
terrainstring¦nullfalsenonenone
surface_waterstring¦nullfalsenonenone
films[object]falsenonenone
films@countcountfalsenoneThe number of entities in the collection. Available when using the $count query option.
residents[object]falsenonenone
residents@countcountfalsenoneThe number of entities in the collection. Available when using the $count query option.

StarWarsFilm.Planet2People

json
{
  "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

NameTypeRequiredRestrictionsDescription
IDstring(uuid)falsenonenone
planetobject¦nullfalsenoneSee StarWarsFilm.Planet
planet_IDstring(uuid)¦nullfalsenonenone
peopleobject¦nullfalsenoneSee StarWarsFilm.People
people_IDstring(uuid)¦nullfalsenonenone

StarWarsFilm.Planet2People-create

json
{
  "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

NameTypeRequiredRestrictionsDescription
planet_IDstring(uuid)¦nullfalsenonenone
people_IDstring(uuid)¦nullfalsenonenone

StarWarsFilm.Species

json
{
  "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

NameTypeRequiredRestrictionsDescription
IDstring(uuid)falsenonenone
createdAtstring(date-time)¦nullfalsenonenone
createdBystring¦nullfalsenonenone
modifiedAtstring(date-time)¦nullfalsenonenone
modifiedBystring¦nullfalsenonenone
namestring¦nullfalsenonenone
classificationstring¦nullfalsenonenone
designationstring¦nullfalsenonenone
average_heightstring¦nullfalsenonenone
average_lifespanstring¦nullfalsenonenone
hair_colorsstring¦nullfalsenonenone
skin_colorsstring¦nullfalsenonenone
eye_colorsstring¦nullfalsenonenone
homeworldobject¦nullfalsenoneSee StarWarsFilm.Planet
homeworld_IDstring(uuid)¦nullfalsenonenone
languagestring¦nullfalsenonenone
people[object]falsenonenone
people@countcountfalsenoneThe number of entities in the collection. Available when using the $count query option.
films[object]falsenonenone
films@countcountfalsenoneThe number of entities in the collection. Available when using the $count query option.

StarWarsFilm.Species2People

json
{
  "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

NameTypeRequiredRestrictionsDescription
IDstring(uuid)falsenonenone
speciesobject¦nullfalsenoneSee StarWarsFilm.Species
species_IDstring(uuid)¦nullfalsenonenone
peopleobject¦nullfalsenoneSee StarWarsFilm.People
people_IDstring(uuid)¦nullfalsenonenone

StarWarsFilm.Species2People-create

json
{
  "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

NameTypeRequiredRestrictionsDescription
species_IDstring(uuid)¦nullfalsenonenone
people_IDstring(uuid)¦nullfalsenonenone

StarWarsFilm.Starship

json
{
  "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

NameTypeRequiredRestrictionsDescription
IDstring(uuid)falsenonenone
createdAtstring(date-time)¦nullfalsenonenone
createdBystring¦nullfalsenonenone
modifiedAtstring(date-time)¦nullfalsenonenone
modifiedBystring¦nullfalsenonenone
namestring¦nullfalsenonenone
modelstring¦nullfalsenonenone
starship_classstring¦nullfalsenonenone
manufacturerstring¦nullfalsenonenone
cost_in_creditsstring¦nullfalsenonenone
lengthstring¦nullfalsenonenone
crewstring¦nullfalsenonenone
passengersstring¦nullfalsenonenone
max_atmosphering_speedstring¦nullfalsenonenone
hyperdrive_ratingstring¦nullfalsenonenone
MGLTstring¦nullfalsenonenone
cargo_capacitystring¦nullfalsenonenone
consumablesstring¦nullfalsenonenone
films[object]falsenonenone
films@countcountfalsenoneThe number of entities in the collection. Available when using the $count query option.
pilots[object]falsenonenone
pilots@countcountfalsenoneThe number of entities in the collection. Available when using the $count query option.

StarWarsFilm.Starship2Pilot

json
{
  "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

NameTypeRequiredRestrictionsDescription
IDstring(uuid)falsenonenone
starshipobject¦nullfalsenoneSee StarWarsFilm.Starship
starship_IDstring(uuid)¦nullfalsenonenone
pilotobject¦nullfalsenoneSee StarWarsFilm.People
pilot_IDstring(uuid)¦nullfalsenonenone

StarWarsFilm.Vehicle2Pilot

json
{
  "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

NameTypeRequiredRestrictionsDescription
IDstring(uuid)falsenonenone
vehicleobject¦nullfalsenoneSee StarWarsFilm.Vehicles
vehicle_IDstring(uuid)¦nullfalsenonenone
pilotobject¦nullfalsenoneSee StarWarsFilm.People
pilot_IDstring(uuid)¦nullfalsenonenone

StarWarsFilm.Vehicles

json
{
  "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

NameTypeRequiredRestrictionsDescription
IDstring(uuid)falsenonenone
createdAtstring(date-time)¦nullfalsenonenone
createdBystring¦nullfalsenonenone
modifiedAtstring(date-time)¦nullfalsenonenone
modifiedBystring¦nullfalsenonenone
namestring¦nullfalsenonenone
modelstring¦nullfalsenonenone
vehicle_classstring¦nullfalsenonenone
manufacturerstring¦nullfalsenonenone
cost_in_creditsstring¦nullfalsenonenone
lengthstring¦nullfalsenonenone
crewstring¦nullfalsenonenone
passengersstring¦nullfalsenonenone
max_atmosphering_speedstring¦nullfalsenonenone
cargo_capacitystring¦nullfalsenonenone
consumablesstring¦nullfalsenonenone
films[object]falsenonenone
films@countcountfalsenoneThe number of entities in the collection. Available when using the $count query option.
pilots[object]falsenonenone
pilots@countcountfalsenoneThe number of entities in the collection. Available when using the $count query option.

StarWarsFilm.directors

json
{
  "director": "string"
}

All Films in the Star Wars Skywalker Saga

Properties

NameTypeRequiredRestrictionsDescription
directorstringfalsenonenone

StarWarsFilm.producers

json
{
  "producer": "string"
}

All Films in the Star Wars Skywalker Saga

Properties

NameTypeRequiredRestrictionsDescription
producerstringfalsenonenone

count

json
0

The number of entities in the collection. Available when using the $count query option.

Properties

anyOf

NameTypeRequiredRestrictionsDescription
anonymousnumberfalsenonenone

or

NameTypeRequiredRestrictionsDescription
anonymousstringfalsenonenone

error

json
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ],
    "innererror": {}
  }
}

Properties

NameTypeRequiredRestrictionsDescription
errorobjecttruenonenone
» codestringtruenonenone
» messagestringtruenonenone
» targetstringfalsenonenone
» details[object]falsenonenone
»» codestringtruenonenone
»» messagestringtruenonenone
»» targetstringfalsenonenone
» innererrorobjectfalsenoneThe structure of this object is service-specific