Skip to content

paul-dec/FlutterTwo

Repository files navigation

fluttertwo

A new Flutter project.

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

API

How to start the API

cd API
npm start

Register API call

http://localhost:8000/user/register
{
  "email": [email protected],
  "pseudo": test,
  "password": 1234,
}

Response

{
  "message": Account created
}

Login API call

http://localhost:8000/user/login
{
  "email": [email protected],
  "password": 1234,
}

Response

{
  "id": id,
  "pseudo": test,
  "email": [email protected],
  "password": hidden,
}

Get NFTsImage

http://localhost:8000/user/getNFTs
{
  "id": id,
}

Response

{
  "id": id,
  "NFTs": [
    {
      "id": id,
      "url": url
    }
  ]
}

Get NFTsDetails

http://localhost:8000/user/getNFT
{
  "id": id,
  "url": https://example.com,
}

Response

{
  "name": test,
  "description": blabla
}