-
Notifications
You must be signed in to change notification settings - Fork 104
Webgateway api2 #4708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webgateway api2 #4708
Changes from all commits
b8e8b3f
180fddb
fff45a1
cdabd97
061dd6a
f68ddef
8e8bd88
e0ce1d8
c39eadc
54a3916
0983701
2cca1d9
73be9c5
5ddfae1
61b2193
37c8a31
6c75189
0b683ff
1103e75
35f3fab
66bb052
469a7f5
4ef71e1
5fd6261
74a8a68
ed539ff
e32820a
81ea17f
04db357
4b4e49a
3973b80
cbef1c3
6e5de82
728c1f1
1f645ef
5763299
6db5f13
7e61557
440ce90
c8ae6e1
b2bb2c1
2a13de3
0080a36
fe6d154
66da4e4
eadc288
3d614a7
e1373b3
bc64d6f
eec8198
923678f
4bcfae9
f8998a2
03aaec2
f89e186
54d15a9
a4d9442
28bf952
4647155
264e714
20b0056
f62c912
34f67dd
9ac5114
79a772d
d37f9fb
333f47e
e6edd21
15503a0
eb8eaa7
33ab1d6
8fc674b
3844e85
6081465
d7a3f46
d9eceb2
118e5d9
4690436
4594f11
3b2d89e
255b3a4
6fe589c
84d8e49
3677d7b
aca312b
c6235cf
bcd77c2
23f5d01
cbd88f6
ff36688
c7f54f9
6b99dd2
a52d5cd
dd34d62
f89cdf3
66494ca
c5e4101
698a72e
751c9b9
68dc41f
7782910
b9764df
78524c1
4eeab66
181cf90
04d1e86
9e8623a
0844df4
da02cfe
3c83cb2
d0752a3
995500a
9843b25
e09e67c
04586dd
1bf4942
3320388
b0132ee
a4d678c
3d10944
1cd20c2
0c38a1e
f8f833e
d471cf5
51d1c8e
7bcd568
9359db0
a607715
d460a93
fcfe009
e260602
b5b892e
997036c
453a366
e6a942f
8f1e92e
7394c74
a9a8961
c91c71e
446754f
270ef79
f996556
6912420
c42be11
9db49b1
586f1c0
3008e34
5e7f9f5
3512cfc
f9c1c1b
37f3b24
9c51b0e
f31fb65
bd6c4d3
2330774
3d0e563
d4de580
e484d2e
e4a6c6a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -472,7 +472,15 @@ def leave_none_unset_int(s): | |
| ("Workers silent for more than this many seconds are killed " | ||
| "and restarted. Check Gunicorn Documentation " | ||
| "http://docs.gunicorn.org/en/stable/settings.html#timeout")], | ||
|
|
||
| "omero.web.api.absolute_url": | ||
| ["API_ABSOLUTE_URL", | ||
| None, | ||
| str_slash, | ||
| ("URL to use for generating urls within API json responses. " | ||
| "By default this is None, and we use Django's " | ||
| "request.build_absolute_uri() to generate absolute urls " | ||
| "based on each request. If set to a string or empty string, " | ||
| "this will be used as prefix to relative urls.")], | ||
|
|
||
| # Public user | ||
| "omero.web.public.enabled": | ||
|
|
@@ -1155,6 +1163,12 @@ def report_settings(module): | |
| # FEEDBACK_APP: 6 = OMERO.web | ||
| FEEDBACK_APP = 6 | ||
|
|
||
| # For any given release of api, we may support | ||
| # one or more versions of the api. | ||
| # E.g. /api/v1.0/ | ||
| # TODO - need to decide how this is configured, strategy for extending etc. | ||
| API_VERSIONS = ('0.1',) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sorry I don't understand that? I meant
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. for the future would be handle to have that in the application package in main
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need to have the full 'how we're going to handle versions' discussion before we change anything here. This is really just a placeholder for this PR. I'll add a TODO note in the code here. |
||
|
|
||
| # IGNORABLE_404_STARTS: | ||
| # Default: ('/cgi-bin/', '/_vti_bin', '/_vti_inf') | ||
| # IGNORABLE_404_ENDS: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as we already update responses, would be worth to clean up them all
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since there's no built-in Django response that has the 500 status code and 'javascript' as the content_type, we still need to create our own for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry I wasn't clear, please make sure it will go to follow up trello card.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but I was talking about replacing
content_type="application/javascript"