non-biased-news — 10/10/2022, 8:57:42 PM

SparkLabs API in progress:

https://SparkLabs.amorogos.repl.co

Docs: https://SparkLabs.amorogos.repl.co/docs

♥ 6 ↩ 1 💬 18 comments

comments

frostzzone:

simple so far, should i make a nodejs ver for backend but still be the same thing :troll:

10/10/2022, 10:38:17 PM
non-biased-news:

why node

10/11/2022, 2:07:18 PM
frostzzone:

because thats my main coding language

10/11/2022, 2:26:23 PM
non-biased-news:

oh

10/11/2022, 2:31:24 PM
non-biased-news:

why is it needed though?

10/11/2022, 2:32:46 PM
frostzzone:

why not i need somthin to do

10/11/2022, 2:33:08 PM
non-biased-news:

hmm

10/11/2022, 2:35:32 PM
wynd:

For accounts/join and accounts/login I would HIGHLY recommend using POST requests, as opposed to GET requests. They are more secure, and easier to use anyways as well. Read articles below for more details.

security.stackexchange.com/q/147188, stackoverflow.com/q/5868786, sitepoint.com/community/t/117881, portswigger.net/kb/issues/00400300, medium.com/@brockmrohloff_12324/7c4da662cfa2

10/10/2022, 10:29:50 PM
frostzzone:

agreed

10/10/2022, 10:33:39 PM
non-biased-news:

okay, I got it to POST now.

@jeffalo you should do this as well for the api.

10/11/2022, 2:06:35 PM
wynd:

he does

10/11/2022, 4:44:53 PM
non-biased-news:

no.. it uses GEt the last time i checked

10/11/2022, 5:25:27 PM
wynd:

wasteof uses post requests for auth and posting and commenting, i know this 100%. Get requests are used for retrieval of post, comment, user and more information.

10/11/2022, 6:10:36 PM
non-biased-news:

https://oren-lindsey.github.io/wasteof2-docs-pages/session

10/11/2022, 6:13:47 PM
wynd:

that literally shows my point, it uses GET to get data about the currently logged in user, which you need a token for in the headers

10/11/2022, 6:25:07 PM
wynd:

and it uses POST for auth

10/11/2022, 6:25:29 PM
quantum-codes:

Logs you into an account. (Returns an authorization token)

POST /session

After you do this, you can GET the info about already logged in user(that login used POST. I quoted its docs)

10/12/2022, 12:38:27 PM
non-biased-news:

huh. I also used GET /session

hmmm

10/12/2022, 2:02:11 PM