Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Latest commit

 

History

History
69 lines (66 loc) · 2.19 KB

README.md

File metadata and controls

69 lines (66 loc) · 2.19 KB

Routes

  • Base URL: /api

  • Auth

    ⚠️ /auth/[login, register, change-password, forgot-password] are all depricated

    • Base URL: /api/auth
    • GoogleLogin: /google-login
    • GithubLogin: /github-login
    • Logout: /logout
  • Explore

    ⚠️ /explore/* appear to be depricated

    📝 Search functions were moved to /api/search

  • Roadmaps

    ⚠️ /roadmaps/[progress, rating, issues] appear to be depricated

    • Base URL: /api/roadmaps
    • Create: /create
    • Get:
      • Base URL: /api/roadmaps/:roadmapId([0-9]+)?
      • Roadmap: /
    • Update:
      • Base URL: /api/roadmaps/:roadmapId([0-9]+)
      • Title: /title
      • Description: /description
      • Tags: /tags
      • Visibility: /visibility
      • Owner: /owner
      • Data: /data
    • Delete: /:roadmapId([0-9]+)
  • Users

    • Base URL: /api/users

    • Get:

      ⚠️ /users/[issues, followers, following, follower-count, following-count] appear depricated

      • Base URL: /api/users/:userId([0-9]+)?
      • Profile: /
      • Mini profile: /mini
      • User roadmaps: /roadmaps
    • Update:

      • Base URL: /api/users/:userId([0-9]+)?
      • ProfilePicture: /profile-picture
      • Bio: /bio
      • Username: /name
      • Blog url: /blog-url
      • Website url: /website-url
      • Github url: /github-url
      • Email: /email
    • Delete: /:userId([0-9]+)?

  • Search

    • Base URL: /api/search
    • Roadmaps: /roadmaps
      • Optional query params:
        • q: search query (STRING)
        • topic: search by topic
          • all: all topics
          • programming
          • math
          • physics
          • biology
        • sortBy: sort by
          • likes
          • views
          • new
        • order: order
          • asc
          • desc
        • limit: limit (INTEGER)
        • page: page (INTEGER)