Skip to content

Latest commit

 

History

History
110 lines (72 loc) · 3.72 KB

ContentProvidersApi.md

File metadata and controls

110 lines (72 loc) · 3.72 KB

TessJsonApi.ContentProvidersApi

All URIs are relative to https://tess.elixir-europe.org

Method HTTP request Description
contentProvidersGet GET /content_providers
contentProvidersSlugGet GET /content_providers/{slug}

contentProvidersGet

ContentProviderCollection contentProvidersGet(opts)

Example

import TessJsonApi from 'tess_json_api';

let apiInstance = new TessJsonApi.ContentProvidersApi();
let opts = {
  'q': "q_example", // String | Search keywords.
  'pageNumber': 1, // Number | The page of the collection to view.
  'pageSize': 30, // Number | The number of results to return per page.
  'sort': "sort_example", // String | Sort order:  * default - sort by date (for Events), sort by number of resources (for Content Providers) otherwise sort by title (default).  * new - Sort by when the entry was created.  * mod - Sort by when the entry was last modified.  * rel - Sort by search query relevance.  * early - Sort by date, earliest to latest (Events only).  * late - Sort by date, latest to earliest (Events only). 
  'keywords': ["null"], // [String] | Filter by keywords.
  'node': ["null"], // [String] | Filter by ELIXIR node name.
  'contentProviderType': ["null"] // [String] | Filter by content provider type.
};
apiInstance.contentProvidersGet(opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
q String Search keywords. [optional]
pageNumber Number The page of the collection to view. [optional] [default to 1]
pageSize Number The number of results to return per page. [optional] [default to 30]
sort String Sort order: * default - sort by date (for Events), sort by number of resources (for Content Providers) otherwise sort by title (default). * new - Sort by when the entry was created. * mod - Sort by when the entry was last modified. * rel - Sort by search query relevance. * early - Sort by date, earliest to latest (Events only). * late - Sort by date, latest to earliest (Events only). [optional]
keywords [String] Filter by keywords. [optional]
node [String] Filter by ELIXIR node name. [optional]
contentProviderType [String] Filter by content provider type. [optional]

Return type

ContentProviderCollection

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/vnd.api+json

contentProvidersSlugGet

ContentProvider contentProvidersSlugGet(slug)

Example

import TessJsonApi from 'tess_json_api';

let apiInstance = new TessJsonApi.ContentProvidersApi();
let slug = "slug_example"; // String | The _slug_ id of a content provider e.g. goblet
apiInstance.contentProvidersSlugGet(slug, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
slug String The slug id of a content provider e.g. goblet

Return type

ContentProvider

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/vnd.api+json