Skip to content
Branch: master
Find file History
#6151 Compare This branch is 92 commits behind canary.
huv1k and Timer HTTP methods docs and REST example (#8108)
* HTTP methods docs and REST example

* Update packages/next/README.md

Co-Authored-By: Joe Haddad <timer150@gmail.com>

* Update examples/api-routes-rest/README.md

Co-Authored-By: Joe Haddad <timer150@gmail.com>

* Fix standard
Latest commit 83a3903 Jul 25, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
pages HTTP methods docs and REST example (#8108) Jul 25, 2019
README.md HTTP methods docs and REST example (#8108) Jul 25, 2019
package.json HTTP methods docs and REST example (#8108) Jul 25, 2019

README.md

API routes with REST

How to use

Using create-next-app

Execute create-next-app with Yarn or npx to bootstrap the example:

npx create-next-app --example api-routes-rest api-routes-rest-app
# or
yarn create next-app --example api-routes-rest api-routes-rest-app

Deploy to Now

Deploy it to the cloud with now (download)

now

The idea behind the example

Next.js ships with API routes, which provide an easy solution to build your own API. This example shows how it can be used to create your REST api.

You can’t perform that action at this time.