Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Castellum
castellum_scheduler
Commits
6905e274
Commit
6905e274
authored
Jul 12, 2021
by
Bengfort
Browse files
README: consistent code blocks
parent
e70dbd7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
6905e274
...
...
@@ -17,7 +17,7 @@ the server. You can log in as "admin" with password "password".
If you want to run the scheduler alongside castellum for development you
need to set the following settings in castellum:
```
```
python
SCHEDULER_URL
=
'http://localhost:8001'
SCHEDULER_TOKEN
=
'CHANGEME'
```
...
...
@@ -42,9 +42,11 @@ described above.
Example:
$ curl -X PUT -H 'Authorization: token CHANGEME' http://localhost:8001/api/1/foo/
$ curl -X GET -H 'Authorization: token CHANGEME' http://localhost:8001/api/1/foo/
{"datetime": "2020-11-03T07:00:00"}
$ curl -X DELETE -H 'Authorization: token CHANGEME' http://localhost:8001/api/1/foo/
```
sh
$
curl
-X
PUT
-H
'Authorization: token CHANGEME'
http://localhost:8001/api/1/foo/
$
curl
-X
GET
-H
'Authorization: token CHANGEME'
http://localhost:8001/api/1/foo/
{
"datetime"
:
"2020-11-03T07:00:00"
}
$
curl
-X
DELETE
-H
'Authorization: token CHANGEME'
http://localhost:8001/api/1/foo/
```
[
1
]:
https://www.mpib-berlin.mpg.de/research-data/castellum
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment