Skip to content

Project settings links

Svyatoslav Reyentenko edited this page Jan 21, 2013 · 1 revision

Project settings

Path : /projects/1/settings
Method : GET

Only admin and read-only admin

[
   {"href" : "/project/1/configs", "rel" : "collection", "type" : "application/vnd.griddynamics.genesis.Configuration+json"},
   {"href" : "/project/1/databags", "rel" :"collection", "type" : "application/vnd.griddynamics.genesis.Databag+json"},
   ....
]

Other links are omitted, but they are formed as databags links.

Concrete settings area

Example is for project databags. Note that in example below item inside collection contain methods to update and delete itself.

Path: /projects/1/databags
Method: GET

As an admin

{
  "items" : [
      {"id": "1",
       "links": [
          {"href" : "/projects/1/databags/1", "rel":"self", "methods" : ["get","put","delete"], "type":"application/vnd.griddynamics.genesis.Databag+json"}
      ]
     }
  ],
  "links" : [
     {"href":"//projects/1/databags", "methods": ["get","post"], "rel":"self", "type" : "application/vnd.griddynamics.genesis.Databag+json"} 
  ]
}

As a read-only admin

{
  "items" : [
      {"id": "1",
      "links": [
          {"href" : "/projects/1/databags":"1", "rel":"self", "type":"application/vnd.griddynamics.genesis.Databag+json"} 
      ]}
  ],
  "links" : [
     {"href":"//projects/1/databags", "rel":"self", "type" :"application/vnd.griddynamics.genesis.Databag+json"} 
  ]
}
Clone this wiki locally