-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from V0RT3X4/clearer-docs
docs: Add about-endpoints explanation
- Loading branch information
Showing
9 changed files
with
634 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# About VortexaSDK Endpoints | ||
|
||
The endpoints module allows you to query Vortexa's data. | ||
|
||
The VortexaSDK currently contains 4 different endpoints: | ||
|
||
1. Cargo Movements | ||
2. Charterers | ||
3. Geographies | ||
4. Products | ||
5. Vessels | ||
|
||
|
||
Each endpoint offers either one, or both, of two different functionalities: | ||
|
||
|
||
1. **Lookup by ID**. Retreive an object matching a certain id. In sql speak this is the equivalent of `SELECT * FROM vessels WHERE id = 12345;` | ||
2. **Search**. Retrieve a number of objects matching given search parameters. In sql speak this is the equivalent of `SELECT * FROM vessels WHERE name ~* 'ocean' AND vessel_class = 'vlcc';` | ||
|
||
|
||
Let's explain with some examples: | ||
|
||
Find all aframax vessels | ||
```python | ||
from vortexasdk import Vessels | ||
df = Vessels().search(vessel_classes='aframax').to_df() | ||
``` | ||
|
||
Find the vessel that has with id 1245 | ||
```python | ||
vessel = Vessels().reference(id='12345') | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
## Vortexa SDK Entities |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.