New answers tagged apexrest
0
votes
Can I add suffix in urlMapping for HttpPost in RestResource
You can specify a wildcard in order to allow the class to respond to all suffixes:
@RestResource(urlMapping='/api/v1/*')
You can then determine the resource by reading the value from RestContext:
...
0
votes
Accepted
How to Display custom error code and custom error message in catch block?
you can try using a new apex class, with two properties: code and message:
public class CustomExceptionResponse {
private String code;
private String message;
public ...
0
votes
Disable "Generate new password and notify user immediately" checkbox while creating User via API
You cannot disable 'Generate new password and notify user immediately' via API, check limitation. Default value of checkbox field is set to true and you would receive notification when there are any ...
Top 50 recent answers are included
Related Tags
apexrest × 562apex × 289
rest-api × 205
rest × 78
json × 51
callout × 50
integration × 44
unit-test × 31
restresource × 29
rest-service × 28
webservices × 27
api × 26
oauth2 × 26
connected-apps × 16
community × 15
visualforce × 14
authentication × 14
post × 11
force.com-sites × 10
httppost × 10
apex-webservice × 9
trigger × 8
code-coverage × 8
lightning × 7
lightning-web-components × 7