Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create GET /users/:userId/saved-opportunities API schema and stub endpoint #3295

Open
2 tasks
chouinar opened this issue Dec 18, 2024 · 0 comments · May be fixed by #3355
Open
2 tasks

Create GET /users/:userId/saved-opportunities API schema and stub endpoint #3295

chouinar opened this issue Dec 18, 2024 · 0 comments · May be fixed by #3355
Assignees

Comments

@chouinar
Copy link
Collaborator

chouinar commented Dec 18, 2024

Summary

There is no request body, the user ID is in the URL.


We want to return a list response like so:

{
  "data": [
    {
       "opportunity_id": 1234,
       "opportunity_title": "my title",
       "opportunity_status": "posted",
       "summary": {
            "post_date": "2024-12-19",
            "close_date": "2024-12-19",
            "is_forecast": false
       }
    }
  ]
} 

We will likely adjust the schema going forward once design has figured out what they want to display, but we want the data to be a list of "mini" opportunity objects. We do not want the full opportunity, but just a few top fields that a user has. For now we'll just put the ones above

Acceptance criteria

  • Schema created
  • Dummy endpoint which returns a static response created
@chouinar chouinar changed the title Create GET /users/saved-opportunities API schema Create GET /users/:userId/saved-opportunities API schema Dec 18, 2024
@chouinar chouinar changed the title Create GET /users/:userId/saved-opportunities API schema Create GET /users/:userId/saved-opportunities API schema and stub endpoint Dec 19, 2024
@chouinar chouinar moved this from Icebox to Todo in Simpler.Grants.gov Product Backlog Dec 19, 2024
@mikehgrantsgov mikehgrantsgov self-assigned this Dec 20, 2024
@mikehgrantsgov mikehgrantsgov moved this from Todo to In Progress in Simpler.Grants.gov Product Backlog Dec 20, 2024
@mikehgrantsgov mikehgrantsgov moved this from In Progress to In Review in Simpler.Grants.gov Product Backlog Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Review
2 participants