API client for EFCrud
Project description
EFCrud
- API version: 1.0
- Package version: 1.0.2
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.7+
Installation & Usage
pip install
From Pypi:
pip install EFCrud
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/dprakash2101/EFCrudPython.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/dprakash2101/EFCrudPython.git
)
Then import the package:
import EFCrud
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import EFCrud
Tests
Execute pytest
to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import time
import EFCrud
from EFCrud.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://localhost:7217
# See configuration.py for a list of all supported configuration parameters.
configuration = EFCrud.Configuration(
host = "https://localhost:7217"
)
# Enter a context with an instance of the API client
with EFCrud.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = EFCrud.AuthApi(api_client)
userdto = EFCrud.Userdto() # Userdto | (optional)
try:
api_response = api_instance.api_auth_login_post(userdto=userdto)
print("The response of AuthApi->api_auth_login_post:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling AuthApi->api_auth_login_post: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://localhost:7217
Class | Method | HTTP request | Description |
---|---|---|---|
AuthApi | api_auth_login_post | POST /api/Auth/login | |
AuthApi | api_auth_register_post | POST /api/Auth/register | |
EmployeesApi | api_employees_get | GET /api/Employees | |
EmployeesApi | api_employees_id_delete | DELETE /api/Employees/{id} | |
EmployeesApi | api_employees_id_get | GET /api/Employees/{id} | |
EmployeesApi | api_employees_id_put | PUT /api/Employees/{id} | |
EmployeesApi | api_employees_post | POST /api/Employees | |
FeaturesApi | api_features_id_delete | DELETE /api/Features/{id} | |
FeaturesApi | api_features_id_put | PUT /api/Features/{id} | |
RolesApi | api_roles_add_employee_role_post | POST /api/Roles/Add-EmployeeRole | |
RolesApi | api_roles_add_roles_post | POST /api/Roles/Add-roles | |
RolesApi | api_roles_delete_emp_role_delete | DELETE /api/Roles/Delete-EmpRole | |
RolesApi | api_roles_show_employee_roles_get | GET /api/Roles/Show-EmployeeRoles | |
RolesApi | api_roles_show_roles_get | GET /api/Roles/Show-roles |
Documentation For Models
Documentation For Authorization
Authentication schemes defined for the API:
oauth2
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
EFCrud-1.0.4.1.tar.gz
(25.6 kB
view hashes)
Built Distribution
EFCrud-1.0.4.1-py3-none-any.whl
(41.5 kB
view hashes)