@phenyl/http-client
TypeScript icon, indicating that this package has built-in type declarations

4.1.0 • Public • Published

@phenyl/http-client

Client to PhenylRestApi. you can handle data on server with MongoDB-like operations

example

import PhenylHttpClient from "@phenyl/http-client";

const httpClient = new PhenylHttpClient({
  url: "localhost:8080",
});

await httpClient.insertAndGet({ entityName: "user", value: { id: "user" } });
const { entity: user } = httpClient.get({ entityName: "user", id: "user" }); // { id: 'user' }

Readme

Keywords

none

Package Sidebar

Install

npm i @phenyl/http-client

Weekly Downloads

156

Version

4.1.0

License

Apache-2.0

Unpacked Size

22.3 kB

Total Files

5

Last publish

Collaborators

  • shinout
  • naturalclar
  • sasurau4
  • wh1tecat
  • bowzstandard
  • alternacrow
  • camcam-lemon
  • 1natsu