Table of Contents |
---|
Overview
These examples are for a Fedora hands-on workshop and are referenced by these slides. All examples are displayed below in a curl command-line form. For those who do not have curl or prefer a graphical interface, the examples can be obtained as a JSON import file for the POSTMan REST client.
Get Pythagoras collection
Request URI: http://localhost:8080/rest/pythagoras
Method: GET
...
GET
...
Request
...
Request Headers:
Status | ||||
---|---|---|---|---|
|
...
Status | ||||||
---|---|---|---|---|---|---|
|
...
GET Portrait Container
Request URI: http://localhost:8080/rest/pythagoras/portraits
Method: GET
...
Status title GET
get a list of registered types (as RDFS triples)
title | GET |
---|
Request
Request Headers:
Status | ||||
---|---|---|---|---|
|
...
Status | ||||||
---|---|---|---|---|---|---|
|
...
Add Pythagoras the Person
Request URI: http://localhost:8080/rest/pythagoras/
Method: POST
...
Status title GET
get a list of registered types (as RDFS triples)
title | GET |
---|
Request
Request Headers:
Status | ||||
---|---|---|---|---|
|
...
Status | ||||||
---|---|---|---|---|---|---|
|
...
POST Portrait Container
Request URI: http://localhost:8080/rest/pythagoras
Method: POST
...
Status title GET
get a list of registered types (as RDFS triples)
title | GET |
---|
Request
Request Headers:
Status | ||||
---|---|---|---|---|
|
...
Status | ||||||
---|---|---|---|---|---|---|
|
...
POST a Portrait
Request URI: http://localhost:8080/rest/pythagoras/portraits
Method: POST
...
Status title GET
get a list of registered types (as RDFS triples)
title | GET |
---|
Request
Request Headers:
Status | ||||
---|---|---|---|---|
|
...
Status | ||||||
---|---|---|---|---|---|---|
|
...
POST List of Pythagoras' Influences
Request URI: http://localhost:8080/rest/pythagoras/
Method: POST
...
Status title GET
get a list of registered types (as RDFS triples)
title | GET |
---|
Request
Request Headers:
Status | ||||
---|---|---|---|---|
|
...
Status | ||||||
---|---|---|---|---|---|---|
|
...
GET Pythagoras Person
Request URI: http://localhost:8080/rest/pythagoras/person
Method: GET
...
Status title GET
get a list of registered types (as RDFS triples)
title | GET |
---|
Request
Request Headers:
Status | ||||
---|---|---|---|---|
|
...
Status | ||||||
---|---|---|---|---|---|---|
|
...
Add Thales as Influence
Request URI: http://localhost:8080/rest/pythagoras/influences/
Method: POST
...
Status title GET
get a list of registered types (as RDFS triples)
title | GET |
---|
Request
Request Headers:
Status | ||||
---|---|---|---|---|
|
...