CenterForDigitalHumanities / TPEN-services

Services required by TPEN interfaces in order to interact with data
1 stars 0 forks source link

WIP on issue 19 #32

Closed Sandeep-1-Kumar closed 8 months ago

Sandeep-1-Kumar commented 8 months ago

This issue is to resolve an API request to resource : page Required URL parameters : Id (as Number)

Added Code : Added Package "page" containing "controller.mjs" and "model.mjs" Changed Code : updated "app.mjs" adding route to resource "page"

steps a reviewer can take to experience the impact of changes: -npm install (ignore if already did) -npm start

Listening on 3001

URL test (postman/browser) : GET : http://localhost:3001/page/123 No id case : GET : http://localhost:3001/page/ Number Check : http://localhost:3001/page/potato