Kütüphane / Yapı Taşları ve Yardımcı Araçlar
Yapı Taşları ve Yardımcı Araçlar
Diğer İş Akışları için Referansa Göre Kutsal Kitap Ayetlerini Getir
Ayet referanslarını içeren bir JSON nesnesi alan ve eşleşen ayetleri Bible API ile aynı formatta döndüren alt iş akışı. Yalnızca başka bir iş akışı tarafından çağrıldığında çalışır.
Ne yapar
# GetBible Query Workflow Documentation ## Overview The GetBibleQuery workflow is a modular and self-standing workflow designed to retrieve scriptures based on provided references. It serves as an intermediary layer that takes in a structured JSON object, extracts the references, and returns the corresponding scriptures in the same format as if they were retrieved directly from the API. This workflow is highly adaptable and can be integrated into various projects where scriptural references need to be dynamically fetched. ## JSON Input Structure The workflow expects a JSON object with the following parameters: - References should include the book name, chapter, and verse(s). - Multiple verses can be separated by commas (e.g., John 3:16,18). - Ranges can be specified using a dash (e.g., John 3:16-18). - The Bible translation ### Example JSON Input: json { "references": [ "1 John 3:16", "Jn 3:16", "James 3:16", "Rom 3:16" ], "translation": "kjv", "version": "v2" } ### API Response Format The response returned by this workflow follows the same API format as if the request were made directly to the source API. This ensures compatibility with projects that rely on standard API responses. Example JSON Response (in this workflow): json { "result": { "kjv_62_3": { "translation": "King James Version", "abbreviation": "kjv", "lang": "en", "language": "English", "direction": "LTR", "encoding": "UTF-8", "book_nr": 62, "book_name": "1 John", "chapter": 3, "name": "1 John 3", "ref": [ "1 John 3:16" ], "verses": [ { "chapter": 3, "verse": 16, "name": "1 John 3:16", "text": "Hereby perceive we the love of God, because he laid down his life for us: and we ought to lay down our lives for the brethren." } ] } } } ## Integration and Usage The GetBible Query workflow is designed for easy integration into any project that requires scripture retrieval. Simply pass the appropriate JSON object as input, and it will return the requested scripture passages. ## Support For any questions or additional assistance, please visit our [Support desk]({{ $env.WEBHOOK_URL }} or [API documentation]({{ $env.WEBHOOK_URL }}
Adımlar
- Entry
- ModelJson
- API Query to GetBible
- Map API Respons to Result