-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/issue 1007 api routes #1017
Merged
thescientist13
merged 20 commits into
release/0.28.0
from
feature/issue-1007-api-routes
Dec 17, 2022
Merged
Feature/issue 1007 api routes #1017
thescientist13
merged 20 commits into
release/0.28.0
from
feature/issue-1007-api-routes
Dec 17, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
thescientist13
added
documentation
Greenwood specific docs
CLI
feature
New feature or request
labels
Dec 3, 2022
thescientist13
commented
Dec 6, 2022
|
||
// https://github.com/nodejs/modules/issues/307#issuecomment-1165387383 | ||
if (process.env.__GWD_COMMAND__) { // eslint-disable-line no-underscore-dangle | ||
href = `${resolvedUrl}?t=${Date.now()}`; |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
let href = new URL(`${this.getBareUrlPath(url).replace('/api/', '')}.js`, `file://${this.compilation.context.apisDir}`).href; | ||
|
||
// https://github.com/nodejs/modules/issues/307#issuecomment-1165387383 | ||
if (process.env.__GWD_COMMAND__) { // eslint-disable-line no-underscore-dangle |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
thescientist13
force-pushed
the
feature/issue-1007-api-routes
branch
from
December 10, 2022 21:23
64f212e
to
381bbe0
Compare
thescientist13
added a commit
that referenced
this pull request
Feb 7, 2023
* API Routes * rename ApiRoutes resource class * add skeleton Request support to handler signature * Response example from API route * add local development cache busting for API routes * refactor out dependency on path * fix typo * API Routes * add local development cache busting for API routes * refactor out dependency on path * handle APIs for serve command * add API development spec * refactor API development spec to use fetch * refactor specs * API route serve specs * TODOs tracking * add API routes documentation * restore API specs using request instead of native fetch * remove demo code * app exists check for API routes
thescientist13
added a commit
that referenced
this pull request
Apr 9, 2023
* API Routes * rename ApiRoutes resource class * add skeleton Request support to handler signature * Response example from API route * add local development cache busting for API routes * refactor out dependency on path * fix typo * API Routes * add local development cache busting for API routes * refactor out dependency on path * handle APIs for serve command * add API development spec * refactor API development spec to use fetch * refactor specs * API route serve specs * TODOs tracking * add API routes documentation * restore API specs using request instead of native fetch * remove demo code * app exists check for API routes
thescientist13
added a commit
that referenced
this pull request
Apr 9, 2023
* API Routes * rename ApiRoutes resource class * add skeleton Request support to handler signature * Response example from API route * add local development cache busting for API routes * refactor out dependency on path * fix typo * API Routes * add local development cache busting for API routes * refactor out dependency on path * handle APIs for serve command * add API development spec * refactor API development spec to use fetch * refactor specs * API route serve specs * TODOs tracking * add API routes documentation * restore API specs using request instead of native fetch * remove demo code * app exists check for API routes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related Issue
resolves #1007
Summary of Changes
Request
/Response
contract (like will also happen for Standardize on Web APIs (Request
/Response
/URL
/ etc) #948)TODO
build
/serve
commandsRequest
/Response
objects.json()
path
/ url helpers!Questions
serve
task from source code) #946serve
task from source code) #946