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

List Roles #27

Open
23 tasks
my-opencode opened this issue Jul 11, 2024 · 0 comments
Open
23 tasks

List Roles #27

my-opencode opened this issue Jul 11, 2024 · 0 comments
Assignees
Labels
nice to have Additional features not required for MVP

Comments

@my-opencode
Copy link
Owner

list roles

  • update openapi.yaml
  • back/router.ts
    • Add GET /roles route
  • back/router.test.ts
    • test export GET /roles route
  • back/Models/Roles.ts
    • Roles class
      • string name
      • number id
    • static method listFromDatabase
      • pass db error
    • static method databaseResponseToInstance
      • constructor throws
    • static method databaseResponseToInstanceArray
    • static method List (calls to databaseResponseToInstanceArray(listFromDatabase))
  • back/Models/Roles.test.ts
    • test new Roles()
    • test Roles.listFromDatabase
    • test Roles.databaseResponseToInstance
    • test Roles.databaseResponseToInstanceArray
    • test Roles.List
  • back/views/Roles.ts
    • listArrayToJSON
  • back/views/Roles.test.ts
    • test listArrayToJSON
  • back/controllers/roles-list-all.ts
    • import logger
    • get list from model
    • serialize to json with view
    • return response
  • back/controllers/roles-list-all.test.ts
    • test empty list
    • test malformed list
    • test valid list
  • back/server.test.ts
    • test GET /roles
@my-opencode my-opencode added the nice to have Additional features not required for MVP label Jul 11, 2024
@my-opencode my-opencode self-assigned this Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nice to have Additional features not required for MVP
Projects
None yet
Development

No branches or pull requests

1 participant