Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

API service that serves code snippets to Code Reference instant app

License

Notifications You must be signed in to change notification settings

felvin-search/codeReference-api

Repository files navigation

Code Reference Service

This nodejs service returns code snippets of particular languages and algorithms. It uses the code.json file to find and serve data.

Endpoint

/api/query

BODY

{ "query" : <query string> }

Response

If found ,

status: 200 ,
response : { "code": <code snippet>, "language":<programming language searched for>}

If not found,

status 404 ,
response: {'res':"Query not found "}

About

API service that serves code snippets to Code Reference instant app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published