Skip to content
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

Add 307 Temp Redirect endpoints for app-handled URLs #46

Open
hawkrives opened this issue May 5, 2018 · 3 comments
Open

Add 307 Temp Redirect endpoints for app-handled URLs #46

hawkrives opened this issue May 5, 2018 · 3 comments
Labels
enhancement New feature or request

Comments

@hawkrives
Copy link
Member

hawkrives commented May 5, 2018

For instance, I don't want to proxy the Directory webview through the server, but we could make /v1/link/directory 307 to Carleton.edu/directory to handle changes on their end.

I think we should make a named 307 endpoint for each URL that the app handles on its own - that means CARLS would have links for TheHub, Stalkernet, Moodle, and the Balances parser, at least, while AAO would have Balances, Directory, Moodle, … the KSTO endpoint?

The links in the Help wouldn't need to be put on the server, since they're changeable remotely.

@hawkrives hawkrives added the enhancement New feature or request label May 5, 2018
@hawkrives
Copy link
Member Author

@rye I just rediscovered this issue… what do you think about it? I think that I think it still sounds good.

@rye
Copy link
Member

rye commented Aug 11, 2018

I think that this makes sense. It'd be useful.

@hawkrives hawkrives changed the title Add 302 Temp Redirect endpoints for app-handled URLs Add 307 Temp Redirect endpoints for app-handled URLs Aug 19, 2018
@hawkrives
Copy link
Member Author

Here's an initial list of URLs and redirect locations:

(also, I'm using 307 instead of 302 so that the original method [POST/PATCH/etc] is preserved; https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/307)

GET /v1/redirect/app-new-issue
307 https://github.com/StoDevX/AAO-React-Native/issues/new

GET /v1/redirect/stolaf-directory
307 https://www.stolaf.edu/personal/index.cfm

GET /v1/redirect/stolaf-map
307 https://www.myatlascms.com/map/index.php?id=294

GET /v1/redirect/stolaf-moodle
307 https://moodle.stolaf.edu/

GET /v1/redirect/stolaf-calendar
307 https://wp.stolaf.edu/calendar/

GET /v1/redirect/oleville-calendar
307 https://oleville.com/events/

GET /v1/redirect/northfield-calendar
307 http://visitingnorthfield.com/events/calendar/

GET /v1/redirect/stolaf-tes
307 https://www.stolaf.edu/apps/tes/

GET /v1/redirect/stolaf-wifi-report
307 https://www.stolaf.edu/apps/all-about-olaf/wifi/index.cfm?fuseaction=Submit

GET /v1/redirect/app-repository
307 https://github.com/StoDevX/AAO-React-Native

GET /v1/redirect/ksto-home
307 https://pages.stolaf.edu/ksto/

GET /v1/redirect/krlx-home
307 http://www.krlx.org/schedule/

GET /v1/redirect/krlx-stream-embed
307 http://live.krlx.org

GET /v1/redirect/krlx-stream-native
307 http://radio.krlx.org/mp3/high_quality

GET /v1/redirect/ksto-stream-embed
307 https://www.stolaf.edu/multimedia/play/embed/ksto.html

GET /v1/redirect/stolaf-olecard-login
307 https://www.stolaf.edu/apps/olecard/checkbalance/authenticate.cfm

GET /v1/redirect/stolaf-olecard-api
307 https://www.stolaf.edu/apps/olecard/checkbalance/api.cfm

I've left out the course data and SIS endpoints, since they'll need some more thought (they're used dynamically to build other request strings.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants