SmartEdit Webservices

These core-specific services include those for configuration, internationalization, and language.
More information: https://helloreverb.com
Contact Info: hello@helloreverb.com
Version: 1.0
BasePath:/smarteditwebservices
Use of this file is subject to the terms of your agreement with SAP SE or its affiliates respecting the use of the SAP product for which this file relates.
http://apache.org/licenses/LICENSE-2.0.html

Access

  1. OAuth AuthorizationUrl:TokenUrl:https://{oauth2_url}/authorizationserver/oauth/token
  2. OAuth AuthorizationUrl:TokenUrl:https://{oauth2_url}/authorizationserver/oauth/token

Methods

[ Jump to Models ]

Table of Contents

Configurations

Languages

Configurations

Up
delete /v1/configurations/{key}
Remove a Configuration (deleteUsingDELETE)
Endpoint to remove cms configuration data that matches the given key

Path parameters

key (required)
Path Parameter — Configuration data identifier

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK

204

No Content

401

Must be authenticated as an Admin to access this resource

403

Forbidden

Up
get /v1/configurations/{key}
Find a Configuration by Key (findByKeyUsingGET)
Endpoint to retrieve cms configuration data that matches the given key value

Path parameters

key (required)
Path Parameter — Configuration data identifier

Return type

configurationData

Example data

Content-Type: application/json
{
  "value" : "en",
  "key" : "defaultToolingLanguage"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK configurationData

401

Must be authenticated as an Admin or CMS Manager to access this resource

403

Forbidden

404

Not Found

Up
get /v1/configurations
Get All Configurations (loadAllUsingGET)
Endpoint to retrieve all cms configuration data

Return type

ConfigurationDataListWsDto

Example data

Content-Type: application/json
{
  "configurations" : [ {
    "value" : "en",
    "key" : "defaultToolingLanguage"
  }, {
    "value" : "en",
    "key" : "defaultToolingLanguage"
  } ]
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK ConfigurationDataListWsDto

401

Must be authenticated as an Admin or CMS Manager to access this resource

403

Forbidden

404

Not Found

Up
post /v1/configurations
Save a Configuration (saveUsingPOST)
Endpoint to create cms configuration data

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

data configurationData (required)
Body Parameter — Configuration data

Return type

configurationData

Example data

Content-Type: application/json
{
  "value" : "en",
  "key" : "defaultToolingLanguage"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK configurationData

201

Created

401

Must be authenticated as an Admin to access this resource

403

Forbidden

404

Not Found

Up
put /v1/configurations/{key}
Update a Configuration (updateUsingPUT)
Endpoint to update cms configuration data

Path parameters

key (required)
Path Parameter — Configuration data identifier

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

data configurationData (required)
Body Parameter — Configuration data

Return type

configurationData

Example data

Content-Type: application/json
{
  "value" : "en",
  "key" : "defaultToolingLanguage"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK configurationData

201

Created

400

Configuration data input is invalid

401

Must be authenticated as an Admin to access this resource

403

Forbidden

404

Not Found

Languages

Up
get /v1/i18n/languages
Get Languages (getToolingLanguagesUsingGET)
Endpoint to retrieve list of supported languages

Return type

SmarteditLanguageListData

Example data

Content-Type: application/json
{
  "languages" : [ {
    "isoCode" : "en",
    "name" : "English"
  }, {
    "isoCode" : "en",
    "name" : "English"
  } ]
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK SmarteditLanguageListData

401

Unauthorized

403

Forbidden

404

Not Found

Up
get /v1/i18n/translations/{locale}
Get a Translation Map (getTranslationMapUsingGET)
Endpoint to retrieve translated data using the specified locale value

Path parameters

locale (required)
Path Parameter — Locale identifier consisting of a language and region

Return type

languageMap

Example data

Content-Type: application/json
{
  "value" : {
    "key" : "value"
  }
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK languageMap

401

Unauthorized

403

Forbidden

404

Not Found

Models

[ Jump to Methods ]

Table of Contents

  1. ConfigurationDataListWsDto - ConfigurationDataListWsDto
  2. SmarteditLanguageListData - SmarteditLanguageListData
  3. configurationData - configurationData
  4. languageData - languageData
  5. languageMap - languageMap

ConfigurationDataListWsDto - ConfigurationDataListWsDto Up

List of configurations
configurations
array[configurationData] The list of configuration data

SmarteditLanguageListData - SmarteditLanguageListData Up

List of languages
languages
array[languageData] The list of language data

configurationData - configurationData Up

Configuration data
key
String The configuration data key
example: defaultToolingLanguage
value
String The configuration data value
example: en

languageData - languageData Up

Language data
isoCode
String The iso code of the language data
example: en
name
String The name of the language data
example: English

languageMap - languageMap Up

Language map for a given locale
value
map[String, String] The map of localized key-value pairs