shift-org / shift-org/shift-docs

Allow API calls to be made without `.php` in the path

Open
#735 1 comment 0 reactions 1 assignee View on GitHub

@aaronminnick is already working on this.

Since Jan 28, 2025.

API backend documentation enhancement
Dominant language
JavaScript
Stars
30
Forks
25
Avg merge
9m
Merged PRs (30d)
1

Description

For backwards compatibility while transitioning the backend from PHP to Node, we intentionally maintained .php in API paths even though they were no longer PHP files, e.g. https://localhost:4443/api/events.php?startdate=2019-06-01&enddate=2019-06-15

(See implementation in https://github.com/shift-org/shift-docs/blob/main/app/app.js#L52)

We should drop .php from the canonical URLs, e.g. https://localhost:4443/api/events?startdate=2019-06-01&enddate=2019-06-15

For backwards compatibility we should proxy/redirect the .php paths to the new canonical path, but encourage clients to update their API calls to the new path.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.