Hello, I have a aws serverless function written in golang that talks to an external API, all is working fine apart from one part, where the GroupID will need to be created first and the new id passed to the POST request.
See line 132-134
```
func (e Client) GetGroupIdsMap(subaccountid string) (*EshotGetReqResponse, error) {
groupIdsMapSrcURL := [login to view URL]([login to view URL], subaccountid)
return [login to view URL](groupIdsMapSrcURL)
}
```
would need to be generated by a new function that first creates the GroupID with a POST request, something like:
```
curl --request POST \
--url 'https://rest-api/Groups' \
--header 'Accept: application/json' \
--header 'Authorization: Token ***' \
--header 'OData-Version: 4.0' \
--data '{
"SubaccountID": 27,
"Name": "UUID",
"Description": "Group created from EEA REST api endpoint",
"IsCheckedByDefault": false,
"IsShownInUI": false,
"GroupType": "User"
}'
```
which returns
```
{
"@[login to view URL]": "https://rest-api/$metadata#Groups/$entity",
"ID": 8119,
"SubaccountID": 27,
"Name": "UUID",
"Description": "Group created from EEA REST api endpoint",
"IsCheckedByDefault": false,
"IsShownInUI": false,
"GroupType": "User"
}
```
i need to use the `ID` from this object when sending the form, see line 85-89 in [login to view URL]
```
// GroupIds should be a list of comma seperated integer values
err = [login to view URL]("GroupIds", [login to view URL])
if err != nil {
return Response{}, [login to view URL]("error in writing GroupIds: %s", err)
}
```
access to dev api server will be provided and source code as well when deliverables agreed.
HI, I have read your requirements and have understood it fully. I have a good experience in Golang and also worked with handling and calling REST APIs. I would like to complete this Function as quickly as possible. I would definitely not disappoint you.
$100 USD 1 päivässä
5,0 (1 arvostelu)
0,0
0,0
4 freelancerit tarjoavat keskimäärin $225 USD tätä projektia
Hello sir. I have been working in GOlang for 1.5 years now and developed many web applications using the language. I can start your work right away. Please ping if interested.