Skip to content

This repo is to show how to do migration from a REST API to GraphQL API

Notifications You must be signed in to change notification settings

haldarmahesh/migrate-rest-api-to-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example to migrate from REST API to GraphQL

This repo is the code base repository for the the blog post Migrating Existing REST APIs to GraphQL.

If you want to know what is exactly is GraphQL, refer this post.

Awesome company service

This services contains APIs to provide employees info and adding new employees.

Check this pull request, which shows the effort needed to migrate REST to GraphQL APIs.

REST APIs to migrate

  • GET /api/employees This returns the list of all the employees
  • GET /api/employees/:id This returns the employee which has id
  • POST /api/employees This creates a new employee with details in request body
  • DELETE /api/employees/:id This deletes an employee which has id

Info

The base app structure is generated using express generator.

Releases

No releases published

Packages