Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README.md updated. #8

Merged
merged 3 commits into from
Jun 15, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 57 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,59 @@
# creditrisk-poc

A proof of concept serving the EBA NPL template schema via a hydra API
Creditrisk-poc is a Hydra powered API which serves loan portfolio data using EBA NPL Template.

## Features
creditrisk-poc consist following features:
* Loan & Borrower classes.
* Borrower class collection.
* Loan & Borrower class are linked using a foreign key ("CounterpartyId").
* Loan class can perform all the CRUD operations ( GET, PUT, POST, DELETE).
* Borrower can perform all the CRUD operations.
* Borrower class collection can perform all the CRUD operations.

## API_DOC
API_Doc is generated through hydra-python-core module doc_writer.

API_Doc & doc_writer file can be found here :
```
API_Doc
|
|___ APIDOC
|___ Creditrisk_api_docwriter.py
```
`APIDOC` is a pickle serialized object, It can be accessed as follows:
```python
import pickle

API_Doc_file = open("creditrisk_poc/API_Doc/APIDOC","rb")
doc = pickle.load(API_Doc_file)
```
you will get the doc in `python dict` format.

## Demo
To run hydra powered creditrisk-poc API, just do the following:
1) Clone creditrisk-poc
```bash
git clone https://github.com/HTTP-APIs/creditrisk-poc.git
cd creditrisk-poc
```
2. Install a [*Python virtual environment*](https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/) using:
```bash
python3.7 -m venv .venv
```
or:
```bash
virtualenv -p python3.7 .venv
```

3. Install requirements:
```bash
source .venv/bin/activate
pip install -r requirements.txt
```
3) Run hydrus server
```bash
cd creditrisk_poc
python main.py
```
The hydrus should be up & running on `http://localhost:8080/creditrisk_api/`
1 change: 1 addition & 0 deletions docs/Functionality.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Making CRUD operations using POSTMAN