RESTful endpoint naming
@sima-qian is already working on this.
Since Oct 19, 2018.
Assessment
This issue has not been assessed yet.
Description
Endpoints like app.get("/api/history/:station") and app.get("/api/history/:station/case/:id") are well-named but ones like app.post("/api/add-case/:station") are a little confusing.
Generally it is good to try and only refer to the resource name in the end point and then specify the behaviour you want with the HTTP verb. So adding a case to a station would be via a POST to something like /api/stations/:stationId/case.
- Dominant language
- JavaScript
- Stars
- 4
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from fac-14/OSCEBossKey
-
Use destructuringMay be free again @Brymon claimed this 2903 days ago, and no pull request is open. Openquick-fix refactoring
fac-14/OSCEBossKey#158 · 1 assignee ·
-
ResultsContainerMay be free again @Brymon claimed this 2903 days ago, and no pull request is open. Openrefactoring
fac-14/OSCEBossKey#157 · 1 assignee ·
-
Folder structureOpen
Difficulty 4/5 3-5 days Newbie friendliness 35/100
fac-14/OSCEBossKey#156 ·
-
Use functional components where possibleMay be free again @Brymon claimed this 2903 days ago, and no pull request is open. Openquick-fix refactoring
fac-14/OSCEBossKey#154 · 1 assignee ·
-
Double queryOpen
Difficulty 4/5 3-5 days Newbie friendliness 20/100
fac-14/OSCEBossKey#152 · 2 comments ·
All issues in fac-14/OSCEBossKey
Similar issues
-
Add google analyticsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
NCAR/music-box-interactive#628 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
remotion-dev/remotion#11847 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
phoenixframework/phoenix_live_view#4456 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
AllTheMods/ATM-10#4436 ·
Maintainers usually reply within 5 days