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

Implement Add platform details endpoint (Admin) #37 #74

Merged
merged 7 commits into from
Oct 15, 2023

Conversation

sathudeva7
Copy link
Contributor

Purpose

The purpose of this PR is to fix #37

Goals

This issue involves implementing an API to Add platform details. The endpoint should allow Admin to make a POST request to {{baseUrl}}/api/admin/platform.

Approach

    const platformRepository = dataSource.getRepository(Platform)

    const newPlatform = new Platform(
      description,
      mentor_questions,
      image_url,
      landing_page_url,
      email_templates,
      title
    )

    const savedPlatform = await platformRepository.save(newPlatform)

Screenshots

Checklist

  • This PR doesn't commit any keys, passwords, tokens, usernames, or other secrets.
  • I have read and understood the development best practices guidelines ( http://bit.ly/sef-best-practices )
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation

Related PRs

Test environment

Learning

@sathudeva7
Copy link
Contributor Author

"Implement Get platform details endpoint (Admin) #35" task also pushed

Copy link
Member

@anjula-sack anjula-sack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing work @sathudeva7!

@anjula-sack anjula-sack merged commit 255edff into sef-global:main Oct 15, 2023
1 check passed
anjula-sack added a commit to anjula-sack/scholarx-backend that referenced this pull request Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Add platform details endpoint (Admin)
2 participants