NOBackEnd - The next level api mocking library for frontend developers. Data persistent mocking api for MVP apps rapid development.
Demo, Docs will be publish soon
npm install @rlaurente/nobe
{ url: string; workspace?: string; branch?: string; wipe?: boolean; }
|
**Returns:** Promise<{ is_success: boolean; }>
--------------------
### switchBranch(...)
```typescript
switchBranch(options: { branch_name: string; }) => Promise<{ is_success: boolean; }>
```
| Param | Type |
| ------------- | ------------------------------------- |
| **`options`** | { branch_name: string; }
|
**Returns:** Promise<{ is_success: boolean; }>
--------------------
### get(...)
```typescript
get(options: { key: string; }) => Promise{ key: string; }
|
**Returns:** Promise<any>
--------------------
### set(...)
```typescript
set(options: { key: string; data: any; }) => Promise{ key: string; data: any; }
|
**Returns:** Promise<boolean>
--------------------
### request(...)
```typescript
request(options: { path: string; type: string; data?: any; headers?: any; }) => Promise{ path: string; type: string; data?: any; headers?: any; }
|
**Returns:** Promise<any>
--------------------
### mock(...)
```typescript
mock(options: { path: string; handler: any; }) => void
```
| Param | Type |
| ------------- | -------------------------------------------- |
| **`options`** | { path: string; handler: any; }
|
--------------------
### apply()
```typescript
apply() => PromisePromise<boolean>
--------------------