Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
api [2017/08/18 04:35]
daniel@atomx.com
api [2018/01/09 09:18]
erik@atomx.com
Line 236: Line 236:
 E.g. creating a new `Site`: E.g. creating a new `Site`:
  
-    $ curl -H '​Authorization:​ Bearer eyJhbGciOiXW4UzUxMiIsInR5cCI6IkpXVCJ9.eyJpYXQiWeE0NTkyMjk4MTcsImV4cCI6MTQ1OTgzNDYxNywic3ViIjo0fQ.Dzp7IG3Lp9KcK881mZpp9ge2FKbQ0DlU-eqDsAl8OsE0awlMivL5CDIiETZc9qvRIFxmUXdnasXWLLabl02iig'​ -X POST -d '​{"​name":​ "test site", "​publisher_id":​ "​1"​}'​ -H "​Content-Type:​ application/​json" ​127.0.0.1:6543/v3/site+    $ curl -H '​Authorization:​ Bearer eyJhbGciOiXW4UzUxMiIsInR5cCI6IkpXVCJ9.eyJpYXQiWeE0NTkyMjk4MTcsImV4cCI6MTQ1OTgzNDYxNywic3ViIjo0fQ.Dzp7IG3Lp9KcK881mZpp9ge2FKbQ0DlU-eqDsAl8OsE0awlMivL5CDIiETZc9qvRIFxmUXdnasXWLLabl02iig'​ -X POST -d '​{"​name":​ "test site", "​publisher_id":​ "​1"​}'​ -H "​Content-Type:​ application/​json" ​https://api.atomx.com/v3/site
  
 Would create a new Site and the response would look like: Would create a new Site and the response would look like: