GalleryApi

All URIs are relative to http://localhost:8000/api

Method HTTP request Description
galleryDestroy DELETE /gallery/{gallery} Remove the specified gallery from storage
galleryIndex GET /gallery Display a listing of the galleries
galleryShow GET /gallery/{gallery} Display the specified gallery
galleryStore POST /gallery Store a newly created gallery in storage
galleryUpdate PUT /gallery/{gallery} Update the specified gallery in storage

galleryDestroy

galleryDestroy()

Example

import {
    GalleryApi,
    Configuration
} from './api';

const configuration = new Configuration();
const apiInstance = new GalleryApi(configuration);

let gallery: string; //The gallery ID (default to undefined)

const { status, data } = await apiInstance.galleryDestroy(
    gallery
);

Parameters

Name Type Description Notes
gallery [string] The gallery ID defaults to undefined

Return type

void (empty response body)

Authorization

http

HTTP request headers

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

galleryIndex

GalleryIndex200Response galleryIndex()

Example

import {
    GalleryApi,
    Configuration
} from './api';

const configuration = new Configuration();
const apiInstance = new GalleryApi(configuration);

const { status, data } = await apiInstance.galleryIndex();

Parameters

This endpoint does not have any parameters.

Return type

GalleryIndex200Response

Authorization

http

HTTP request headers

HTTP response details

| Status code | Description | Response headers | |————-|————-|——————| |200 | Array of `GalleryResource` | - | |401 | Unauthenticated | - |

Back to top Back to API list Back to Model list Back to README

galleryShow

GalleryStore200Response galleryShow()

Example

import {
    GalleryApi,
    Configuration
} from './api';

const configuration = new Configuration();
const apiInstance = new GalleryApi(configuration);

let gallery: string; //The gallery ID (default to undefined)

const { status, data } = await apiInstance.galleryShow(
    gallery
);

Parameters

Name Type Description Notes
gallery [string] The gallery ID defaults to undefined

Return type

GalleryStore200Response

Authorization

http

HTTP request headers

HTTP response details

| Status code | Description | Response headers | |————-|————-|——————| |200 | `GalleryResource` | - | |404 | Not found | - | |401 | Unauthenticated | - |

Back to top Back to API list Back to Model list Back to README

galleryStore

GalleryStore200Response galleryStore(galleryStoreRequest)

Example

import {
    GalleryApi,
    Configuration,
    GalleryStoreRequest
} from './api';

const configuration = new Configuration();
const apiInstance = new GalleryApi(configuration);

let galleryStoreRequest: GalleryStoreRequest; //

const { status, data } = await apiInstance.galleryStore(
    galleryStoreRequest
);

Parameters

Name Type Description Notes
galleryStoreRequest GalleryStoreRequest    

Return type

GalleryStore200Response

Authorization

http

HTTP request headers

HTTP response details

| Status code | Description | Response headers | |————-|————-|——————| |200 | `GalleryResource` | - | |422 | Validation error | - | |401 | Unauthenticated | - |

Back to top Back to API list Back to Model list Back to README

galleryUpdate

GalleryStore200Response galleryUpdate()

Example

import {
    GalleryApi,
    Configuration,
    GalleryUpdateRequest
} from './api';

const configuration = new Configuration();
const apiInstance = new GalleryApi(configuration);

let gallery: string; //The gallery ID (default to undefined)
let galleryUpdateRequest: GalleryUpdateRequest; // (optional)

const { status, data } = await apiInstance.galleryUpdate(
    gallery,
    galleryUpdateRequest
);

Parameters

Name Type Description Notes
galleryUpdateRequest GalleryUpdateRequest    
gallery [string] The gallery ID defaults to undefined

Return type

GalleryStore200Response

Authorization

http

HTTP request headers

HTTP response details

| Status code | Description | Response headers | |————-|————-|——————| |200 | `GalleryResource` | - | |422 | Validation error | - | |404 | Not found | - | |401 | Unauthenticated | - |

Back to top Back to API list Back to Model list Back to README


This documentation was automatically generated from the TypeScript API client.