Skip to content

Instantly share code, notes, and snippets.

@deejayy
Created October 23, 2019 18:17
Show Gist options
  • Save deejayy/83061851240be4a67f7c0f431d39f8c3 to your computer and use it in GitHub Desktop.
Save deejayy/83061851240be4a67f7c0f431d39f8c3 to your computer and use it in GitHub Desktop.
import { ApiCallItem } from '@modules/api/model/api-call-item.model';
export class SomeGetApiCall implements ApiCallItem {
public url: string = '/api/get/some';
}
export class SomePostApiCall implements ApiCallItem {
public url: string = '/api/get/some#Distinctive-hashtag';
public auth: boolean = true;
public constructor(
public data: any = null,
public useExisting: boolean = true,
) {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment