ajpulzone / lunch_and_learn

Mod 3 Final Solo Project
0 stars 0 forks source link

Happy Path: Endpoint #3 User Registration - POST /api/v1/users #5

Open ajpulzone opened 1 year ago

ajpulzone commented 1 year ago

User Registration

Request:

POST /api/v1/users

Should have a JSON body of "{ "name": "Drake", "email": "imamuppet@gmail.com" }

Content-Type: application/json
Accept: application/json

{
  "name": "Drake",
  "imamuppet@gmail.com"
}

Response:

{
  "data": {
    "type": "user",
    "id": "1",
    "attributes": {
      "name": "Athena Dao",
      "email": "athenadao@bestgirlever.com",
      "api_key": "jgn983hy48thw9begh98h4539h4"
    }
  }
}

Requirements:

WireFrames:

Image

ajpulzone commented 1 year ago

1/16/23 7:00pm

Working in postman, but testing is HIGHLY inadequate.

However, response in postman is what we expect. AJP