-
Notifications
You must be signed in to change notification settings - Fork 1
Playground file structure
The main files you work with are called Playgrounds. A Playground is a package file, which basically means that it is a folder presented as if it were a single file. This has the benefit that we can deliver both contents and config in one, human-readable, bundle. In detail this will look as follows:
| Example.ocelotplayground | |
| contents.graphql | settings.json |
This file is a normal GraphQL file which can easily be used outside the containing Playground. It contains the actual contents the user enters within the editor.
As its name suggests this file is used to store all Playground settings. The following snippet shows the default settings.json.
{
"endpoint": null,
"public_headers": {
"Accept": "application/json",
"Content-Type": "application/json"
},
"secret_headers": {}
}Because we want to keep security in mind we differentiate between public and secret headers. The values of public headers will directly be stored as plain-text inside the file. Values of secret headers, on the other hand, are safely stored in the iOS keychain.