-
Notifications
You must be signed in to change notification settings - Fork 7
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
implement service endpoints #293
Conversation
src/listener/ExpressListener.ts
Outdated
@@ -21,10 +21,12 @@ import { GraphSchema, GraphSchemaData } from 'src/schema/graph'; | |||
import { ServiceDefinition, ServiceMetadata } from 'src/Service'; | |||
import { Storage } from 'src/storage'; | |||
import { doesExist, mustExist } from 'src/utils'; | |||
import { Endpoint } from 'src/endpoint'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Import sources within a group must be alphabetized.
src/endpoint/BaseEndpoint.ts
Outdated
public async stop(): Promise<void> { | ||
/* noop */ | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
file should end with a newline
src/endpoint/BaseEndpoint.ts
Outdated
]; | ||
} | ||
|
||
abstract register(router: IRoute): void; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The class method 'register' must be marked either 'private', 'public', or 'protected'
src/endpoint/EchoEndpoint.ts
Outdated
res.send('Hello World'); | ||
}); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
file should end with a newline
src/endpoint/index.ts
Outdated
paths: Array<string>; | ||
|
||
register(router: IRoute): void; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
file should end with a newline
Code Climate has analyzed commit 794cfbc and detected 3 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
Issue
Check
Todo
If this PR is still a work in progress, please prefix the title with
WIP:
and include the remaining tasks: