Let's get the detail of the REST APIs I've created using Hasura.
You can only perform get request on these endpoints and no need to signup or create a new account to use it
-
https://type-to-learn.hasura.app/api/rest/get-code/:name
Get code by programming language name. An example of the request would behttps://type-to-learn.hasura.app/api/rest/get-code/python
-
https://type-to-learn.hasura.app/api/rest/get-random/:limit
Get code from a random programming language with a limit. An example of the request would behttps://type-to-learn.hasura.app/api/rest/get-random/5
-
https://type-to-learn.hasura.app/api/rest/get-code/:name/:limit
Get code from a programming language with a limit. An example of the request would behttps://type-to-learn.hasura.app/api/rest/get-code/javascript/5
-
https://type-to-learn.hasura.app/api/rest/get-code-with-src/:name/:limit
Get code from a programming language with a limit and the source of the code. An example of the request would behttps://type-to-learn.hasura.app/api/rest/get-code-with-src/java/2
-
https://type-to-learn.hasura.app/api/rest/get-code-with-offset/:limit/:offset
Get code from any programming language with a limit and offset. Offset prevent us from getting the same result on every query. An example of the request would behttps://type-to-learn.hasura.app/api/rest/get-code-with-offset/5/14