telosnetwork / api-telos-net

api.telos.net
MIT License
0 stars 1 forks source link

Deploy a clean api on production mainnet #119

Closed Viterbo closed 9 months ago

Viterbo commented 9 months ago

Fixes #118

Description

This is a clean version of the API including the endpoint for account creation for google users and removing the v1/accounts/random prototype because it served well for its purpose but is not needed anymore.

Also, the GOOGLE_CLIENT_ID for dev was removed.

This PR needs to be deployed on Mainnet and Testnet

Test scenarios

Curl the version endpoint to see if is deployed:

curl https://api.telos.net/v1/accounts/version | jq

you have to receive:

{
  "success": true,
  "version": "0.1.2"
}

Curl the random endpoint to see is not present anymore:

curl -X POST https://api.telos.net/v1/accounts/random \
-H "Content-Type: application/json" \
-d '{"ownerKey": "EOS5zzVsRzgWFLM4eCucmZqXQUhiAqUgnP7pvmLGvqiqupbDKQjWA", "activeKey": "EOS5zzVsRzgWFLM4eCucmZqXQUhiAqUgnP7pvmLGvqiqupbDKQjWA"}' | jq
{
  "message": "Route POST:/v1/accounts/random not found",
  "error": "Not Found",
  "statusCode": 404
}

Checklist: