Skip to content

Commit baf5591

Browse files
authored
Merge pull request #3 from hannah-gaudet/RCB-434
RAAP 434 - prettier examples
2 parents 367a6e8 + 1367e2e commit baf5591

18 files changed

+115
-21
lines changed

examples/categories.curl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
curl -X POST -H "X-RosetteAPI-Key: your_api_key" -H "Content-Type: application/json" -H "Accept: application/json" -H "Cache-Control: no-cache" -d '{"contentUri": "http://www.onlocationvacations.com/2015/03/05/the-new-ghostbusters-movie-begins-filming-in-boston-in-june/" }' "https://api.rosette.com/rest/v1/categories"
1+
curl -X POST \
2+
-H "X-RosetteAPI-Key: your_api_key" \
3+
-H "Content-Type: application/json" \
4+
-H "Accept: application/json" \
5+
-H "Cache-Control: no-cache" \
6+
-d '{"contentUri": "http://www.onlocationvacations.com/2015/03/05/the-new-ghostbusters-movie-begins-filming-in-boston-in-june/" }' \
7+
"https://api.rosette.com/rest/v1/categories"

examples/entities.curl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
# to improve performance, and if you don't need the QID, set this option inside json in -d flag
22
# "options": {"linkEntities": false }}
3-
curl -X POST -H "X-RosetteAPI-Key: your_api_key" -H "Content-Type: application/json" -H "Accept: application/json" -H "Cache-Control: no-cache" -d '{"content": "Bill Murray will appear in new Ghostbusters film: Dr. Peter Venkman was spotted filming a cameo in Boston this… http://dlvr.it/BnsFfS", "genre": "social-media" }' "https://api.rosette.com/rest/v1/entities"
3+
curl -X POST \
4+
-H "X-RosetteAPI-Key: your_api_key" \
5+
-H "Content-Type: application/json" \
6+
-H "Accept: application/json" \
7+
-H "Cache-Control: no-cache" \
8+
-d '{"content": "Bill Murray will appear in new Ghostbusters film: Dr. Peter Venkman was spotted filming a cameo in Boston this… http://dlvr.it/BnsFfS", "genre": "social-media" }' \
9+
"https://api.rosette.com/rest/v1/entities"

examples/entities_linked.curl

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/info.curl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
curl -X GET -H "X-RosetteAPI-Key: your_api_key" -H "Content-Type: application/json" -H "Accept: application/json" -H "Cache-Control: no-cache" "https://api.rosette.com/rest/v1/info/"
1+
curl -X GET \
2+
-H "X-RosetteAPI-Key: your_api_key" \
3+
-H "Content-Type: application/json" \
4+
-H "Accept: application/json" \
5+
-H "Cache-Control: no-cache" \
6+
"https://api.rosette.com/rest/v1/info/"

examples/language.curl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
curl -X POST -H "X-RosetteAPI-Key: your_api_key" -H "Content-Type: application/json" -H "Accept: application/json" -H "Cache-Control: no-cache" -d '{"content": "Por favor Señorita, says the man." }' "https://api.rosette.com/rest/v1/language"
1+
curl -X POST \
2+
-H "X-RosetteAPI-Key: your_api_key" \
3+
-H "Content-Type: application/json" \
4+
-H "Accept: application/json" \
5+
-H "Cache-Control: no-cache" \
6+
-d '{"content": "Por favor Señorita, says the man." }' \
7+
"https://api.rosette.com/rest/v1/language"

examples/morphology_complete.curl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
curl -X POST -H "X-RosetteAPI-Key: your_api_key" -H "Content-Type: application/json" -H "Accept: application/json" -H "Cache-Control: no-cache" -d '{"content": "The quick brown fox jumped over the lazy dog. Yes he did."}' "https://api.rosette.com/rest/v1/morphology/complete"
1+
curl -X POST \
2+
-H "X-RosetteAPI-Key: your_api_key" \
3+
-H "Content-Type: application/json" \
4+
-H "Accept: application/json" \
5+
-H "Cache-Control: no-cache" \
6+
-d '{"content": "The quick brown fox jumped over the lazy dog. Yes he did."}' \
7+
"https://api.rosette.com/rest/v1/morphology/complete"
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
curl -X POST -H "X-RosetteAPI-Key: your_api_key" -H "Content-Type: application/json" -H "Accept: application/json" -H "Cache-Control: no-cache" -d '{"content": "Rechtsschutzversicherungsgesellschaften"}' "https://api.rosette.com/rest/v1/morphology/compound-components"
1+
curl -X POST \
2+
-H "X-RosetteAPI-Key: your_api_key" \
3+
-H "Content-Type: application/json" \
4+
-H "Accept: application/json" \
5+
-H "Cache-Control: no-cache" \
6+
-d '{"content": "Rechtsschutzversicherungsgesellschaften"}' \
7+
"https://api.rosette.com/rest/v1/morphology/compound-components"
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
curl -X POST -H "X-RosetteAPI-Key: your_api_key" -H "Content-Type: application/json" -H "Accept: application/json" -H "Cache-Control: no-cache" -d '{"content": "北京大学生物系主任办公室内部会议"}' "https://api.rosette.com/rest/v1/morphology/han-readings"
1+
curl -X POST \
2+
-H "X-RosetteAPI-Key: your_api_key" \
3+
-H "Content-Type: application/json" \
4+
-H "Accept: application/json" \
5+
-H "Cache-Control: no-cache" \
6+
-d '{"content": "北京大学生物系主任办公室内部会议"}' \
7+
"https://api.rosette.com/rest/v1/morphology/han-readings"

examples/morphology_lemmas.curl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
curl -X POST -H "X-RosetteAPI-Key: your_api_key" -H "Content-Type: application/json" -H "Accept: application/json" -H "Cache-Control: no-cache" -d '{"content": "The fact is that the geese just went back to get a rest and I\u0027m not banking on their return soon"}' "https://api.rosette.com/rest/v1/morphology/lemmas"
1+
curl -X POST \
2+
-H "X-RosetteAPI-Key: your_api_key" \
3+
-H "Content-Type: application/json" \
4+
-H "Accept: application/json" \
5+
-H "Cache-Control: no-cache" \
6+
-d '{"content": "The fact is that the geese just went back to get a rest and I\u0027m not banking on their return soon"}' \
7+
"https://api.rosette.com/rest/v1/morphology/lemmas"
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
curl -X POST -H "X-RosetteAPI-Key: your_api_key" -H "Content-Type: application/json" -H "Accept: application/json" -H "Cache-Control: no-cache" -d '{"content": "The fact is that the geese just went back to get a rest and I\u0027m not banking on their return soon"}' "https://api.rosette.com/rest/v1/morphology/parts-of-speech"
1+
curl -X POST \
2+
-H "X-RosetteAPI-Key: your_api_key" \
3+
-H "Content-Type: application/json" \
4+
-H "Accept: application/json" \
5+
-H "Cache-Control: no-cache" \
6+
-d '{"content": "The fact is that the geese just went back to get a rest and I\u0027m not banking on their return soon"}' \
7+
"https://api.rosette.com/rest/v1/morphology/parts-of-speech"

0 commit comments

Comments
 (0)