Guest User

Untitled

a guest
Apr 21st, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. import * as Definitions from "./Definitions";
  2. import { IEffectDependencies } from "../types";
  3. import { Observable } from "rxjs/Observable";
  4. export const description = "Creates sample order and returns ID.";
  5. export const method = "POST";
  6. export const operationId = "grahamFabricSamplesSampleOrderV1CreateSampleOrderPost";
  7. export const path = "/V1/graham-mto/createSampleOrder";
  8. export interface Body {
  9. data: string;
  10. }
  11. export type Response = Response200 | ResponseDefault;
  12. export type Response200 = string;
  13. export type ResponseDefault = Definitions.ErrorResponse;
  14. export function execute(body: Body, effects: IEffectDependencies): Observable<Response200> {
  15. return effects.postJSON(effects.apiUrl(path), body);
  16. }
Add Comment
Please, Sign In to add comment