Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

scrappe.js 497B

1234567
  1. import { getRequest, patchRequest, postRequest, replaceInUrl } from './index';
  2. import apiEndpoints from './apiEndpoints';
  3. export const getAllScrappes = () => getRequest(apiEndpoints.scrappe.getAll)
  4. export const getByIdScrappe = (id) => getRequest(replaceInUrl(apiEndpoints.scrappe.getById, { id }))
  5. export const createScrappes = (scrappe) => postRequest(apiEndpoints.scrappe.create, scrappe)
  6. export const executeScrappes = (id) => patchRequest(replaceInUrl(apiEndpoints.scrappe.execute, { id }))