README.md in virustotalx-1.0.0 vs README.md in virustotalx-1.1.0
- old
+ new
@@ -37,16 +37,16 @@
api.ip_address.get("1.1.1.1")
```
## Supported API endpoints
-* [VirusTotal API reference](https://developers.virustotal.com/v3.0/reference#overview)
+- [VirusTotal API reference](https://developers.virustotal.com/v3.0/reference#overview)
### Files
| HTTP Method | URL | API method |
-|-------------|------------------------------------|------------------------------------------------------------|
+| ----------- | ---------------------------------- | ---------------------------------------------------------- |
| POST | /files | api.file.upload(filepath) |
| GET | /files/upload_url | api.file.upload_url |
| GET | /files/{id} | api.file.get(id) |
| POST | /files | api.file.upload(path) |
| POST | /files/{id}/analyse | api.file.analyse(id) |
@@ -60,11 +60,11 @@
| GET | /file_behaviours/{sandbox_id}/pcap | api.file.pcap(sandbox_id) |
### URLs
| HTTP Method | URL | API method |
-|-------------|-----------------------------|----------------------------------------------------------------|
+| ----------- | --------------------------- | -------------------------------------------------------------- |
| POST | /urls | N/A |
| GET | /urls/{id} | api.url.get(id) |
| POST | /urls/{id}/analyse | api.url.analyse(id) |
| GET | /urls/{id}/comments | api.url.comments(id) |
| POST | /urls/{id}/comments | api.url.add_comment(id) |
@@ -76,33 +76,47 @@
Note: you can use a URL as an id.
### Domains
| HTTP Method | URL | API method |
-|-------------|----------------------------------|--------------------------------------------------------------|
+| ----------- | -------------------------------- | ------------------------------------------------------------ |
| GET | /domains/{domain} | api.domain.get(domain) |
| GET | /domains/{domain}/comments | api.domain.comment(domain) |
| POST | /domains/{domain}/comments | api.domain.add_comment(domain, text) |
| GET | /domains/{domain}/{relationship} | api.domain.`relationship`(domain) (e.g. api.domain.(domain)) |
### IP addresses
| HTTP Method | URL | API method |
-|-------------|-----------------------------------|---------------------------------------------------------------------------------|
+| ----------- | --------------------------------- | ------------------------------------------------------------------------------- |
| GET | /ip_addresses/{ip} | api.ip_address.get(ip) |
| GET | /ip_addresses/{ip}/comments | api.ip_address.comments(id) |
| POST | /ip_addresses/{ip}/comments | api.ip_address.add_comment(id, text) |
| GET | /ip_addresses/{ip}/{relationship} | api.ip_address.`relationship`(id) (e.g. api.ip_address.communicating_files(ip)) |
### Analyses
| HTTP Method | URL | API method |
-|-------------|----------------|----------------------|
+| ----------- | -------------- | -------------------- |
| GET | /analyses/{id} | api.analysis.get(ip) |
## Graphs
-N/A.
+| HTTP Method | URL | API method |
+| ----------- | ---------------------------------------------------- | ----------------------------------------------------------------------------------- |
+| GET | graphs | api.graph.search(filter: nil, limit: nil, cursor: nil, order: nil, attributes: nil) |
+| POST | graphs | api.graph.create(\*\*params) |
+| GET | graphs/{id} | api.graph.get(id) |
+| PATCH | graphs/{id} | api.graph.update(id, \*\*params) |
+| GET | graphs/{id}/relationships/viewers | api.graph.viewers(id, limit: nil, cursor: nil) |
+| POST | graphs/{id}/relationships/viewers | api.graph.add_viewer(id, \*\*params) |
+| GET | graphs/{id}/relationships/viewers/{user_or_group_id} | api.graph.check_viewer(id, user_or_group_id) |
+| DELETE | graphs/{id}/relationships/viewers/{user_or_group_id} | api.graph.delete_viewer(id, user_or_group_id) |
+| GET | graphs/{id}/relationships/editors | api.graph.editors(id, limit: nil, cursor: nil) |
+| POST | graphs/{id}/relationships/editors | api.graph.add_editor(id, \*\*params) |
+| GET | graphs/{id}/relationships/editors/{user_or_group_id} | api.graph.check_editor(id, user_or_group_id) |
+| DELETE | graphs/{id}/relationships/editors/{user_or_group_id} | api.graph.delete_editor(id, user_or_group_id) |
+| GET | graphs/{id}/relationships/{relationship} | api.graph.`relationship`(id) |
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).