Open eve-git opened 6 days ago
Omid to discuss with @severinbeauvais about who should complete work.
We should talk about what you need. I see you want directors and addresses in the business response -- but we have separate endpoints for that already. As for the COLIN call, I haven't confirmed that COLIN provides all the information you want.
cc: @vysakh-menon-aot
Also, when do you need this by?
public endpoint in colin is intent to provide the basic details of business.
I could see few endpoints, lear is not using these (but not sure if someone is using these). you can try if it works get party https://github.com/bcgov/lear/blob/main/colin-api/src/colin_api/resources/parties.py get office https://github.com/bcgov/lear/blob/main/colin-api/src/colin_api/resources/office.py
@vysakh-menon-aot The links provided above might work, but they require the 'colin' role for access. Namex accesses public business information through:
f'{current_app.config.get("COLIN_SVC_URL")}/businesses/{corp_num}/public
Is it possible to make the parties and offices endpoints publicly accessible in a similar way?
@eve-git , you are right: the parties
and office
endpoints require the "COLIN_SVC_ROLE", while the public
endpoint just requires an auth token.
@vysakh-menon-aot , is there any reason to not change parties
and office
to match public
?
@OlgaPotiagalova Maybe we do need some changes to our COLIN API for this.
If we change similar to public anyone who logged in to registries can access other business parties and offices (which i don't think is right)
Good point. What's the alternative?
Could the Namex API use a JWT with the COLIN role?
Yes. @eve-git use entity-service-account
jwt token
Namex has the following two queries from entities:
get businesses ("ENTITY_SVC_URL")}/businesses/{corp_num}
get corp from colin ("COLIN_SVC_URL")}/businesses/{corp_num}/public
the following info should be returned to make name-examination run properly:
for example: