1.1.0 • Published 3 years ago

@flinj/client v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@flinj/client

:construction: This project is still in development. You should use it with caution.

The fasest way to build REST API

Flinching

Prerequisite

Install @flinj/server on your server

Installation

npm i @flinj/client

navigate to your client directory and run

npx flinj ../relative/path/to/backend/controllers

Remember Everytime you create new controller on your server you need to run the command above

Usage

import { createClient } from '@flinj/client';

export const client = createClient({
	baseURL: '/api',
	headers: {
		authorization: `Bearer ${process.env.API_KEY}`,
	},
});

const user = await client.users.POST({
	name: 'Israel',
	email: 'test@gmail.com',
	password: '123456',
});

TODO

  • support multi request params
  • adjust to work with the new changes of @flinj/server
1.1.0

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago