# Website content
# Create and Connect Thirdparty app
# Create App
- To create an app I should visit "https://ws.travus.de/#/" and select the 'Apps' tab.

- I click on the 'Create App' button.

- I fill the 'Label' and 'HTTP Address' fields and click on the 'Save' button.

# Create Content Type
- To create a content type I should visit "https://ws.travus.de/#/" and select the 'Content Types' tab.

- I click on the button 'Create Content Type' button.

- I have to fill the 'Label' field and add the valid schema in the second field.After that I save the file.

# Learn more about JSON Schema:"https://json-schema.org/understanding-json-schema/"
# Bound Content Type to the App
- I open the 'Apps' tab and double click on the newly created app.

- I click on the 'Create Content' button.

- I select the needed content type,then fill all needed fields and click on the 'Save' button.

# Update App Content Type
To update the already created content types,I can click on the edit button.

Also,I can use Postman use the needed credentials to update the content type.
- I open Postman and start to fill request URL.
- I type needed service URl.

- I open the App bounded to needed content-type and past 'App ID' into request URl field.

- I go to the 'Content Types' tab and copy 'Key' of the needed content-type then paste it in the request URL field.

- I go back to App Details and copy 'Access Token'.

- I click on the 'Headers' tab in Postman.Type 'appid' in the 'Key' field and paste access token in the 'Value' field.

- I select the 'Body' tab,then select the 'raw' format and select 'JSON' in appeared drop down menu.After Paste needed Schema in field at the bottom.

- All information is filled succesfully and I click on the 'Send' button.After that Content type will be updated succesfully with status '200' and I get "uid_content_type" at the response field.That "uid_content_type" I could use for creating content.

# List All Content-types with a specific key in app
- I go to the needed App.
- I copy the 'App ID' and paste it in the request URL field.

- I select 'Headers' tab,then create new query param with 'appid' name and paste the 'Access Token' in value field.

- I select the 'Body' tab,then select the 'raw' format and select 'JSON' in appeared drop down menu.After type curly brackets in filed at the bottom.

- At the end of request url, I write the required key that is specified in the app.

- All information is filled succesfully and I click on the 'Send' button.After that I get all content-types with specified key.

# Get the last created Content-type with a specific key in app
- The difference betwen listing of all content-types and the last content-type is in 's' when specified in the request url.I just have to remove it.

- I click on the 'Send' button and after I get successfull response with last content type.

# Add App Content
- I go to the needed app and copy 'App ID'. Then I should paste it in the request URL.

- I copy the 'Access Token' and paste it in the 'Value' field with Key 'appid'.

- Then I select the 'Body' tab and type the needed schema:
- The "uid_content_type" I should use from the previous step 'Update App Content Type'.
- The "label" сan have any data. He is independent.
- The "key" I should take from the content type bounded to app.
- The "content" structure should be identical with content schema.

- I click on the 'Send' button and I get "uid_content."

# Get all Contents bounded to App
- I change the method from 'POST' to 'GET'.
- Remove all data from structure and leave only curly brackets.
- In the last request URL element, I must put the required key instead of '/content '. In the test case it is '/1234'.

- I click on the 'Send' button and then I get all contents with requierd key which is bound to the needed app.

# Get the last Content bounded to App
- The difference betwen listing of all contents and the last content is in 's' when specified in the request url.I just have to remove it. Get the last content with required key