migrate-rest-api-to-graphql
migrate-rest-api-to-graphql copied to clipboard
This repo is to show how to do migration from a REST API to GraphQL API
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.