directus / directus/rstore

Simple REST Plugin

Open
#13 0 comments 3 reactions 0 assignees View on GitHub
rstore
Dominant language
TypeScript
Stars
449
Forks
21
Avg merge
6d 22h
Merged PRs (30d)
2

Description

### Clear and concise description of the problem

We need to make it easy to start using rstore with less boilerplate code

### Suggested solution

```ts
const restPlugin = createSimpleRestPlugin({
baseUrl: '/api',

// Optionally customize requests
onFetch: (payload) => {
return { url: '', query: {}, headers: {}, body: {} }
},
})
```

### Alternative

_No response_

### Additional context

_No response_

### Validations

- [x] Follow our [Code of Conduct](https://github.com/Akryum/rstore/blob/main/CODE_OF_CONDUCT.md)
- [x] Read the [Contributing Guidelines](https://github.com/Akryum/rstore/blob/main/CONTRIBUTING.md).
- [x] Read the [docs](https://rstore.starpad.dev/guide/).
- [x] Check that there isn't [already an issue](https://github.com/Akryum/rstore/issues) that requests the same feature to avoid creating a duplicate.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.