Open Closed

How to access the api by other language? #7880


User avatar
0
niall created
  • ABP Framework version: v8.2.2
  • UI Type: MVC
  • Database System: EF Core ( MySQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I create a app-pro template project. now i need access the api at HttpApi.Host by other language (python,Golang etc ...), Could tell me how to do it? or where the documents?


3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    The API is standard HTTP.

    So you can call the API endpoint to get an access token or for business logic.

    You can try to generate the HTTP proxy from swagger.

    https://github.com/OpenAPITools/openapi-generator https://github.com/RicoSuter/NSwag

  • User Avatar
    0
    niall created

    I can access the public api, but How to get access token to access protected api?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    If your app uses OpenIddict you can get a token from connect/token endpoint

    https://abp.io/support/questions/6747/How-to-generate-access-token-in-backend-only-with-user-email

Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35