CountryTranslationApi
All URIs are relative to http://127.0.0.1:8000/api
| Method | HTTP request | Description |
|---|---|---|
| countryTranslationDestroy | DELETE /country-translation/{countryTranslation} | Remove the specified resource from storage |
| countryTranslationIndex | GET /country-translation | Display a listing of the resource |
| countryTranslationShow | GET /country-translation/{countryTranslation} | Display the specified resource |
| countryTranslationStore | POST /country-translation | Store a newly created resource in storage |
| countryTranslationUpdate | PATCH /country-translation/{countryTranslation} | Update the specified resource in storage |
| countryTranslationUpdate2 | PUT /country-translation/{countryTranslation} | Update the specified resource in storage |
countryTranslationDestroy
countryTranslationDestroy()
Example
import {
CountryTranslationApi,
Configuration
} from './api';
const configuration = new Configuration();
const apiInstance = new CountryTranslationApi(configuration);
let countryTranslation: string; //The country translation ID (default to undefined)
const { status, data } = await apiInstance.countryTranslationDestroy(
countryTranslation
);
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| countryTranslation | [string] | The country translation ID | defaults to undefined |
Return type
void (empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers | |————-|————-|——————| |204 | No content | - | |404 | Not found | - | |401 | Unauthenticated | - |
Back to top Back to API list Back to Model list Back to README
countryTranslationIndex
CountryTranslationIndex200Response countryTranslationIndex()
Example
import {
CountryTranslationApi,
Configuration
} from './api';
const configuration = new Configuration();
const apiInstance = new CountryTranslationApi(configuration);
let page: number; // (optional) (default to undefined)
let perPage: number; // (optional) (default to undefined)
let include: string; //Comma-separated list of related resources to include. Valid values: `country`, `language`. (optional) (default to undefined)
const { status, data } = await apiInstance.countryTranslationIndex(
page,
perPage,
include
);
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| page | [number] | (optional) defaults to undefined | |
| perPage | [number] | (optional) defaults to undefined | |
| include | [string] | Comma-separated list of related resources to include. Valid values: `country`, `language`. | (optional) defaults to undefined |
Return type
CountryTranslationIndex200Response
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers | |————-|————-|——————| |200 | Paginated set of `CountryTranslationResource` | - | |401 | Unauthenticated | - | |422 | Validation error | - | |403 | Authorization error | - |
Back to top Back to API list Back to Model list Back to README
countryTranslationShow
CountryTranslationShow200Response countryTranslationShow()
Example
import {
CountryTranslationApi,
Configuration
} from './api';
const configuration = new Configuration();
const apiInstance = new CountryTranslationApi(configuration);
let countryTranslation: string; //The country translation ID (default to undefined)
let include: string; //Comma-separated list of related resources to include. Valid values: `country`, `language`. (optional) (default to undefined)
const { status, data } = await apiInstance.countryTranslationShow(
countryTranslation,
include
);
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| countryTranslation | [string] | The country translation ID | defaults to undefined |
| include | [string] | Comma-separated list of related resources to include. Valid values: `country`, `language`. | (optional) defaults to undefined |
Return type
CountryTranslationShow200Response
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers | |————-|————-|——————| |200 | `CountryTranslationResource` | - | |404 | Not found | - | |401 | Unauthenticated | - | |422 | Validation error | - | |403 | Authorization error | - |
Back to top Back to API list Back to Model list Back to README
countryTranslationStore
CountryTranslationShow200Response countryTranslationStore(storeCountryTranslationRequest)
Example
import {
CountryTranslationApi,
Configuration,
StoreCountryTranslationRequest
} from './api';
const configuration = new Configuration();
const apiInstance = new CountryTranslationApi(configuration);
let storeCountryTranslationRequest: StoreCountryTranslationRequest; //
const { status, data } = await apiInstance.countryTranslationStore(
storeCountryTranslationRequest
);
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| storeCountryTranslationRequest | StoreCountryTranslationRequest |
Return type
CountryTranslationShow200Response
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers | |————-|————-|——————| |200 | `CountryTranslationResource` | - | |422 | Validation error | - | |401 | Unauthenticated | - | |403 | Authorization error | - |
Back to top Back to API list Back to Model list Back to README
countryTranslationUpdate
CountryTranslationShow200Response countryTranslationUpdate()
Example
import {
CountryTranslationApi,
Configuration,
UpdateCountryTranslationRequest
} from './api';
const configuration = new Configuration();
const apiInstance = new CountryTranslationApi(configuration);
let countryTranslation: string; //The country translation ID (default to undefined)
let updateCountryTranslationRequest: UpdateCountryTranslationRequest; // (optional)
const { status, data } = await apiInstance.countryTranslationUpdate(
countryTranslation,
updateCountryTranslationRequest
);
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| updateCountryTranslationRequest | UpdateCountryTranslationRequest | ||
| countryTranslation | [string] | The country translation ID | defaults to undefined |
Return type
CountryTranslationShow200Response
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers | |————-|————-|——————| |200 | `CountryTranslationResource` | - | |404 | Not found | - | |401 | Unauthenticated | - | |422 | Validation error | - | |403 | Authorization error | - |
Back to top Back to API list Back to Model list Back to README
countryTranslationUpdate2
CountryTranslationShow200Response countryTranslationUpdate2()
Example
import {
CountryTranslationApi,
Configuration,
UpdateCountryTranslationRequest
} from './api';
const configuration = new Configuration();
const apiInstance = new CountryTranslationApi(configuration);
let countryTranslation: string; //The country translation ID (default to undefined)
let updateCountryTranslationRequest: UpdateCountryTranslationRequest; // (optional)
const { status, data } = await apiInstance.countryTranslationUpdate2(
countryTranslation,
updateCountryTranslationRequest
);
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| updateCountryTranslationRequest | UpdateCountryTranslationRequest | ||
| countryTranslation | [string] | The country translation ID | defaults to undefined |
Return type
CountryTranslationShow200Response
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers | |————-|————-|——————| |200 | `CountryTranslationResource` | - | |404 | Not found | - | |401 | Unauthenticated | - | |422 | Validation error | - | |403 | Authorization error | - |
Back to top Back to API list Back to Model list Back to README
This documentation was automatically generated from the TypeScript API client.