Skip to content

Commit b1fb489

Browse files
author
Hannah
committed
prettier examples
1 parent 367a6e8 commit b1fb489

17 files changed

+117
-17
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: 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": "Last month director Paul Feig announced the movie will have an all-star female cast including Kristen Wiig, Melissa McCarthy, Leslie Jones and Kate McKinnon.", "genre": "social-media" }' "https://api.rosette.com/rest/v1/entities/linked"
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": "Last month director Paul Feig announced the movie will have an all-star female cast including Kristen Wiig, Melissa McCarthy, Leslie Jones and Kate McKinnon.", "genre": "social-media" }'
7+
"https://api.rosette.com/rest/v1/entities/linked"

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)