RealDevSquad / RealDevSquad/website-backend
The stocks api
Open
Nobody has claimed this yet.
backend
beginner friendly
enhancement
- Dominant language
- JavaScript
- Stars
- 74
- Forks
- 276
- Avg merge
- 1d 26m
- Merged PRs (30d)
- 14
Description
Details
- The
/stocksAPI response has two keys:messageandstocks. - The
messagekey returns a response such as success or failure. - The
stockskey is an array of all the stocks. - The
stockskey should be changed todata. - Changing the
stockskey todatacan improve clarity and consistency. - Rename the
/stocks/users/selfto/stocks/self - There is no API for buying and selling stocks.
- You can only create stocks and get a list of all the stocks that have been created.
- The lack of an API for buying and selling stocks can limit functionality and usefulness.
- It is important to have APIs that support core features and actions.
- Implementing APIs for buying and selling stocks can improve the user experience.
- This provides more options for users.
Contributor guide
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.
Research direction
Start by tracing the existing /stocks and /stocks/users/self API entry points. Clarify whether the response-key rename, endpoint rename, and buy/sell APIs are all required, then identify the relevant tests or add coverage for each behavior. Done means the requested endpoints and response shape are implemented and verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100