Utilities is an API proxy containing frequently used functions. Utilities currently supports below functionalities.,
- Base64 encoding
- Base64 decoding
- SHA256 hashing
- SHA512 hashing
These instructions will get you a copy of the project up and running on your Apigee Edge account.
- npm CLI
- Maven - for build and deployment
- Apigee Edge account to host the API proxy
Below steps to be followed to get the proxy up and running.,
- Clone the code to local system
git clone https://github.com/ahemanna/utilities.git
- Download the node modules using package.json present in the root directory
npm install
- Run the Maven command to build and deploy the proxy to your Apigee Edge account
mvn clean install -P{environment} -Dusername={edge_email} -Dpassword={edge_password} -Dorg={org_name}
Utilities currently supports resources to base64 encode/decode and SHA256/SHA512 hashing.
POST /v1/utilities/base64encode HTTP/1.1
Host: {org_name}-{environment}.apigee.net
Content-Type: application/x-www-form-urlencoded
Sampledata
POST /v1/utilities/base64decode HTTP/1.1
Host: {org_name}-{environment}.apigee.net
Content-Type: application/x-www-form-urlencoded
U2FtcGxlZGF0YQ==
POST /v1/utilities/sha256 HTTP/1.1
Host: {org_name}-{environment}.apigee.net
Content-Type: application/x-www-form-urlencoded
Sampledata
POST /v1/utilities/sha512 HTTP/1.1
Host: {org_name}-{environment}.apigee.net
Content-Type: application/x-www-form-urlencoded
Sampledata
- npm 2.15.9 - To manage node modules
- Maven 3.3.9 - For packaging and deployment