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
trafficstars
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/employeesThis returns the list of all the employeesGET /api/employees/:idThis returns the employee which has idPOST /api/employeesThis creates a new employee with details in request bodyDELETE /api/employees/:idThis deletes an employee which has id
Info
The base app structure is generated using express generator.