Skip to content

Commit

Permalink
Merge pull request #5 from hhimanshu/h2-update-package-version
Browse files Browse the repository at this point in the history
fix: update API documentation
  • Loading branch information
hhimanshu authored Apr 19, 2021
2 parents df9cbc5 + 581e71f commit a7ac59d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ This directory is an example of creating serverless APIs in TypeScript and deplo
- [x] Deployment on Vercel for main branch and pull requests
- [x] Tests support using `Jest`
- [x] CI setup using GitHub Actions to run tests on every push to GitHub (on every branch)
- [x] CI setup to run tests against Vercel Preview URLs and add them as check before PR could merge. [See GitHub Action](https://github.com/hhimanshu/typescript-serverless-api-vercel/actions/workflows/preview-ci.yml)
- [x] CI Setup to create a new release using `semantic-release`
- [x] Ability to compute function (`/address`) and also to make API calls (`/currency`)

## Available APIs
### Local
```shell
http://localhost:3000/api/hello?name=<string>
http://localhost:3000/api/address?total=<number>&type=<addressType>
Expand All @@ -30,6 +32,13 @@ http://localhost:3000/api/address?total=10&type=city
http://localhost:3000/api/currency
```

### Production
- https://typescript-serverless-api-vercel-al75io70u-hhimanshu.vercel.app/api/hello?name=harit
- https://typescript-serverless-api-vercel-al75io70u-hhimanshu.vercel.app/api/address?total=20&type=zipCode
- https://typescript-serverless-api-vercel-al75io70u-hhimanshu.vercel.app/api/address?total=10&type=city
- https://typescript-serverless-api-vercel-al75io70u-hhimanshu.vercel.app/api/currency


## Start Developing
- Clone this repository (or better fork it so that you can make changes in your repo)
- Run `yarn start`. This will kick-off `vercel dev` so that you can start developing your features
Expand Down

1 comment on commit a7ac59d

@vercel
Copy link

@vercel vercel bot commented on a7ac59d Apr 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.