This RESTFul API consumes data from a Wellsite Information Transfer Standard Markup Language (WITSML) server and provides responses in format JSON. Therefore abstracting the complexity of using directly the WITSML.
Supported WITSML Data version: 1.4.1.1
Supported WITSML data objects based on Standards maintained by Energistics:
- Log
- Well
- Wellbore
Supported WMLS_GetCap Function
Purpose: Returns the capServer object that describes the capabilities of the server for one Data Schema Version.
Therefore it is possible to get more information about the limitations of the WITSML server.
Before deploying in production is necessary choice one way among many ways to handle security, authentication and authorization.
Some possible options:
More information for WITSML Developers & Users
This document includes instructions to get the project running in development.
-
Open your terminal realize the download and change to the directory to the project's root:
git clone https://github.com/HemersonRafael/witsml-consumer-api.git cd witsml_consumer_api
-
Copy the sample environment variables file and edit them to your environment:
cp .env.sample .env
- WITSML_SERVICE_URL -> The WITSML storage URL. will try to connect.
- WITSML_USERNAME -> The WITSML username used by komle-plus.
- WITSML_PASSWORD -> The WITSML password to be set on the user above.
-
Spawn a shell with the virtualenv activated:
poetry shell
-
Install all packages specified:
poetry install or make install
-
Run your project:
poetry run uvicorn witsml_consumer_rest_api.main:app --host localhost --port 8080 --reload --log-level debug or make run
-
Documentation will be available by accessing the API endpoint below: