customer notes
This commit is contained in:
@ -8,6 +8,23 @@ curl -u admin:admin -X POST -H 'Content-Type: application/json' -d '{"type":"pag
|
||||
"space":{"key":"TST"},"body":{"storage":{"value":"<p>This is <br/> a new page</p>","representation":
|
||||
"storage"}}}' http://localhost:8080/confluence/rest/api/content/ | python -mjson.tool
|
||||
|
||||
# This is an example of updating content
|
||||
PUT /rest/api/content/456
|
||||
|
||||
{
|
||||
"version": {
|
||||
"number": 2
|
||||
},
|
||||
"title": "My new title",
|
||||
"type": "page",
|
||||
"body": {
|
||||
"storage": {
|
||||
"value": "<p>New page data.</p>",
|
||||
"representation": "storage"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# This is a Northpas example in python
|
||||
import requests
|
||||
url = "https://api.northpass.com/v2/people/person_uuid/deactivations"
|
||||
@ -22,13 +39,11 @@ url = "http/"
|
||||
|
||||
|
||||
import requests
|
||||
|
||||
TODO fix this url
|
||||
|
||||
url = "https://api.northpass.com/v2/activities"
|
||||
|
||||
headers = {"accept": "application/json"}
|
||||
|
||||
response = requests.get(url, headers=headers)
|
||||
|
||||
pagename = file(read file)
|
||||
title = filename
|
||||
value = file.read()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user