Halstack Client for JavaScript enables developers to easily work with hypermedia-based APIs in a declarative manner. It offers a set of functionalities to facilitate the navigation between hypermedia resources and get access to their properties dynamically, based on the HAL and JSON Hyper-Schema draft specifications, as well as DXC API guidelines and HAL extensions.
This SDK is released as a client-agnostic library that can be used both in browser applications (such as Vanilla JS, React or Angular applications) or backend applications (NodeJS applications). As such, it is distributed as UMD.
This repository contains two software assets:
- The Halstack Client library: ./lib. Documentation of the npm module is maintained in the README file in that folder.
- A example apps that use the local copy of the Halstack Client library: ./example
In the first place, clone this repository.
git clone https://github.com/dxc-technology/dxc-halstack-client.git
As stated before, local development is broken into two parts.
First, within the lib
folder, run rollup to watch your src/
module and automatically recompile it into dist/
whenever you make changes.
cd lib
npm install
npm start # runs rollup with watch flag
The second part will be running the examples linked to the local version of your module.
# (in another tab)
cd example/front-end-react
npm install
npm start # runs create-react-app dev server
Now, anytime you make a change to your library in src/
or to the example app's example/src
, create-react-app
will live-reload your local dev server so you can iterate on your component in real-time.
# (in another tab)
cd example/node
npm install
npm start # runs node application
See Halstack Client License here
RESOURCE:
- Is property patchable (Interaction or property)
- Status Report
RESPONSE:
- X-Modified headers
- X-Delete headers